manage_banned_users.naml

<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>