Use a “last” attribute instead of relying on “:last-child”.
[Sone.git] / src / main / resources / templates / index.html
index 154ff3e..3bd914f 100644 (file)
@@ -1,17 +1,13 @@
-<div id="sone">
+<%include include/head.html>
 
-       <h1><%= Page.Index.Page.Title|l10n|html></h1>
+       <h1><%= Page.Index.PostList.Title|l10n|html></h1>
 
-       <div>
-               <form action="createPost.html" method="post">
-                       <div>
-                               <label for="text"><%= Page.Index.Label.Text|l10n|html></label>
-                               <textarea name="text"></textarea>
-                       </div>
-                       <div>
-                               <button type="submit"><%= Page.Index.Button.Post|l10n|html></button>
-                       </div>
-               </form>
+       <div id="posts">
+               <%foreach posts post postLoop>
+                       <%include include/viewPost.html>
+               <%foreachelse>
+                       <div><%= Page.Index.PostList.Text.NoPostYet|l10n|html></div>
+               <%/foreach>
        </div>
 
-</div>
\ No newline at end of file
+<%include include/tail.html>