X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2Finclude%2FviewPost.html;h=fd54e5d56c94859dbc50e98a0338506bcfa3b70f;hp=1f0020c29c105d9cc0008bfd93fecdd748880cea;hb=1b25052b79d18b8b7af4eae95358ae0635da46a1;hpb=c8f518f638aa16cf37145561b709d28252de213a diff --git a/src/main/resources/templates/include/viewPost.html b/src/main/resources/templates/include/viewPost.html index 1f0020c..fd54e5d 100644 --- a/src/main/resources/templates/include/viewPost.html +++ b/src/main/resources/templates/include/viewPost.html @@ -1,62 +1,143 @@ -
-
- -
<% post.text|html>
-
-
- - - <%ifnull ! currentSone> -
- - - - -
-
- - - - -
- <%/if> - <%if post.sone.current> -
- - - - -
+
+ + + + + <%include include/soneMenu.html class=="sone-post-menu" sone=post.sone> +
+ <%if post.loaded> + <%ifnull !post.sone.avatar> + <%post.sone.avatar|image-link max-width=48 max-height=48 mode=enlarge title="Avatar Image"> + <%else> + Avatar Image + <%/if> + <%else> + Avatar Image <%/if>
-
- <%foreach post.replies reply> -
-
- -
<% reply.text|html>
-
-
-
<% reply.time|date format="MMM d, yyyy, HH:mm:ss">
- <%if reply.sone.current> -
- - - - -
- <%/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 key=parsedText><%if !raw><%= View.Post.ShowMore|l10n|html><%/if><%/if> + <%if !shortText|match key=parsedText><%if !raw><%/if><%/if> +
+
+
+
+ + + + +
+
+ + + + +
- <%/foreach> -
-
- - - - - -
+ · + + · + + · + + <%if ! originalText|match key=parsedText> + · + + <%/if> +
+ · + ↑ +
+ <%ifnull ! currentSone> + · + +
+ + + + + +
+ <%if !post.sone.current> + · +
+ + + + +
+
+ + + + +
+
+ + + + +
+ <%/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>