menu_sysadmin_options

NAML documentation   Watch a video
   Usages of this macro
... in dropdown.naml
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
<macro name="menu_sysadmin_options" requires="node">
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_in_command
Binary
Namespace: BasicNamespace
Parameters: name
 name="dropdown">
        <then>
            dropdown.add('openShell', null, 'display:none');
            <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_a_mailing_list_archive
Binary
Namespace: NodeNamespace
>
                <then>
                    dropdown.add('uploadMbox', null, 'display:none');
                    dropdown.add('deleteRecursively', null, 'display:none');
                </then>
            </n.if.is_a_mailing_list_archive>
        </then>
        <else>
            <n.set_local_node
Macro
Parameters: node
.this_node
Binary
Namespace: NodeNamespace
Parameters: do
/>
            <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.visitor
Binary
Namespace: ServletNamespace
Parameters: do
.is_sysadmin
Binary
Namespace: UserNamespace
>
                <then>
                    NabbleDropdown.addContents('openShell','<n.javascript_string_encode
Binary
Namespace: NabbleNamespace
Parameters: text
.local_node
Macro
Parameters: do
.shell_link
Macro
Requires: node
/>');
                    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.local_node
Macro
Parameters: do
.is_a_mailing_list_archive
Binary
Namespace: NodeNamespace
>
                        <then>
                            NabbleDropdown.addContents('uploadMbox','<n.javascript_string_encode
Binary
Namespace: NabbleNamespace
Parameters: text
.local_node
Macro
Parameters: do
.upload_mbox_link
Macro
Requires: node
/>');
                        </then>
                    </n.if.local_node.is_a_mailing_list_archive>
                </then>
            </n.if.visitor.is_sysadmin>
        </else>
    </n.if.is_in_command>
</macro>