X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2FviewSone.html;h=a180fe1eaf7b1e09bd53cf05b3ee94cc9dd9ee51;hb=ece9119924c20b12ef1c2f0908a92dc8323f8884;hp=534c5ff885d2deb98594dcffd1f74d43c6322cc1;hpb=728eb9dfab6b9284dbb69701fa8ba4a9b072e7ca;p=Sone.git
diff --git a/src/main/resources/templates/viewSone.html b/src/main/resources/templates/viewSone.html
index 534c5ff..a180fe1 100644
--- a/src/main/resources/templates/viewSone.html
+++ b/src/main/resources/templates/viewSone.html
@@ -1,10 +1,13 @@
<%include include/head.html>
+
view-sone
+ <% sone.id|html>
+
<%ifnull sone>
<%= 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>
@@ -18,11 +21,48 @@
<%include include/viewSone.html>
<%/if>
- <%= Page.ViewSone.PostList.Title|l10n|insert needle="{sone}" key=sone.niceName|html>
+ <%= Page.ViewSone.Profile.Title|l10n|html>
+
+
+
<%= Page.ViewSone.Profile.Label.Name|l10n|html>
+
+
+
+ <%foreach sone.profile.fields field>
+
+
<% field.name|html>
+
<% field.value|parse>
+
+ <%/foreach>
+
+ <%ifnull ! currentSone>
+ <%if ! sone.current>
+ <%= Page.ViewSone.WriteAMessage|l10n|html>
+
+
+ <%/if>
+ <%/if>
+
+ <%= Page.ViewSone.PostList.Title|l10n|replace needle="{sone}" replacementKey=sone.niceName|html>
- <%getpage parameter=postPage>
- <%paginate list=sone.posts pagesize=25>
+ <%:getpage parameter=postPage>
+ <%:paginate list=sone.posts pagesize=25>
<%= postPage|store key=pageParameter>
<%include include/pagination.html>
<%foreach pagination.items post>
@@ -33,6 +73,19 @@
<%include include/pagination.html>
+ <%foreach repliedPosts post>
+ <%first>
+ <%= Page.ViewSone.Replies.Title|l10n|html>
+
+ <%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>
<%include include/tail.html>