[pLog-svn] r7050 - plog/branches/lifetype-1.2/templates/admin

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Fri Oct 8 14:28:08 EDT 2010


Author: jondaley
Date: 2010-10-08 14:28:07 -0400 (Fri, 08 Oct 2010)
New Revision: 7050

Modified:
   plog/branches/lifetype-1.2/templates/admin/editcomments.template
Log:
show mark as spam and non-spam buttons if comment status is not 'regular' e.g. unmoderated

Modified: plog/branches/lifetype-1.2/templates/admin/editcomments.template
===================================================================
--- plog/branches/lifetype-1.2/templates/admin/editcomments.template	2010-09-27 17:05:28 UTC (rev 7049)
+++ plog/branches/lifetype-1.2/templates/admin/editcomments.template	2010-10-08 18:28:07 UTC (rev 7050)
@@ -124,15 +124,16 @@
                             	<img src="imgs/admin/icon_delete-16.png" alt="{$locale->tr("delete")}" />
                             </a>
 							{if $bayesian_filter_enabled}
-								{if $comment->getStatus() == 1}
-									<a href="?op=markComment&amp;mode=0&amp;articleId={if $post}{$comment->getArticleId()}{else}0{/if}&amp;commentId={$comment->getId()}" title="{$locale->tr("mark_as_no_spam")}">
-									 <img src="imgs/admin/icon_nospam-16.png" alt="{$locale->tr("mark_as_no_spam")}" />
-									</a>
-                                {else}
+								{if $comment->getStatus() != 1}
 								    <a href="?op=markComment&amp;mode=1&amp;articleId={if $post}{$comment->getArticleId()}{else}0{/if}&amp;commentId={$comment->getId()}" title="{$locale->tr("mark_as_spam")}">
 									 <img src="imgs/admin/icon_spam-16.png" alt="{$locale->tr("mark_as_spam")}" />
 									</a>
 								{/if}
+								{if $comment->getStatus() != 0}
+									<a href="?op=markComment&amp;mode=0&amp;articleId={if $post}{$comment->getArticleId()}{else}0{/if}&amp;commentId={$comment->getId()}" title="{$locale->tr("mark_as_no_spam")}">
+									 <img src="imgs/admin/icon_nospam-16.png" alt="{$locale->tr("mark_as_no_spam")}" />
+									</a>
+                                {/if}
 							{/if}
 							{/check_perms}
 							{if $comment->getUserUrl()}



More information about the pLog-svn mailing list