comparison src/nabble/view/naml/manage_banned_users.naml @ 0:7ecd1a4ef557

add content
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 21 Mar 2019 19:15:52 -0600
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:7ecd1a4ef557
1 <macro name="manage_banned_users">
2 <n.if.not.visitor.can_manage_banned_users>
3 <then>
4 <n.login.><t>Only authorized users can proceed in this area.</t></n.login.>
5 </then>
6 </n.if.not.visitor.can_manage_banned_users>
7 <n.html>
8 <head>
9 <META NAME="robots" CONTENT="noindex,nofollow"/>
10 <n.title.><t>Banned Users in <t.location.root_node.subject/></t></n.title.>
11 <n.zebra_table_javascript table_selector="table.banned-users"/>
12 <style type="text/css">
13 table.banned-users {
14 border-collapse:collapse;
15 }
16 table.banned-users th {
17 padding: .3em .6em;
18 text-align:left;
19 }
20 table.banned-users td {
21 padding: .5em;
22 }
23 table.banned-users td.avatar-col {
24 text-align:center;
25 padding: .5em 0;
26 }
27 </style>
28 </head>
29 <body>
30 <n.edit_header first_text="[t]Banned Users in [t.location.root_node.subject/][/t]"/>
31
32 <div style="margin-top:1em">
33 <n.banned_users.>
34 <n.if.has_more_elements>
35 <then>
36 <table class="banned-users">
37 <tr>
38 <th style="width:24px"></th>
39 <th style="min-width:15em"><t>Name</t></th>
40 <th><t>Action</t></th>
41 </tr>
42 <n.loop.>
43 <tr>
44 <td class="avatar-col"><n.current_user.avatar/></td>
45 <td><n.current_user.name/></td>
46 <td><a href="[n.current_user.unban_path/]"><t>Unban this user</t></a></td>
47 </tr>
48 </n.loop.>
49 </table>
50 </then>
51 <else>
52 <t>No banned users.</t>
53 </else>
54 </n.if.has_more_elements>
55 </n.banned_users.>
56 </div>
57 </body>
58 </n.html>
59 </macro>