From: David ‘Bombe’ Roden Date: Fri, 12 Nov 2010 22:55:39 +0000 (+0100) Subject: Move reply HTML code into own file. X-Git-Tag: 0.2.3~5 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=009efe04643aa488075dba3a71a2afb60e3d675f;p=Sone.git Move reply HTML code into own file. --- diff --git a/src/main/resources/templates/include/viewPost.html b/src/main/resources/templates/include/viewPost.html index 084de2e..6e79c7a 100644 --- a/src/main/resources/templates/include/viewPost.html +++ b/src/main/resources/templates/include/viewPost.html @@ -38,46 +38,7 @@
<%foreach post.replies reply> - -
-
- Avatar Image -
-
-
- -
<% reply.text|html>
-
-
-
<% reply.time|date format="MMM d, yyyy, HH:mm:ss">
-
⬆
- <%ifnull ! currentSone> -
- - - - - -
-
- - - - - -
- <%/if> - <%if reply.sone.current> -
- - - - -
- <%/if> -
-
-
+ <%include include/viewReply.html> <%/foreach> <%ifnull ! currentSone>
diff --git a/src/main/resources/templates/include/viewReply.html b/src/main/resources/templates/include/viewReply.html new file mode 100644 index 0000000..e61da18 --- /dev/null +++ b/src/main/resources/templates/include/viewReply.html @@ -0,0 +1,40 @@ + +
+
+ Avatar Image +
+
+
+ +
<% reply.text|html>
+
+
+
<% reply.time|date format="MMM d, yyyy, HH:mm:ss">
+
⬆
+ <%ifnull ! currentSone> +
+ + + + + +
+
+ + + + + +
+ <%/if> + <%if reply.sone.current> +
+ + + + +
+ <%/if> +
+
+