Mercurial Hosting > nabble
view src/nabble/view/naml/unban_user.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 source
<macro name="unban_user" requires="servlet"> <n.user_page.> <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.if.is_submitted_form> <then> <n.page_user.unban/> </then> </n.if.is_submitted_form> <n.html> <head> <META NAME="robots" CONTENT="noindex,nofollow"/> <n.title.><t>Unban User</t></n.title.> </head> <body> <n.edit_header first_text="[t]Unban User[/t]" second_text="[n.page_user.name/]" /> <n.form.> <table style="margin-bottom: .5em"> <tr valign="top"> <td><n.page_user.avatar size="big"/></td> <td><n.unban_user_control/></td> </tr> </table> <n.if.not.is_submitted_form> <then> <div style="margin-top:1.4em"> <input type="submit" value="[t]Unban User[/t]"/> <t>or</t> <a href="[n.page_user.url/]"><t>Cancel</t></a> </div> </then> </n.if.not.is_submitted_form> </n.form.> <p><t>You can also <n.manage_banned_users_link.>manage banned users</n.manage_banned_users_link.> in <t.location.root_node.subject/>.</t></p> </body> </n.html> </n.user_page.> </macro> <macro name="unban_user_control"> <n.if.page_user.is_authenticated> <then> <table style="margin-bottom:1em"> <tr valign="top"> <n.if.not.is_submitted_form> <then> <td> <b><t>Do you really want to unban this user?</t></b> <div class="weak-color" style="margin-top:.3em"> <t>If you unban this user, he/she will be able to post messages in <t.location.root_node.subject/> again.</t> </div> </td> </then> <else> <td><img src="/images/success.png" class="image16"/></td> <td><t><t.author><b><n.page_user.name/></b></t.author> has been successfully unbanned.</t></td> </else> </n.if.not.is_submitted_form> </tr> </table> </then> </n.if.page_user.is_authenticated> </macro>