Mercurial Hosting > nabble
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/nabble/view/naml/manage_banned_users.naml Thu Mar 21 19:15:52 2019 -0600 @@ -0,0 +1,59 @@ +<macro name="manage_banned_users"> + <n.if.not.visitor.can_manage_banned_users> + <then> + <n.login.><t>Only authorized users can proceed in this area.</t></n.login.> + </then> + </n.if.not.visitor.can_manage_banned_users> + <n.html> + <head> + <META NAME="robots" CONTENT="noindex,nofollow"/> + <n.title.><t>Banned Users in <t.location.root_node.subject/></t></n.title.> + <n.zebra_table_javascript table_selector="table.banned-users"/> + <style type="text/css"> + table.banned-users { + border-collapse:collapse; + } + table.banned-users th { + padding: .3em .6em; + text-align:left; + } + table.banned-users td { + padding: .5em; + } + table.banned-users td.avatar-col { + text-align:center; + padding: .5em 0; + } + </style> + </head> + <body> + <n.edit_header first_text="[t]Banned Users in [t.location.root_node.subject/][/t]"/> + + <div style="margin-top:1em"> + <n.banned_users.> + <n.if.has_more_elements> + <then> + <table class="banned-users"> + <tr> + <th style="width:24px"></th> + <th style="min-width:15em"><t>Name</t></th> + <th><t>Action</t></th> + </tr> + <n.loop.> + <tr> + <td class="avatar-col"><n.current_user.avatar/></td> + <td><n.current_user.name/></td> + <td><a href="[n.current_user.unban_path/]"><t>Unban this user</t></a></td> + </tr> + </n.loop.> + </table> + </then> + <else> + <t>No banned users.</t> + </else> + </n.if.has_more_elements> + </n.banned_users.> + </div> + </body> + </n.html> +</macro> \ No newline at end of file