authenticated_self_profile_header

NAML documentation   Watch a video
   Usages of this macro
... in authenticated_self_profile_header.naml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<override_macro name="authenticated_self_profile_header" requires="user">
    <!-- Show basic profile links -->
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.equal
Binary
Namespace: BasicNamespace
Parameters: value2, value1
 value1="[n.get_parameter
Binary
Namespace: RequestNamespace
Parameters: name
 name='macro'/]" value2="user_profile">
        <then>
            <div style="margin-top:.5em">
                <img src="/images/tool.png" align="absmiddle" width="16" height="17" style="margin:0 1px"/>
                <a href="[n.user_profile_path
Macro
/]"><t>Account Settings</t></a>
            </div>
        </then>
    </n.if.not.equal>
 
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.root_node
Binary
Namespace: NabbleNamespace
Parameters: do
.has_sub_archive
Binary
Namespace: NodeNamespace
>
        <then>
            <div style="margin-top:.5em">
                <img src="/images/icon_pending.png" class="image16" style="margin:0 1px" />
                <a href="[n.pending_posts_path
Binary
Namespace: UserNamespace
/]"><t>My Pending Posts</t></a>
            </div>
        </then>
    </n.if.root_node.has_sub_archive><br/>
</override_macro>
Overrides default macro
... in user_profile.naml
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
<macro name="authenticated_self_profile_header" requires="user">
    <!-- Show basic profile links -->
    <n.if.not.equal value1="[n.get_parameter name='macro'/]" value2="user_profile">
        <then>
            <div style="margin-top:.5em">
                <img src="/images/tool.png" align="absmiddle" width="16" height="17" style="margin:0 1px"/>
                <a href="[n.user_profile_path/]"><t>Account Settings</t></a>
            </div>
        </then>
    </n.if.not.equal>
 
    <n.if.root_node.has_sub_archive>
        <then>
            <div style="margin-top:.5em">
                <img src="/images/icon_pending.png" class="image16" style="margin:0 1px" />
                <a href="[n.pending_posts_path/]"><t>My Pending Posts</t></a>
            </div>
        </then>
    </n.if.root_node.has_sub_archive>
 
    <div style="margin-top:.5em">
        <img src="/images/forum_sm.png" class="image16" style="margin:0 1px"/>
        <a href="[n.nabble_global_apps_url/]" target="_top"><t>My Nabble Applications</t></a>
    </div>
</macro>