Add name of input field to JavaScript function.
[Sone.git] / src / main / resources / templates / index.html
index 2647e7f..5dcda5a 100644 (file)
@@ -1,5 +1,21 @@
-<div id="sone">
+<%include include/head.html>
 
-       <h1>Sone</h1>
+       <script language="javascript">
+               /* register input field/textarea swap. */
+               $(document).ready(function() {
+                       registerInputTextareaSwap("#sone input.reply-input", "Write a Reply…", "text");
+                       addCommentLinks();
+               });
+       </script>
 
-</div>
\ No newline at end of file
+       <h1><%= Page.Index.PostList.Title|l10n|html></h1>
+
+       <div id="posts">
+               <%foreach posts post>
+                       <%include include/viewPost.html>
+               <%foreachelse>
+                       <div><%= Page.Index.PostList.Text.NoPostYet|l10n|html></div>
+               <%/foreach>
+       </div>
+
+<%include include/tail.html>