preliminary checkin of documentation files
[mir.git] / templates / admin / abuse.filters.template
index 3455f8a..5c9db62 100755 (executable)
       <br><br>
     </p>
     <call ListStart()>\r
-    <call ListHead([
+    <call SpannedListHead([
           lang("abuse.filter.type"), 
-          lang("abuse.filter.expression"),
+          lang("abuse.filter.expression")], ["1","3"])>
+    <call ListHead([
           lang("abuse.filter.articleaction"),
           lang("abuse.filter.commentaction"),
           lang("abuse.filter.comments"),
-          lang("abuse.filter.lasthit"), 
-           ])>
+          lang("abuse.filter.lasthit")])>
     <list filters as f>    
-      <if f.lastHit>\r
-        <call ListEntry([
-          lang("abuse.filtertype."+f.type),
-          utility.encodeHTML(f.expression),
-          lang("content.operation."+f.articleAction),
-          lang("comment.operation."+f.commentAction),
-          f.comments,
-          f.lastHit.format(config["Mir.DefaultDateTimeFormat"], config["Mir.DefaultTimezone"])
-          ], 
-          "module=Abuse&id="+f.id, 
-          ["&do=edit", "&do=delete"], 
-          [lang("edit"), lang("delete")])
-        >
-      <else>
-        <call ListEntry([
+        <call SpannedListEntry([
           lang("abuse.filtertype."+f.type),
-          utility.encodeHTML(f.expression),
-          lang("content.operation."+f.articleAction),
-          lang("comment.operation."+f.commentAction),
-          f.comments,
-          "-"
-          ], 
+          utility.encodeHTML(f.expression)],
+          ["1","3"],
           "module=Abuse&id="+f.id, 
-          ["&do=edit", "&do=delete"], 
-          [lang("edit"), lang("delete")])
-        >
-      </if>
+           ["&do=edit", "&do=delete"], 
+           [lang("edit"), lang("delete")])>
+          <if f.lastHit>\r
+              <call ListEntry([
+                lang("content.operation."+f.articleAction),
+                lang("comment.operation."+f.commentAction),
+                utility.prettyEncodeHTML(f.comments),
+                f.lastHit.format(config["Mir.DefaultDateTimeFormat"], config["Mir.DefaultTimezone"])
+                ], 
+                "module=Abuse&id="+f.id, 
+                ["&do=moveup", "&do=movedown", "&do=movetop", "&do=movebottom"], 
+                [lang("abuse.filters.moveup"), lang("abuse.filters.movedown"),
+                 lang("abuse.filters.movetop"), lang("abuse.filters.movebottom")])
+              >
+          <else>
+              <call ListEntry([
+                lang("content.operation."+f.articleAction),
+                lang("comment.operation."+f.commentAction),
+                utility.prettyEncodeHTML(f.comments),
+                "-"
+                ], 
+                "module=Abuse&id="+f.id, 
+                ["&do=moveup", "&do=movedown", "&do=movetop", "&do=movebottom"], 
+                [lang("abuse.filters.moveup"), lang("abuse.filters.movedown"),
+                 lang("abuse.filters.movetop"), lang("abuse.filters.movebottom")])
+              >
+          </if>
+        <tr height="2" class="${TABLE_HEAD_CLASS}"><td colspan="6"> </td></tr>
     </list>\r
     <call ListEnd()>\r
     
-  <call AddOrBack("Abuse", module_jumpback, do_jumpback)>
+    <p>
+      <a class="link-box" href="${config.actionRoot}?module=Abuse">[ &lt; ] ${lang("back")}</a>&nbsp;&nbsp;
+      <a class="link-box" href="${config.actionRoot}?module=Abuse&do=add">[+] ${lang("add")}</a> &nbsp;
+      <if config["Abuse.DisallowIPLogging"]!="1">
+        <a class="link-box" href="${config.actionRoot}?module=Abuse&do=showlog">${lang("abuse.showlog")}</a>
+      </if>
+      <br><br>
+    </p>
+
   <include "foot.template">
 </body>
 </html>