]> git.mjollnir.org Git - s9y.git/commitdiff
Fix CSS class spacing, thanks to Own Stubbs
authorgarvinhicking <garvinhicking>
Mon, 26 Feb 2007 07:52:01 +0000 (07:52 +0000)
committergarvinhicking <garvinhicking>
Mon, 26 Feb 2007 07:52:01 +0000 (07:52 +0000)
templates/default/comments.tpl

index 47a7359b8441204a257d0b4148640fb379a8eca9..facd356f826be25dd45f0efbc6c548a16dc25de8 100644 (file)
@@ -1,7 +1,13 @@
 {foreach from=$comments item=comment name="comments"}
     <a id="c{$comment.id}"></a>
-    <div id="serendipity_comment_{$comment.id}" class="serendipity_comment serendipity_comment_author_{$comment.author|@makeFilename} {if $entry.author == $comment.author}serendipity_comment_author_self{/if}{cycle values="comment_oddbox, comment_evenbox"}" style="padding-left: {$comment.depth*20}px">
-        <div class="serendipity_commentBody">{$comment.body}</div>
+    <div id="serendipity_comment_{$comment.id}" class="serendipity_comment serendipity_comment_author_{$comment.author|@makeFilename} {if $entry.author == $comment.author}serendipity_comment_author_self{/if} {cycle values="comment_oddbox, comment_evenbox"}" style="padding-left: {$comment.depth*20}px">
+        <div class="serendipity_commentBody">
+        {if $comment.body == 'COMMENT_DELETED'}
+            {$CONST.COMMENT_IS_DELETED}
+        {else}
+            {$comment.body}
+        {/if}
+        </div>
         <div class="serendipity_comment_source">
             <a class="comment_source_trace" href="#c{$comment.id}">#{$comment.trace}</a>
             <span class="comment_source_author">
@@ -20,7 +26,7 @@
             {if $entry.is_entry_owner}
                 (<a class="comment_source_ownerlink" href="{$comment.link_delete}" onclick="return confirm('{$CONST.COMMENT_DELETE_CONFIRM|@sprintf:$comment.id:$comment.author}');">{$CONST.DELETE}</a>)
             {/if}
-            {if $entry.allow_comments}
+            {if $entry.allow_comments AND $comment.body != 'COMMENT_DELETED'}
                 (<a class="comment_reply" href="#serendipity_CommentForm" id="serendipity_reply_{$comment.id}" onclick="document.getElementById('serendipity_replyTo').value='{$comment.id}'; {$comment_onchange}">{$CONST.REPLY}</a>)
                 <div id="serendipity_replyform_{$comment.id}"></div>
             {/if}