menu_reply_to_author

NAML documentation   Watch a video
   Usages of this macro
... in dropdown.naml
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
<macro name="menu_reply_to_author" requires="node">
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.owner
Binary
Namespace: NodeNamespace
Parameters: do
.is_authenticated
Binary
Namespace: UserNamespace
>
        <then>
            <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_in_command
Binary
Namespace: BasicNamespace
Parameters: name
 name="dropdown">
                <then>
                    dropdown.add('replyToAuthor<n.id
Binary
Namespace: NodeNamespace
/>', '<n.javascript_string_encode
Binary
Namespace: NabbleNamespace
Parameters: text
.reply_to_author_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
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.visitor
Binary
Namespace: ServletNamespace
Parameters: do
.equals
Binary
Namespace: UserNamespace
Parameters: user
.local_node
Macro
Parameters: do
.owner
Binary
Namespace: NodeNamespace
Parameters: do
>
                        <then>
                            NabbleDropdown.show('replyToAuthor<n.local_node
Macro
Parameters: do
.id
Binary
Namespace: NodeNamespace
/>');
                        </then>
                    </n.if.not.visitor.equals.local_node.owner>
                </else>
            </n.if.is_in_command>
        </then>
    </n.if.owner.is_authenticated>
</macro>