X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2Finclude%2FviewPost.html;h=7cba22099760b1960caee79ac925979948248871;hb=579f882ba9cc899613ef840d421db898b3ebbd73;hp=e351fd00f2bc96b860bd46dc5e6be9ca7ddacf77;hpb=46ad26b66e978c531f563a51a4ff6a2908816947;p=Sone.git diff --git a/src/main/resources/templates/include/viewPost.html b/src/main/resources/templates/include/viewPost.html index e351fd0..7cba220 100644 --- a/src/main/resources/templates/include/viewPost.html +++ b/src/main/resources/templates/include/viewPost.html @@ -1,18 +1,72 @@ - -
+
+ -
- Avatar Image + + + <%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>> -
<% post.text|html>
+ <%if post.recipientId.present> + → + <%if !post.recipient.present> + + <%else> + + <%/if> + <%/if> + <% post.text|html|store key==originalText text==true> + <% post.text|parse sone=post.sone|store key==parsedText> + <% parsedText|render|store key==renderedText text==true> + <% parsedText|shorten length=core.preferences.charactersPerPost cut-off-length=core.preferences.postCutOffLength|render|store key==shortText text==true> +
<% originalText>
+
<% renderedText>
+
<% shortText>
+ <%if !shortText|match value=renderedText><%if !raw><%= View.Post.ShowMore|l10n|html><%/if><%/if> + <%if !shortText|match value=renderedText><%if !raw><%/if><%/if>
-
- -
⬆
+
+
+
+ + + + +
+
+ + + + +
+
+ · + + · + + · + + <%if ! originalText|match value=renderedText> + · + + <%/if> +
+ · + ↑ +
<%ifnull ! currentSone> + · + <%if !post.sone.current> + <%ifnull !post.sone.trust> + · +
+ + + + +
+
+ + + + +
+
+ + + + +
+ <%/if> + <%/if> <%/if> - <%if post.sone.current> + <%if post.sone.local> + ·
@@ -37,6 +115,9 @@
<%/if>
+ class="hidden"<%/if>> + <%= View.Post.NotDownloaded|l10n|html> +
<%foreach post.replies reply> <%include include/viewReply.html> @@ -47,7 +128,15 @@ - +
+ +
+
+