Quantcast

user_nodes

NAML documentation   Watch a video
   Usages of this macro
... in user_nodes.naml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<macro name="user_nodes" requires="servlet">
    <n.user_page
Macro
Requires: servlet
Parameters: do
.>
        <n.html
Macro
Parameters: body, head
>
            <head>
                <n.user_nodes_meta
Macro
Requires: user_page
/>
                <n.title
Macro
Parameters: text
.>
                    <t>Profile of <t.author.page_user
Binary
Namespace: UserPageNamespace
Parameters: do
.name
Binary
Namespace: UserNamespace
Parameters: truncate
/></t>
                    <n.hide_if_equals
Macro
Parameters: text, value1, value2
. value1="[n.user_nodes_page_number
Macro
Requires: servlet
/]" value2="1">
                        | <t>Page <t.number.user_nodes_page_number
Macro
Requires: servlet
/></t>
                    </n.hide_if_equals.>
                </n.title.>
                <style type="text/css">
                    table.nodes {
                        width:100%;
                        border-collapse:collapse;
                    }
                    table.nodes td {
                        padding:.3em;
                    }
                    table.nodes td.header {
                        padding: .2em;
                        font-weight:bold;
                    }
                    div.table-title {
                        font-weight:bold;
                        font-size:120%;
                        margin: 1em .1em 1em;
                    }
                </style>
            </head>
            <body>
                <n.page_user
Binary
Namespace: UserPageNamespace
Parameters: do
.profile_header
Macro
Requires: user
/>
 
                <n.user_nodes_search_box
Macro
Requires: user_page
/>
 
                <!-- If this is the profile of the visitor -->
                <n.if
Binary
Namespace: BasicNamespace
Parameters: else, condition, then
.visitor
Binary
Namespace: ServletNamespace
Parameters: do
.equals
Binary
Namespace: UserNamespace
Parameters: user
.page_user
Binary
Namespace: UserPageNamespace
Parameters: do
>
                    <then>
                        <n.horizontal_tab_control
Macro
Parameters: horizontal_tabs, is_live
.>
                            <n.add_horizontal_tab
Macro
Parameters: selected, text, details, url
 url="[n.starred_nodes_path
Macro
/]" text="[n.small_star_icon
Macro
/] [t]Stars in [t.location.root_node
Binary
Namespace: NabbleNamespace
Parameters: do
.subject
Macro
Requires: node
/][/t]" selected="false" details=""/>
                            <n.add_horizontal_tab
Macro
Parameters: selected, text, details, url
 url="" text="[t]Posts in [t.location.root_node
Binary
Namespace: NabbleNamespace
Parameters: do
.subject
Macro
Requires: node
/][/t]" selected="true" details=""/>
                        </n.horizontal_tab_control.>
                    </then>
                    <else>
                        <div class="second-font table-title">
                            <t>Posts in <t.location.root_node
Binary
Namespace: NabbleNamespace
Parameters: do
.subject
Macro
Requires: node
/></t>
                        </div>
                    </else>
                </n.if.visitor.equals.page_user>
 
                <n.user_nodes_table
Macro
Parameters: columns
.>
                    <n.date_column
Macro
Parameters: title, width
 width="7em"/>
                    <n.subject_column
Macro
Parameters: title, width
/>
                    <n.count_column
Macro
Parameters: title, width
/>
                    <n.location_column
Macro
Parameters: title, width
/>
                </n.user_nodes_table.>
            </body>
        </n.html>
    </n.user_page.>
</macro>