0
|
1 <macro name="unban_user" requires="servlet">
|
|
2 <n.user_page.>
|
|
3 <n.if.not.visitor.can_manage_banned_users>
|
|
4 <then>
|
|
5 <n.login.><t>Only authorized users can proceed in this area.</t></n.login.>
|
|
6 </then>
|
|
7 </n.if.not.visitor.can_manage_banned_users>
|
|
8 <n.if.is_submitted_form>
|
|
9 <then>
|
|
10 <n.page_user.unban/>
|
|
11 </then>
|
|
12 </n.if.is_submitted_form>
|
|
13 <n.html>
|
|
14 <head>
|
|
15 <META NAME="robots" CONTENT="noindex,nofollow"/>
|
|
16 <n.title.><t>Unban User</t></n.title.>
|
|
17 </head>
|
|
18 <body>
|
|
19 <n.edit_header first_text="[t]Unban User[/t]" second_text="[n.page_user.name/]" />
|
|
20
|
|
21 <n.form.>
|
|
22 <table style="margin-bottom: .5em">
|
|
23 <tr valign="top">
|
|
24 <td><n.page_user.avatar size="big"/></td>
|
|
25 <td><n.unban_user_control/></td>
|
|
26 </tr>
|
|
27 </table>
|
|
28
|
|
29 <n.if.not.is_submitted_form>
|
|
30 <then>
|
|
31 <div style="margin-top:1.4em">
|
|
32 <input type="submit" value="[t]Unban User[/t]"/>
|
|
33 <t>or</t> <a href="[n.page_user.url/]"><t>Cancel</t></a>
|
|
34 </div>
|
|
35 </then>
|
|
36 </n.if.not.is_submitted_form>
|
|
37 </n.form.>
|
|
38
|
|
39 <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>
|
|
40 </body>
|
|
41 </n.html>
|
|
42 </n.user_page.>
|
|
43 </macro>
|
|
44
|
|
45 <macro name="unban_user_control">
|
|
46 <n.if.page_user.is_authenticated>
|
|
47 <then>
|
|
48 <table style="margin-bottom:1em">
|
|
49 <tr valign="top">
|
|
50 <n.if.not.is_submitted_form>
|
|
51 <then>
|
|
52 <td>
|
|
53 <b><t>Do you really want to unban this user?</t></b>
|
|
54 <div class="weak-color" style="margin-top:.3em">
|
|
55 <t>If you unban this user, he/she will be able to post messages in <t.location.root_node.subject/> again.</t>
|
|
56 </div>
|
|
57 </td>
|
|
58 </then>
|
|
59 <else>
|
|
60 <td><img src="/images/success.png" class="image16"/></td>
|
|
61 <td><t><t.author><b><n.page_user.name/></b></t.author> has been successfully unbanned.</t></td>
|
|
62 </else>
|
|
63 </n.if.not.is_submitted_form>
|
|
64 </tr>
|
|
65 </table>
|
|
66 </then>
|
|
67 </n.if.page_user.is_authenticated>
|
|
68 </macro>
|