menu_reply_to_author

NAML documentation   Watch a video
   Usages of this macro
... in menu_reply_to_author.naml
1
2
<override_macro name="menu_reply_to_author" requires="node">
</override_macro>
Overrides default 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.owner.is_authenticated>
        <then>
            <n.if.is_in_command name="dropdown">
                <then>
                    dropdown.add('replyToAuthor<n.id/>', '<n.javascript_string_encode.reply_to_author_link/>', 'display:none');
                </then>
                <else>
                    <n.set_local_node.this_node/>
                    <n.if.not.visitor.equals.local_node.owner>
                        <then>
                            NabbleDropdown.show('replyToAuthor<n.local_node.id/>');
                        </then>
                    </n.if.not.visitor.equals.local_node.owner>
                </else>
            </n.if.is_in_command>
        </then>
    </n.if.owner.is_authenticated>
</macro>