Change condition for when to render linked elements
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 7 Apr 2017 20:53:59 +0000 (22:53 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Sat, 8 Apr 2017 13:22:56 +0000 (15:22 +0200)
src/main/resources/templates/include/viewPost.html
src/main/resources/templates/include/viewReply.html

index e3c9aec..81683e4 100644 (file)
                        <%if !shortText|match value=renderedText><%if !raw><a class="shrink-post-text hidden"><%= View.Post.ShowLess|l10n|html></a><%/if><%/if>
                        <% parsedText|linked-elements sone=post.sone|store key==linkedElements>
                        <% foreach linkedElements linkedElement>
-                               <%if !linkedElement.loading>
-                                       <%if !linkedElement.failed>
-                                               <% first>
-                                                       <div class="linked-elements">
-                                               <%/first>
-                                               <% linkedElement|render-linked-element>
-                                               <% last>
-                                                       </div>
-                                               <%/last>
-                                       <%/if>
+                               <%if !linkedElement.failed>
+                                       <% first>
+                                               <div class="linked-elements">
+                                       <%/first>
+                                       <% linkedElement|render-linked-element>
+                                       <% last>
+                                               </div>
+                                       <%/last>
                                <%/if>
                        <%/foreach>
                </div>
index 6aaf698..3a5e59a 100644 (file)
                        <%if !shortText|match value=renderedText><%if !raw><a class="shrink-reply-text hidden"><%= View.Post.ShowLess|l10n|html></a><%/if><%/if>
                        <% parsedText|linked-elements sone=reply.sone|store key==linkedElements>
                        <% foreach linkedElements linkedElement>
-                               <%if !linkedElement.loading>
-                                       <%if !linkedElement.failed>
-                                               <% first>
-                                                       <div class="linked-elements">
-                                               <%/first>
-                                               <% linkedElement|render-linked-element>
-                                               <% last>
-                                                       </div>
-                                               <%/last>
-                                       <%/if>
+                               <%if !linkedElement.failed>
+                                       <% first>
+                                               <div class="linked-elements">
+                                       <%/first>
+                                       <% linkedElement|render-linked-element>
+                                       <% last>
+                                               </div>
+                                       <%/last>
                                <%/if>
                        <%/foreach>
                </div>