menu_manage_pinned_topics

NAML documentation   Watch a video
   Usages of this macro
... in dropdown.naml
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
<macro name="menu_manage_pinned_topics" requires="node">
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_in_command
Binary
Namespace: BasicNamespace
Parameters: name
 name="dropdown">
        <then>
            dropdown.add('managePinnedTopics', '<n.javascript_string_encode
Binary
Namespace: NabbleNamespace
Parameters: text
.manage_pinned_topics_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
>
                <condition>
                    <n.both
Binary
Namespace: BasicNamespace
Parameters: condition1, condition2
>
                        <condition1.not
Binary
Namespace: BasicNamespace
Parameters: condition
.regex_matches
Macro
Parameters: pattern, text
 text="[n.local_node
Macro
Parameters: do
.type
Binary
Namespace: NodeNamespace
Parameters: equals
/]" pattern="board|category" />
                        <condition2.visitor
Binary
Namespace: ServletNamespace
Parameters: do
.can_manage_pinned_topics_in
Macro
Requires: user
Parameters: node_attr
.local_node
Macro
Parameters: do
/>
                    </n.both>
                </condition>
                <then>
                    NabbleDropdown.show('managePinnedTopics');
                </then>
            </n.if>
        </else>
    </n.if.is_in_command>
</macro>