Instead of a delete link, print "Comment Deleted".

        Patch by 900degrees. 

diffs (12 lines):

diff -r 56d0be48ab8b -r 311ee07e1b7e htdocs/tools/recent_comments.bml
--- a/htdocs/tools/recent_comments.bml  Thu Sep 09 13:21:21 2010 +0800
+++ b/htdocs/tools/recent_comments.bml  Thu Sep 09 13:48:33 2010 +0800
@@ -318,7 +318,7 @@ body<=
                 $subject .= "*" if $comment->has_nondeleted_children;
 
                 # delete link, very helpful for when the user does not have 
access to that entry anymore
-                $delete = "&nbsp;<a 
href='$LJ::SITEROOT/delcomment?journal=$ju->{'user'}&amp;id=$talkid'>$ML{ 
'.delete.link' }</a>";
+                $delete = $comment->is_deleted ? "&nbsp;$ML{ 
'.comment.deleted' }" : "&nbsp;<a 
href='$LJ::SITEROOT/delcomment?journal=$ju->{'user'}&amp;id=$talkid'>$ML{ 
'.delete.link' }</a>";
 
                 # edit link, if comment can be edited
                 $editlink = "&nbsp;<a href='" . LJ::Talk::talkargs( 
$comment->edit_url ) . "'>$ML{ '.edit.link' }</a>" if $comment->remote_can_edit;
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to