Don’t always create a Sone for a given ID.
[Sone.git] / src / main / resources / templates / viewSone.html
1 <%include include/head.html>
2
3         <%ifnull sone>
4
5                 <h1><%= Page.ViewSone.Page.TitleWithoutSone|l10n|html></h1>
6
7                 <p><%= Page.ViewSone.NoSone.Description|l10n|insert needle="{sone}" key=sone.id|html></p>
8
9         <%elseifnull sone.name>
10
11                 <h1><%= Page.ViewSone.Page.TitleWithoutSone|l10n|html></h1>
12
13                 <p><%= Page.ViewSone.UnknownSone.Description|l10n|html></p>
14
15         <%else>
16
17                 <%if ! sone.current>
18                         <%include include/viewSone.html>
19                 <%/if>
20
21                 <h1><%= Page.ViewSone.PostList.Title|l10n|insert needle="{sone}" key=sone.niceName|html></h1>
22
23                 <div id="posts">
24                         <%getpage parameter=postPage>
25                         <%paginate list=sone.posts pagesize=25>
26                         <%= postPage|store key=pageParameter>
27                         <%include include/pagination.html>
28                         <%foreach pagination.items post>
29                                 <%include include/viewPost.html>
30                         <%foreachelse>
31                                 <div><%= Page.ViewSone.PostList.Text.NoPostYet|l10n|html></div>
32                         <%/foreach>
33                         <%include include/pagination.html>
34                 </div>
35
36         <%/if>
37
38 <%include include/tail.html>