menu_unlock_topic

NAML documentation   Watch a video
   Usages of this macro
... in dropdown.naml
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
<macro name="menu_unlock_topic" requires="node">
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_in_command
Binary
Namespace: BasicNamespace
Parameters: name
 name="dropdown">
        <then>
            dropdown.add('unlockTopic', '<n.javascript_string_encode
Binary
Namespace: NabbleNamespace
Parameters: text
.unlock_topic_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
.both
Binary
Namespace: BasicNamespace
Parameters: condition1, condition2
 condition1="[n.local_node
Macro
Parameters: do
.is_locked_topic
Macro
Requires: node
/]" condition2="[n.visitor
Binary
Namespace: ServletNamespace
Parameters: do
.can_manage_locked_topics_in
Macro
Requires: user
Parameters: node_attr
.local_node
Macro
Parameters: do
/]">
                <then>
                    NabbleDropdown.show('unlockTopic');
                </then>
            </n.if.both>
        </else>
    </n.if.is_in_command>
</macro>