message_with_signature

NAML documentation   Watch a video
   Usages of this macro
... in message_with_signature.naml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<override_macro name="message_with_signature" requires="node">  
    <n.node_message_as_html
Macro
Requires: node
 />  
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
>   
        <condition>
            <n.either
Binary
Namespace: BasicNamespace
Parameters: condition1, condition2
>
                <condition1.owner
Binary
Namespace: NodeNamespace
Parameters: do
.is_in_group
Binary
Namespace: UserNamespace
Parameters: group
 group="Sig" />  
                <condition2.owner
Binary
Namespace: NodeNamespace
Parameters: do
.is_site_admin
Macro
Requires: user
/>
            </n.either>
        </condition>
        <then>    
            <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.both
Binary
Namespace: BasicNamespace
Parameters: condition1, condition2
 condition1="[n.owner
Binary
Namespace: NodeNamespace
Parameters: do
.has_signature
Binary
Namespace: UserNamespace
/]" condition2="[n.owner
Binary
Namespace: NodeNamespace
Parameters: do
.is_active
Macro
Requires: user
/]">  
                <then>              
                    <div class="signature weak-color">  
                        <n.owner
Binary
Namespace: NodeNamespace
Parameters: do
.signature_as_html
Macro
Requires: user
/>  
                    </div>  
                </then>  
            </n.if.both>  
        </then>              
    </n.if>  
</override_macro>
Overrides default macro
... in message.naml
1
2
3
4
5
6
7
8
9
10
<macro name="message_with_signature" requires="node">
    <n.node_message_as_html />
    <n.if.both condition1="[n.owner.has_signature/]" condition2="[n.owner.is_active/]">
        <then>
            <div class="signature weak-color">
                <n.owner.signature_as_html/>
            </div>
        </then>
    </n.if.both>
</macro>