add_groups_custom

NAML documentation   Watch a video
   Usages of this macro
... in add_groups_custom.naml
1
2
3
4
5
6
7
8
9
10
11
12
<macro name="add_groups_custom" requires="user">
    <!-- List the groups of the user-->
    <n.set_local_user
Macro
Parameters: user
.this_user
Binary
Namespace: UserNamespace
Parameters: do
 />
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.visitor
Binary
Namespace: ServletNamespace
Parameters: do
.is_site_admin
Macro
Requires: user
>
            <then>
                <div style="margin-top:.5em">
                    <img src="/images/user_group.png" align="absmiddle" width="18" height="16"/>
                    <a href="[n.local_user
Macro
Parameters: do
.change_user_groups_path
Macro
Requires: user
/]"><t>Add / Remove Groups</t></a>
                </div>
            </then>
        </n.if.visitor.is_site_admin>
</macro>