menu_subscription

NAML documentation   Watch a video
   Usages of this macro
The source code below doesn't have navigation links because no usage has been compiled yet. Navigation links depend on how and where the macro is used, so first you may try finding all usages of "menu_subscription".
... in menu_subscription.naml
1
2
3
4
5
6
7
<override_macro name="menu_subscription" requires="node">
    <n.if.is_in_command name="dropdown">
        <then>
            dropdown.add("", "<a href='https://lists.galaxyproject.org/listinfo/galaxy-arabic'>Subscribe to Galaxy-Arabic</a>");
        </then>
    </n.if.is_in_command>
</override_macro>
Overrides default macro
... in dropdown.naml
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
<macro name="menu_subscription" requires="node">
    <n.if.is_in_command name="dropdown">
        <then>
            dropdown.add('subscriptionLink', '<n.javascript_string_encode.subscribe_link/>');
        </then>
        <else>
            <n.set_local_node.this_node/>
            <n.if.local_node.visitor_is_subscribed>
                <then>
                    var text = '<b><t>Your subscription</t></b>: <n.javascript_string_encode.local_node.subject/> ';
                    text += '(<a href="[n.local_node.visitor_subscription.edit_path/]" ignore="y"><t>edit</t></a>)';
                    NabbleDropdown.replaceContents('subscriptionLink',text);
                </then>
            </n.if.local_node.visitor_is_subscribed>
        </else>
    </n.if.is_in_command>
</macro>