From: David ‘Bombe’ Roden Date: Fri, 7 Apr 2017 20:53:59 +0000 (+0200) Subject: Change condition for when to render linked elements X-Git-Tag: 0.9.7^2~264 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=5dab84b3d65734bd58dbe00d9ac951ca3ab2c532;p=Sone.git Change condition for when to render linked elements --- diff --git a/src/main/resources/templates/include/viewPost.html b/src/main/resources/templates/include/viewPost.html index e3c9aec..81683e4 100644 --- a/src/main/resources/templates/include/viewPost.html +++ b/src/main/resources/templates/include/viewPost.html @@ -37,16 +37,14 @@ <%if !shortText|match value=renderedText><%if !raw><%/if><%/if> <% parsedText|linked-elements sone=post.sone|store key==linkedElements> <% foreach linkedElements linkedElement> - <%if !linkedElement.loading> - <%if !linkedElement.failed> - <% first> -
- <%/first> - <% linkedElement|render-linked-element> - <% last> -
- <%/last> - <%/if> + <%if !linkedElement.failed> + <% first> +
+ <%/first> + <% linkedElement|render-linked-element> + <% last> +
+ <%/last> <%/if> <%/foreach> diff --git a/src/main/resources/templates/include/viewReply.html b/src/main/resources/templates/include/viewReply.html index 6aaf698..3a5e59a 100644 --- a/src/main/resources/templates/include/viewReply.html +++ b/src/main/resources/templates/include/viewReply.html @@ -25,16 +25,14 @@ <%if !shortText|match value=renderedText><%if !raw><%/if><%/if> <% parsedText|linked-elements sone=reply.sone|store key==linkedElements> <% foreach linkedElements linkedElement> - <%if !linkedElement.loading> - <%if !linkedElement.failed> - <% first> -
- <%/first> - <% linkedElement|render-linked-element> - <% last> -
- <%/last> - <%/if> + <%if !linkedElement.failed> + <% first> +
+ <%/first> + <% linkedElement|render-linked-element> + <% last> +
+ <%/last> <%/if> <%/foreach>