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

jondaley at devel.lifetype.net jondaley at devel.lifetype.net
Fri Oct 22 11:54:58 EDT 2010


Author: jondaley
Date: 2010-10-22 11:54:58 -0400 (Fri, 22 Oct 2010)
New Revision: 7072

Modified:
   plog/branches/lifetype-1.2/templates/admin/editposts.template
Log:
added purge button for posts, if the user has permission to do so

Modified: plog/branches/lifetype-1.2/templates/admin/editposts.template
===================================================================
--- plog/branches/lifetype-1.2/templates/admin/editposts.template	2010-10-20 19:51:38 UTC (rev 7071)
+++ plog/branches/lifetype-1.2/templates/admin/editposts.template	2010-10-22 15:54:58 UTC (rev 7072)
@@ -191,6 +191,9 @@
         <a name="bulkEdit"></a>
         <div id="list_action_bar">
 			{adminpager style="list"}
+			{check_perms adminperm=purge_data}
+			<input type="submit" name="purgePosts" class="submit" value="{$locale->tr("cleanup_posts")}" onClick="javascript:submitPostsList('doCleanUp');" />
+			{/check_perms}
 			{check_perms perm=update_post}
             <input type="button" name="delete" value="{$locale->tr("delete")}" class="submit" onClick="javascript:submitPostsList('deletePosts');" />
             <input type="hidden" name="op" value="" />



More information about the pLog-svn mailing list