Add “comment” links on 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                 <h1><%= Page.ViewSone.Page.TitleWithSone|l10n|insert needle="{sone}" key=sone.niceName|html></h1>
18
19                 <h1><%= Page.ViewSone.PostList.Title|l10n|insert needle="{sone}" key=sone.niceName|html></h1>
20
21                 <%if ! sone.current>
22                         <%if sone.friend>
23                                 <div><a href="unfollowSone.html?sone=<% sone.id>"><%= Page.ViewSone.UnfollowSone.Text|l10n|html></a></div>
24                         <%else>
25                                 <div><a href="followSone.html?sone=<% sone.id>"><%= Page.ViewSone.FollowSone.Text|l10n|html></a></div>
26                         <%/if>
27                 <%/if>
28
29                 <div id="posts">
30                         <%foreach sone.posts post>
31                                 <%include include/viewPost.html>
32                         <%foreachelse>
33                                 <div><%= Page.ViewSone.PostList.Text.NoPostYet|l10n|html></div>
34                         <%/foreach>
35                 </div>
36
37                 <h1><%= Page.ViewSone.Following.Title|l10n|html></h1>
38
39                 <div id="following">
40                         <%foreach sone.friends sone>
41                                 <%include include/viewSone.html>
42                         <%/foreach>
43                 </div>
44
45         <%/if>
46
47 <%include include/tail.html>