- redid part of the media handling
[mir.git] / templates / admin / abuse.filters.template
1 <html>
2 <head>
3   <title>${config["Mir.Name"]} | ${lang("abuse.filters.htmltitle")}</title>
4   <link rel="stylesheet" type="text/css" href="${config.docRoot}/style/admin.css">
5 </head>
6 <body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0">
7 <include "LISTFUNCTIONS.template">
8 <include "FUNCTIONS.template">
9 <include "head.template">
10
11     <p>
12       <a class="link-box" href="${config.actionRoot}?module=Abuse">[ &lt; ] ${lang("back")}</a>&nbsp;&nbsp;
13       <a class="link-box" href="${config.actionRoot}?module=Abuse&do=add">[+] ${lang("add")}</a> &nbsp;
14       <if config["Abuse.DisallowIPLogging"]!="1">
15         <a class="link-box" href="${config.actionRoot}?module=Abuse&do=showlog">${lang("abuse.showlog")}</a>
16       </if>
17       <br><br>
18     </p>
19     <call ListStart()>\r
20     <call SpannedListHead([
21           lang("abuse.filter.type"), 
22           lang("abuse.filter.expression")], ["1","3"])>
23     <call ListHead([
24           lang("abuse.filter.articleaction"),
25           lang("abuse.filter.commentaction"),
26           lang("abuse.filter.comments"),
27           lang("abuse.filter.lasthit")])>
28     <list filters as f>    
29         <call SpannedListEntry([
30           lang("abuse.filtertype."+f.type),
31           utility.encodeHTML(f.expression)],
32           ["1","3"],
33           "module=Abuse&id="+f.id, 
34            ["&do=edit", "&do=delete"], 
35            [lang("edit"), lang("delete")])>
36           <if f.lastHit>\r
37               <call ListEntry([
38                 lang("content.operation."+f.articleAction),
39                 lang("comment.operation."+f.commentAction),
40                 utility.prettyEncodeHTML(f.comments),
41                 f.lastHit.format(config["Mir.DefaultDateTimeFormat"], config["Mir.DefaultTimezone"])
42                 ], 
43                 "module=Abuse&id="+f.id, 
44                 ["&do=moveup", "&do=movedown"], 
45                 [lang("abuse.filters.moveup"), lang("abuse.filters.movedown")])
46               >
47           <else>
48               <call ListEntry([
49                 lang("content.operation."+f.articleAction),
50                 lang("comment.operation."+f.commentAction),
51                 utility.prettyEncodeHTML(f.comments),
52                 "-"
53                 ], 
54                 "module=Abuse&id="+f.id, 
55                 ["&do=moveup", "&do=movedown"], 
56                 [lang("abuse.filters.moveup"), lang("abuse.filters.movedown")])
57               >
58           </if>
59         <tr height="2" class="${TABLE_HEAD_CLASS}"><td colspan="6"> </td></tr>
60     </list>\r
61     <call ListEnd()>\r
62     
63     <p>
64       <a class="link-box" href="${config.actionRoot}?module=Abuse">[ &lt; ] ${lang("back")}</a>&nbsp;&nbsp;
65       <a class="link-box" href="${config.actionRoot}?module=Abuse&do=add">[+] ${lang("add")}</a> &nbsp;
66       <if config["Abuse.DisallowIPLogging"]!="1">
67         <a class="link-box" href="${config.actionRoot}?module=Abuse&do=showlog">${lang("abuse.showlog")}</a>
68       </if>
69       <br><br>
70     </p>
71
72   <include "foot.template">
73 </body>
74 </html>
75
76
77
78