Add “this Sone follows” section to “view Sone.”
[Sone.git] / src / main / resources / templates / viewSone.html
1 <div id="sone">
2
3         <%ifnull sone.name>
4
5                 <h1><%= Page.ViewSone.Page.TitleWithoutSone|l10n|html></h1>
6
7                 <div><%= Page.ViewSone.UnknownSone.Description|l10n|html></div>
8
9         <%else>
10
11                 <h1></h1><%= Page.ViewSone.Page.TitleWithSone|l10n|insert needle="{sone}" key=sone.niceName|html></h1>
12
13                 <h1><%= Page.ViewSone.PostList.Title|l10n|insert needle="{sone}" key=sone.niceName|html></h1>
14
15                 <%if ! sone.isCurrent>
16                         <%if sone.isFriend>
17                                 <div><a href="unfollowSone.html?sone=<% sone.id>"><%= Page.ViewSone.UnfollowSone.Text|l10n|html></a></div>
18                         <%else>
19                                 <div><a href="followSone.html?sone=<% sone.id>"><%= Page.ViewSone.FollowSone.Text|l10n|html></a></div>
20                         <%/if>
21                 <%/if>
22
23                 <div id="posts">
24                         <%foreach sone.posts post>
25                                 <div class="post">
26                                         <div class="author"><a href="viewSone.html?sone=<% post.sone.id>"><% post.sone.niceName|html></a></div>
27                                         <div class="text"><% post.text|html></div>
28                                         <div class="time"><% post.time|date format="MMM d, yyyy, HH:mm:ss"></div>
29                                 </div>
30                         <%foreachelse>
31                                 <div><%= Page.ViewSone.PostList.Text.NoPostYet|l10n|html></div>
32                         <%/foreach>
33                 </div>
34                 
35                 <h1><%= Page.ViewSone.Following.Title|l10n|html></h1>
36                 
37                 <div id="following">
38                         <%foreach sone.friends friend>
39                                 <%first>
40                                         <ul>
41                                 <%/first>
42                                         <li><a href="viewSone.html?sone=<% friend.id>"><% friend.niceName|html></a> (<% friend.requestUri|html>)</li>
43                                 <%last>
44                                         </ul>
45                                 <%/last>
46                         <%foreachelse>
47                                 <div><%= Page.ViewSone.Following.FollowingNone.Text|l10n|html></div>
48                         <%/foreach>
49                 </div>
50
51         <%/if>
52
53 </div>