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

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Mon Jun 2 11:19:25 EDT 2008


Author: jondaley
Date: 2008-06-02 11:19:25 -0400 (Mon, 02 Jun 2008)
New Revision: 6500

Modified:
   plog/branches/lifetype-1.2/templates/admin/editcomments.template
Log:
show 'mark spam' button if comment isn't spam (ie. helps out the moderate plugin)

Modified: plog/branches/lifetype-1.2/templates/admin/editcomments.template
===================================================================
--- plog/branches/lifetype-1.2/templates/admin/editcomments.template	2008-06-02 15:13:31 UTC (rev 6499)
+++ plog/branches/lifetype-1.2/templates/admin/editcomments.template	2008-06-02 15:19:25 UTC (rev 6500)
@@ -124,14 +124,14 @@
                             	<img src="imgs/admin/icon_delete-16.png" alt="{$locale->tr("delete")}" />
                             </a>
 							{if $bayesian_filter_enabled}
-								{if $comment->getStatus() == 0}
+								{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}
 								    <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>
-								{elseif $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>
 								{/if}
 							{/if}
 							{/check_perms}
@@ -176,4 +176,4 @@
         </div>
         </form>
 {include file="$admintemplatepath/footernavigation.template"}
-{include file="$admintemplatepath/footer.template"}
\ No newline at end of file
+{include file="$admintemplatepath/footer.template"}



More information about the pLog-svn mailing list