X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2Finclude%2FviewPost.html;h=d212c396a9598f2594c6a92d83507bf6b040b3a9;hb=430d58fa4dcf684c65408666c8c2c2824eb2c7e2;hp=c6ea6a28f96d1c26a270a84d972efa5b76eb725e;hpb=09b9d94dea6b6750a00475ab4e75d378bd76cc8f;p=Sone.git diff --git a/src/main/resources/templates/include/viewPost.html b/src/main/resources/templates/include/viewPost.html index c6ea6a2..706ef32 100644 --- a/src/main/resources/templates/include/viewPost.html +++ b/src/main/resources/templates/include/viewPost.html @@ -1,21 +1,145 @@ -
-
<% post.sone.niceName|html>
-
<% post.text|html>
-
<% post.time|date format="MMM d, yyyy, HH:mm:ss">
- <%if post.sone.isCurrent>
<%= View.Post.DeleteLink|l10n|html>
-
-<%foreach post.replies reply> -
-
<% reply.sone.niceName|html>
-
<% reply.text|html>
-
<% reply.time|date format="MMM d, yyyy, HH:mm:ss">
+
+ + + + + <%include include/soneMenu.html class=="sone-post-menu" sone=post.sone> +
+ <%if post.loaded> + <%ifnull !post.sone.profile.avatar> + <%post.sone.profile.avatar|image-link max-width==48 max-height==48 mode==enlarge title=="Avatar Image"> + <%else> + Avatar Image + <%/if> + <%else> + Avatar Image + <%/if> +
+
+ class="hidden"<%/if>> + + <%ifnull !post.recipient> + → + <%ifnull post.recipient.identity> + + <%else> + + <%/if> + <%/if> + <% post.text|html|store key==originalText text==true> + <% post.text|parse sone=post.sone|store key==parsedText text==true> + <% post.text|parse sone=post.sone length=core.preferences.charactersPerPost cut-off-length=core.preferences.postCutOffLength|store key==shortText text==true> +
<% originalText>
+
<% parsedText>
+
<% shortText>
+ <%if !shortText|match value=parsedText><%if !raw><%= View.Post.ShowMore|l10n|html><%/if><%/if> + <%if !shortText|match value=parsedText><%if !raw><%/if><%/if> +
+
+
+
+ + + + +
+
+ + + + +
+
+ · + + · + + · + + <%if ! originalText|match value=parsedText> + · + + <%/if> +
+ · + ↑ +
+ <%ifnull ! currentSone> + · + +
+ + + + + +
+ <%if !post.sone.current> + <%ifnull !post.sone.trust> + · +
+ + + + +
+
+ + + + +
+
+ + + + +
+ <%/if> + <%/if> + <%/if> + <%if post.sone.local> + · +
+ + + + +
+ <%/if> +
+ class="hidden"<%/if>> + <%= View.Post.NotDownloaded|l10n|html> +
+
+ <%foreach post.replies reply> + <%include include/viewReply.html> + <%/foreach> + <%ifnull ! currentSone> +
+
+ + + +
+ +
+
+ + +
+
+ <%/if> +
-<%/foreach> -
-
- - - - -