should_get_instant_mail

NAML documentation   Watch a video
   Usages of this macro
... in email.naml
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<macro name="should_get_instant_mail" requires="user,node_page" >
    <n.set_local_user
Macro
Parameters: user
.this_user
Binary
Namespace: UserNamespace
Parameters: do
/>
    <n.block
Binary
Namespace: BasicNamespace
Parameters: do
.>
        <n.both
Binary
Namespace: BasicNamespace
Parameters: condition1, condition2
>
            <condition1.local_user
Macro
Parameters: do
.can_view
Macro
Requires: user
Parameters: node_attr
.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
 />
            <condition2.not
Binary
Namespace: BasicNamespace
Parameters: condition
.>
                <n.both
Binary
Namespace: BasicNamespace
Parameters: condition1, condition2
>
                    <condition1.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.owner
Binary
Namespace: NodeNamespace
Parameters: do
.equals
Binary
Namespace: UserNamespace
Parameters: user
.local_user
Macro
Parameters: do
 />
                    <condition2.equal
Binary
Namespace: BasicNamespace
Parameters: value2, value1
 value1="[n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.message
Binary
Namespace: NodeNamespace
Parameters: do
.format
Binary
Namespace: MessageNamespace
/]" value2="mail" />
                </n.both>
            </condition2.not.>
        </n.both>
    </n.block.>
</macro>