menu_change_appearance

NAML documentation   Watch a video
Error Found
An error was found in the NAML code of this application – View Details | Go to NAML Editor
tag 'mailing_list_etiquette' is not an allowed here, only these are allowed: [bottom, page_name, focus]
  in new_post(custom_tweak:reply:2) - <n.new_post>
  in (custom_tweak:reply:1) - <override_macro name="reply" requires="servlet">
   Usages of this macro
... in dropdown.naml
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
<macro name="menu_change_appearance" requires="node">
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_in_command
Binary
Namespace: BasicNamespace
Parameters: name
 name="dropdown">
        <then>
            dropdown.add('changeAppearance', '<n.javascript_string_encode
Binary
Namespace: NabbleNamespace
Parameters: text
.change_appearance_link
Macro
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_root
Binary
Namespace: NodeNamespace
/]" condition2="[n.visitor
Binary
Namespace: ServletNamespace
Parameters: do
.can_edit
Macro
Requires: user
Parameters: node_attr
.local_node
Macro
Parameters: do
/]">
                <then>
                    function hasChangeAppearanceToolbar() {
                        try {
                            if (parent.isChangeAppearance)
                                return true
                        } catch (err) {}
                        return false;
                    };
                    /* Avoid duplicate toolbars */
                    if (!hasChangeAppearanceToolbar())
                        NabbleDropdown.show('changeAppearance');
                </then>
            </n.if.both>
        </else>
    </n.if.is_in_command>
</macro>