menu_subscription

   Usages of this 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
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_in_command
Binary
Namespace: BasicNamespace
Parameters: name
 name="dropdown">
        <then>
            dropdown.add('subscriptionLink', '<n.javascript_string_encode
Binary
Namespace: NabbleNamespace
Parameters: text
.subscribe_link
Macro
Requires: node
Parameters: text, title, class
/>');
        </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
.local_node
Macro
Parameters: do
.visitor_is_subscribed
Binary
Namespace: NodeNamespace
>
                <then>
                    var text = '<b><t>Your subscription</t></b>: <n.javascript_string_encode
Binary
Namespace: NabbleNamespace
Parameters: text
.local_node
Macro
Parameters: do
.subject
Macro
Requires: node
/> ';
                    text += '(<a href="[n.local_node
Macro
Parameters: do
.visitor_subscription
Binary
Namespace: NodeNamespace
Parameters: do
.edit_path
Macro
Requires: subscription
/]' + Nabble.getClientID() + '" 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>