Use parameter name from data provider.
[Sone.git] / src / main / resources / templates / index.html
index 8f18974..a2b35b7 100644 (file)
@@ -1,21 +1,18 @@
 <%include include/head.html>
 
-       <script language="javascript">
-               /* register input field/textarea swap. */
-               $(document).ready(function() {
-                       registerInputTextareaSwap("#sone input.reply-input", "WebInterface.DefaultText.Reply", "text", false);
-                       addCommentLinks();
-               });
-       </script>
-
        <h1><%= Page.Index.PostList.Title|l10n|html></h1>
 
        <div id="posts">
-               <%foreach posts post>
+               <%getpage>
+               <%paginate list=posts pagesize=2>
+               <%= page|store key=pageParameter>
+               <%include include/pagination.html>
+               <%foreach pagination.items post>
                        <%include include/viewPost.html>
                <%foreachelse>
                        <div><%= Page.Index.PostList.Text.NoPostYet|l10n|html></div>
                <%/foreach>
+               <%include include/pagination.html>
        </div>
 
 <%include include/tail.html>