show_text_for_admins

NAML documentation   Watch a video
   Usages of this macro
... in _harvey_naml.naml
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<macro name="show_text_for_admins" parameters="format" requires="user">
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_site_admin
Macro
Requires: user
>
        <then>
            <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.equal
Binary
Namespace: BasicNamespace
Parameters: value2, value1
 value1="[n.format/]" value2="text">
                <then>
                    ------ Message ------
                    From: <n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.owner
Binary
Namespace: NodeNamespace
Parameters: do
.name
Binary
Namespace: UserNamespace
Parameters: truncate
/>
                    <n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.text_email_message_with_signature
Macro
Requires: node
/>
                </then>
                <else>
                    <div style="padding:.5em;margin:.5em 0;border:1px solid #dedede">
                        <div style="font-weight:bold">From: <n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.owner
Binary
Namespace: NodeNamespace
Parameters: do
.name
Binary
Namespace: UserNamespace
Parameters: truncate
/></div>
                        <n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.html_email_message_with_signature
Macro
Requires: node
/>
                    </div>
                </else>
            </n.if.equal>
        </then>
    </n.if.is_site_admin>
</macro>