Only show trust controls if the trust updater has received trust values.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 7 Sep 2012 06:58:39 +0000 (08:58 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Fri, 7 Sep 2012 06:58:39 +0000 (08:58 +0200)
src/main/resources/templates/include/viewPost.html
src/main/resources/templates/include/viewReply.html

index c581798..706ef32 100644 (file)
@@ -81,6 +81,7 @@
                                        <button type="submit" value="1"><%= View.Post.UnlikeLink|l10n|html></button>
                                </form>
                                <%if !post.sone.current>
+                                       <%ifnull !post.sone.trust>
                                        <span class='separator'>·</span>
                                        <form class="trust post-trust<%if post.sone.trust.assigned> hidden<%/if>" action="trust.html" method="post">
                                                <input type="hidden" name="formPassword" value="<% formPassword|html>" />
                                                <input type="hidden" name="sone" value="<% post.sone.id|html>" />
                                                <button type="submit" title="<%= View.Trust.Tooltip.Untrust|l10n|html>">↶</button>
                                        </form>
+                                       <%/if>
                                <%/if>
                        <%/if>
                        <%if post.sone.local>
index 2962dd9..c3b50a4 100644 (file)
@@ -52,6 +52,7 @@
                                        <button type="submit" value="1"><%= View.Post.UnlikeLink|l10n|html></button>
                                </form>
                                <%if !reply.sone.current>
+                                       <%ifnull !reply.sone.trust>
                                        <span class='separator'>·</span>
                                        <form class="trust reply-trust<%if reply.sone.trust.assigned> hidden<%/if>" action="trust.html" method="post">
                                                <input type="hidden" name="formPassword" value="<% formPassword|html>" />
@@ -71,6 +72,7 @@
                                                <input type="hidden" name="sone" value="<% reply.sone.id|html>" />
                                                <button type="submit" title="<%= View.Trust.Tooltip.Untrust|l10n|html>">↶</button>
                                        </form>
+                                       <%/if>
                                <%/if>
                        <%/if>
                        <%if reply.sone.local>