Prepare for larger HTML/CSS rework.
[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.createpost", "What are you doing?");
7                 });
8         </script>
9
10         <h1><%= Page.Index.Page.Title|l10n|insert needle="{sone}" key=currentSone.name|html></h1>
11
12         <div>
13                 <form action="createPost.html" method="post">
14                         <div>
15                                 <label for="text"><%= Page.Index.Label.Text|l10n|html></label>
16                                 <input class="createpost" name="text" />
17                         </div>
18                         <div>
19                                 <button type="submit"><%= Page.Index.Button.Post|l10n|html></button>
20                         </div>
21                 </form>
22         </div>
23
24         <h1><%= Page.Index.PostList.Title|l10n|html></h1>
25
26         <div id="posts">
27                 <%foreach posts post>
28                         <%include include/viewPost.html>
29                 <%foreachelse>
30                         <div><%= Page.Index.PostList.Text.NoPostYet|l10n|html></div>
31                 <%/foreach>
32         </div>
33         
34         <h1><%= Page.Index.AddSone.Title|l10n|html></h1>
35         
36         <div><%= Page.Index.AddSone.Description|l10n|html></div>
37
38         <form action="addSone.html" method="post">
39                 <input type="hidden" name="formPassword" value="<% formPassword|html>" />
40                 <input id="addsone" type="text" name="request-uri" />
41                 <button type="submit"><%= Page.Index.AddSone.Button.Add|l10n|html></button>
42         </form>
43
44 <%include include/tail.html>