Add header for the list of posts on the “view Sone” page.
[Sone.git] / src / main / resources / templates / viewSone.html
1 <%include include/head.html>
2
3         <script language="javascript">
4                 $(document).ready(function() {
5                         addCommentLinks();
6                 });
7         </script>
8
9         <%ifnull sone.name>
10
11                 <h1><%= Page.ViewSone.Page.TitleWithoutSone|l10n|html></h1>
12
13                 <div><%= Page.ViewSone.UnknownSone.Description|l10n|html></div>
14
15         <%else>
16
17                 <%if ! sone.current>
18                         <%include include/viewSone.html>
19                 <%/if>
20
21                 <div id="posts">
22                         <%foreach sone.posts post>
23                                 <%first>
24                                         <h1><%= Page.ViewSone.PostList.Title|l10n|insert needle="{sone}" key=sone.niceName|html></h1>
25                                 <%/first>
26                                 <%include include/viewPost.html>
27                         <%foreachelse>
28                                 <div><%= Page.ViewSone.PostList.Text.NoPostYet|l10n|html></div>
29                         <%/foreach>
30                 </div>
31
32                 <h1><%= Page.ViewSone.Following.Title|l10n|html></h1>
33
34                 <div id="following">
35                         <%foreach sone.friends sone>
36                                 <%include include/viewSone.html>
37                         <%foreachelse>
38                                 <div><%= Page.ViewSone.Following.FollowingNone.Text|l10n|html></div>
39                         <%/foreach>
40                 </div>
41
42         <%/if>
43
44 <%include include/tail.html>