X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=blobdiff_plain;f=src%2Fmain%2Fresources%2Ftemplates%2Finclude%2FviewPost.html;h=d150d4f792b44333adb8e58afb500b20934aeae5;hp=1b8d1ad2871e153265473ae570b0c3459c33e629;hb=8ac7345a26e0bae678744987a6ac47b18ad69732;hpb=53b2adecec6cd19deff36735031eefdecac75701 diff --git a/src/main/resources/templates/include/viewPost.html b/src/main/resources/templates/include/viewPost.html index 1b8d1ad..d150d4f 100644 --- a/src/main/resources/templates/include/viewPost.html +++ b/src/main/resources/templates/include/viewPost.html @@ -37,25 +37,20 @@ <%if !shortText|match value=parsedText><%if !raw><%/if><%/if> <%foreach parts part> - <%if part.class.simpleName|match value==AlbumPart> + <%if part.class.simpleName|match value==AlbumPart>
-
-
<% part.album.title|html>
-
<%= View.Post.LinkedAlbum.SizeAndAuthor|l10n 0=part.album.sone.niceName 1=part.album.images.size|html>
-
- <%foreach part.album.images image> -
- -
-
<% image.title|html>
-
<% image.description|parse sone=post.sone|render>
+
+ - <%/foreach> +
+
<% part.album.title|html>
+
<% =View.Post.LinkedAlbum.SizeAndAuthor|l10n 0=part.album.sone.niceName 1=part.album.images.size|html|replace needle=="[link]" replacement==''|replace needle=='[/link]' replacement==''|replace needle=='' replacement=part.album.sone.id>
+
<% part.album.description|parse sone=part.album.sone|render>
+
+
<%/if> <%/foreach>