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

oscar at devel.lifetype.net oscar at devel.lifetype.net
Thu Aug 2 17:03:14 EDT 2007


Author: oscar
Date: 2007-08-02 17:03:14 -0400 (Thu, 02 Aug 2007)
New Revision: 5776

Modified:
   plog/branches/lifetype-1.2/templates/admin/editcomments.template
   plog/branches/lifetype-1.2/templates/admin/edittrackbacks.template
Log:
Implemented feature request http://bugs.lifetype.net/view.php?id=1365 -- the "purge spam" button is now available directly in the "comments" and "trackbacks" screens if the user has enough permissions to see it, so that we can save a few clicks.


Modified: plog/branches/lifetype-1.2/templates/admin/editcomments.template
===================================================================
--- plog/branches/lifetype-1.2/templates/admin/editcomments.template	2007-08-02 20:37:37 UTC (rev 5775)
+++ plog/branches/lifetype-1.2/templates/admin/editcomments.template	2007-08-02 21:03:14 UTC (rev 5776)
@@ -150,6 +150,9 @@
 		<a name="bulkEdit"></a>
         <div id="list_action_bar">
 	    {adminpager style=list}
+			{check_perms adminperm=purge_data}
+			<input type="submit" name="purgeSpam" class="submit" value="{$locale->tr("cleanup_spam")}" onClick="javascript:submitCommentsList('doCleanUp');" />
+			{/check_perms}
 			{check_perms perm=update_comment}	
 			<input type="hidden" name="articleId" value="{if $post}{$post->getId()}{else}0{/if}" />
             <input type="button" name="delete" value="{$locale->tr("delete")}" class="submit" onClick="javascript:submitCommentsList('deleteComments');" />
@@ -173,4 +176,4 @@
         </div>
         </form>
 {include file="$admintemplatepath/footernavigation.template"}
-{include file="$admintemplatepath/footer.template"}
+{include file="$admintemplatepath/footer.template"}
\ No newline at end of file

Modified: plog/branches/lifetype-1.2/templates/admin/edittrackbacks.template
===================================================================
--- plog/branches/lifetype-1.2/templates/admin/edittrackbacks.template	2007-08-02 20:37:37 UTC (rev 5775)
+++ plog/branches/lifetype-1.2/templates/admin/edittrackbacks.template	2007-08-02 21:03:14 UTC (rev 5776)
@@ -146,6 +146,9 @@
         <a name="bulkEdit"></a>
         <div id="list_action_bar">
             {adminpager style=list}
+			{check_perms adminperm=purge_data}
+			<input type="submit" name="purgeSpam" class="submit" value="{$locale->tr("cleanup_spam")}" onClick="javascript:submitCommentsList('doCleanUp');" />
+			{/check_perms}
 			{check_perms perm=update_trackback}
 			<input type="hidden" name="articleId" value="{if $post}{$post->getId()}{else}0{/if}" />
             <input type="button" name="delete" value="{$locale->tr("delete")}" class="submit" onClick="javascript:submitTrackbacksList('deleteTrackbacks');" />



More information about the pLog-svn mailing list