Only show trust controls if the trust updater has received trust values.
[Sone.git] / src / main / resources / templates / include / viewPost.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>
                                        <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>" />
                                        <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>
                                                <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>
                                <%/if>
                        <%/if>
                        <%if post.sone.local>