Allow deletion of posts of all local Sones, not only the logged in.
[Sone.git] / src / main / resources / templates / include / viewReply.html
index 2fbca43..6b13776 100644 (file)
@@ -8,7 +8,7 @@
        <div class="inner-part">
                <div>
                        <div class="author profile-link"><a href="viewSone.html?sone=<% reply.sone.id|html>"><% reply.sone.niceName|html></a></div>
-                       <div class="text"><% reply.text></div>
+                       <div class="text"><% reply.text|parse sone=reply.sone></div>
                </div>
                <div class="reply-status-line status-line">
                        <div class="time"><% reply.time|date format="MMM d, yyyy, HH:mm:ss"></div>
@@ -40,7 +40,7 @@
                                                <input type="hidden" name="sone" value="<% reply.sone.id|html>" />
                                                <button type="submit" title="<%= View.Trust.Tooltip.Trust|l10n|html>">✓</button>
                                        </form>
-                                       <form class="distrust reply-distrust" action="distrust.html" method="post">
+                                       <form class="distrust reply-distrust<%if reply.sone.trust.assigned> hidden<%/if>" action="distrust.html" method="post">
                                                <input type="hidden" name="formPassword" value="<% formPassword|html>" />
                                                <input type="hidden" name="returnPage" value="<% request.uri|html>" />
                                                <input type="hidden" name="sone" value="<% reply.sone.id|html>" />
@@ -54,7 +54,7 @@
                                        </form>
                                <%/if>
                        <%/if>
-                       <%if reply.sone.current>
+                       <%if reply.sone.local>
                                <span class='separator'>·</span>
                                <form class="delete delete-reply" action="deleteReply.html" method="post">
                                        <input type="hidden" name="formPassword" value="<% formPassword|html>" />