user_profile

NAML documentation   Watch a video
   Usages of this macro
... in user_profile.naml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<macro name="user_profile" requires="servlet">
    <n.visitor
Binary
Namespace: ServletNamespace
Parameters: do
.as_user_page
Binary
Namespace: UserNamespace
Parameters: do
.>
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.page_user
Binary
Namespace: UserPageNamespace
Parameters: do
.is_authenticated
Binary
Namespace: UserNamespace
>
            <then>
                <n.login
Macro
Requires: servlet
Parameters: message
.><t>You must login to view this page.</t></n.login.>
            </then>
        </n.if.not.page_user.is_authenticated>
        <n.html
Macro
Parameters: head, body
>
            <head>
                <META NAME="robots" CONTENT="noindex,nofollow"/>
                <n.title
Macro
Parameters: text
.>Profile of <n.visitor
Binary
Namespace: ServletNamespace
Parameters: do
.name
Binary
Namespace: UserNamespace
Parameters: truncate
/></n.title.>
                <n.zebra_table_javascript
Macro
Parameters: table_selector
 table_selector="table.profile"/>
            </head>
            <body>
                <n.page_user
Binary
Namespace: UserPageNamespace
Parameters: do
.profile_header
Macro
Requires: user
/>
                <n.profile_options
Macro
/>
            </body>
        </n.html>
    </n.visitor.as_user_page.>
</macro>