menu_raw_mail

NAML documentation   Watch a video
   Usages of this macro
... in dropdown.naml
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
<macro name="menu_raw_mail" requires="node">
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_in_command
Binary
Namespace: BasicNamespace
Parameters: name
 name="dropdown">
        <then>
            dropdown.add('rawMail<n.id
Binary
Namespace: NodeNamespace
/>', '<n.javascript_string_encode
Binary
Namespace: NabbleNamespace
Parameters: text
.raw_mail_link
Macro
Requires: node
Parameters: text, title, class
/>', 'display:none');
        </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
.local_node
Macro
Parameters: do
.message
Binary
Namespace: NodeNamespace
Parameters: do
.is_imported_mail
Binary
Namespace: MessageNamespace
>
                <then.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.either
Binary
Namespace: BasicNamespace
Parameters: condition1, condition2
 condition1="[n.visitor
Binary
Namespace: ServletNamespace
Parameters: do
.can_edit
Macro
Requires: user
Parameters: node_attr
.local_node
Macro
Parameters: do
/]" condition2="[n.visitor
Binary
Namespace: ServletNamespace
Parameters: do
.is_sysadmin
Binary
Namespace: UserNamespace
/]">
                    <then>
                        NabbleDropdown.show('rawMail<n.local_node
Macro
Parameters: do
.id
Binary
Namespace: NodeNamespace
/>');
                    </then>
                </then.if.either>
            </n.if.local_node.message.is_imported_mail>
        </else>
    </n.if.is_in_command>
</macro>