X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2FviewSone.html;h=27b156d1f339c494b4762f06fd275f0750e7e4a3;hb=134798ea6e5bc41b664e4180871d47059e450ce8;hp=98551b3039f6c54bad9a641d3e59364ca0d93de5;hpb=810e18ab81aaf2d6809a6ae46335afa1120d92e0;p=Sone.git
diff --git a/src/main/resources/templates/viewSone.html b/src/main/resources/templates/viewSone.html
index 98551b3..27b156d 100644
--- a/src/main/resources/templates/viewSone.html
+++ b/src/main/resources/templates/viewSone.html
@@ -7,7 +7,7 @@
<%= Page.ViewSone.Page.TitleWithoutSone|l10n|html>
- <%= Page.ViewSone.NoSone.Description|l10n|insert needle="{sone}" key=sone.id|html>
+ <%= Page.ViewSone.NoSone.Description|l10n|replace needle="{sone}" replacementKey=sone.id|html>
<%elseifnull sone.name>
@@ -25,42 +25,67 @@
<%= Page.ViewSone.Profile.Label.Name|l10n|html>
-
+
<%foreach sone.profile.fields field>
<% field.name|html>
-
<% field.value|html>
+
<% field.value|parse>
<%/foreach>
- <%if ! sone.current>
- <%= Page.ViewSone.WriteAMessage|l10n|html>
-
-
+ <%ifnull ! currentSone>
+ <%if ! sone.current>
+ <%= Page.ViewSone.WriteAMessage|l10n|html>
+
+
+ <%/if>
<%/if>
- <%= Page.ViewSone.PostList.Title|l10n|insert needle="{sone}" key=sone.niceName|html>
-
-
- <%getpage parameter=postPage>
- <%paginate list=sone.posts pagesize=25>
- <%= postPage|store key=pageParameter>
- <%include include/pagination.html>
- <%foreach pagination.items post>
- <%include include/viewPost.html>
- <%foreachelse>
-
<%= Page.ViewSone.PostList.Text.NoPostYet|l10n|html>
- <%/foreach>
- <%include include/pagination.html>
-
+ <%= Page.ViewSone.PostList.Title|l10n|replace needle="{sone}" replacementKey=sone.niceName|html>
+
+ <%foreach posts post>
+ <%first>
+
+ <%include include/pagination.html pagination=postPagination pageParameter==postPage>
+ <%/first>
+ <%include include/viewPost.html>
+ <%last>
+ <%include include/pagination.html pagination=postPagination pageParameter==postPage>
+
+ <%/last>
+ <%foreachelse>
+ <%= Page.ViewSone.PostList.Text.NoPostYet|l10n|html>
+ <%/foreach>
+
+ <%foreach repliedPosts post>
+ <%first>
+ <%= Page.ViewSone.Replies.Title|l10n|html|replace needle="{sone}" replacementKey=sone.niceName>
+
+ <%include include/pagination.html pagination=repliedPostPagination pageParameter==repliedPostPage>
+ <%/first>
+ <%include include/viewPost.html>
+ <%last>
+ <%include include/pagination.html pagination=repliedPostPagination pageParameter==repliedPostPage>
+
+ <%/last>
+ <%/foreach>
<%/if>