Redesign and consolidate.
[Sone.git] / src / main / resources / templates / index.html
1 <%include include/head.html>
2
3         <script language="javascript">
4                 /* register input field/textarea swap. */
5                 $(document).ready(function() {
6                         registerInputTextareaSwap("#sone input.reply-input", "Write a Reply…");
7                         addCommentLinks();
8                 });
9         </script>
10
11         <h1><%= Page.Index.PostList.Title|l10n|html></h1>
12
13         <div id="posts">
14                 <%foreach posts post>
15                         <%include include/viewPost.html>
16                 <%foreachelse>
17                         <div><%= Page.Index.PostList.Text.NoPostYet|l10n|html></div>
18                 <%/foreach>
19         </div>
20
21         <h1><%= Page.Index.AddSone.Title|l10n|html></h1>
22
23         <div><%= Page.Index.AddSone.Description|l10n|html></div>
24
25         <form action="addSone.html" method="post">
26                 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
27                 <input id="addsone" type="text" name="request-uri" />
28                 <button type="submit"><%= Page.Index.AddSone.Button.Add|l10n|html></button>
29         </form>
30
31 <%include include/tail.html>