Show key of Sone in “view Sone”.
[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="import-key">
22                         <div class="import-key"><% sone.requestUri|html></div>
23                 </div>
24
25                 <div id="posts">
26                         <%foreach sone.posts post>
27                                 <%first>
28                                         <h1><%= Page.ViewSone.PostList.Title|l10n|insert needle="{sone}" key=sone.niceName|html></h1>
29                                 <%/first>
30                                 <%include include/viewPost.html>
31                         <%foreachelse>
32                                 <div><%= Page.ViewSone.PostList.Text.NoPostYet|l10n|html></div>
33                         <%/foreach>
34                 </div>
35
36                 <h1><%= Page.ViewSone.Following.Title|l10n|html></h1>
37
38                 <div id="following">
39                         <%foreach sone.friends sone>
40                                 <%include include/viewSone.html>
41                         <%foreachelse>
42                                 <div><%= Page.ViewSone.Following.FollowingNone.Text|l10n|html></div>
43                         <%/foreach>
44                 </div>
45
46         <%/if>
47
48 <%include include/tail.html>