Use a “last” attribute instead of relying on “:last-child”.
[Sone.git] / src / main / resources / templates / index.html
index 122a487..3bd914f 100644 (file)
@@ -1,17 +1,9 @@
 <%include include/head.html>
 
-       <script language="javascript">
-               /* register input field/textarea swap. */
-               $(document).ready(function() {
-                       registerInputTextareaSwap("#sone input.reply-input", "Write a Reply…");
-                       addCommentLinks();
-               });
-       </script>
-
        <h1><%= Page.Index.PostList.Title|l10n|html></h1>
 
        <div id="posts">
-               <%foreach posts post>
+               <%foreach posts post postLoop>
                        <%include include/viewPost.html>
                <%foreachelse>
                        <div><%= Page.Index.PostList.Text.NoPostYet|l10n|html></div>