X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2FviewSone.html;h=a180fe1eaf7b1e09bd53cf05b3ee94cc9dd9ee51;hb=ece9119924c20b12ef1c2f0908a92dc8323f8884;hp=fcb28910b7dc06d16fb03805372f26fcae4b507b;hpb=228ca4124110fe5b21aa60299987f45ce2ee6635;p=Sone.git diff --git a/src/main/resources/templates/viewSone.html b/src/main/resources/templates/viewSone.html index fcb2891..a180fe1 100644 --- a/src/main/resources/templates/viewSone.html +++ b/src/main/resources/templates/viewSone.html @@ -1,6 +1,15 @@ <%include include/head.html> - <%ifnull sone.name> + + + + <%ifnull sone> + +

<%= Page.ViewSone.Page.TitleWithoutSone|l10n|html>

+ +

<%= Page.ViewSone.NoSone.Description|l10n|replace needle="{sone}" replacementKey=sone.id|html>

+ + <%elseifnull sone.name>

<%= Page.ViewSone.Page.TitleWithoutSone|l10n|html>

@@ -12,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>
+
<% sone.niceName|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> @@ -27,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>