From 009efe04643aa488075dba3a71a2afb60e3d675f Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Fri, 12 Nov 2010 23:55:39 +0100 Subject: [PATCH] Move reply HTML code into own file. --- src/main/resources/templates/include/viewPost.html | 41 +--------------------- .../resources/templates/include/viewReply.html | 40 +++++++++++++++++++++ 2 files changed, 41 insertions(+), 40 deletions(-) create mode 100644 src/main/resources/templates/include/viewReply.html 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> +
+
+
-- 2.7.4