dea7f5345ebbc127553c34377d1c891a3b0530c3
[Sone.git] / src / main / resources / templates / viewSone.html
1 <%include include/head.html>
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><%= 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                                 <%include include/viewPost.html>
26                         <%foreachelse>
27                                 <div><%= Page.ViewSone.PostList.Text.NoPostYet|l10n|html></div>
28                         <%/foreach>
29                 </div>
30
31                 <h1><%= Page.ViewSone.Following.Title|l10n|html></h1>
32
33                 <div id="following">
34                         <%foreach sone.friends friend>
35                                 <%first>
36                                         <ul>
37                                 <%/first>
38                                         <li><a href="viewSone.html?sone=<% friend.id>"><% friend.niceName|html></a> (<% friend.requestUri|html>)</li>
39                                 <%last>
40                                         </ul>
41                                 <%/last>
42                         <%foreachelse>
43                                 <div><%= Page.ViewSone.Following.FollowingNone.Text|l10n|html></div>
44                         <%/foreach>
45                 </div>
46
47         <%/if>
48
49 <%include include/tail.html>