Create Sone view.
[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 sone>
35                                 <%include include/viewSone.html>
36                         <%/foreach>
37                 </div>
38
39         <%/if>
40
41 <%include include/tail.html>