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
<override_macro name="user_nodes" requires="servlet">
    <n.user_page
Macro
Requires: servlet
Parameters: do
.>
        <n.html
Macro
Parameters: head, body
>
            <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: value2, value1, text
. 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 -->
                <div class="second-font table-title">
                    <t>Posts in <t.location.root_node
Binary
Namespace: NabbleNamespace
Parameters: do
.subject
Macro
Requires: node
/></t>
                </div>
 
                <n.user_nodes_table
Macro
Parameters: columns
.>
                    <n.date_column
Macro
Parameters: width, title
 width="7em"/>
                    <n.subject_column
Macro
Parameters: width, title
/>
                    <n.count_column
Macro
Parameters: width, title
/>
                    <n.location_column
Macro
Parameters: width, title
/>
                </n.user_nodes_table.>
            </body>
        </n.html>
    </n.user_page.>
</override_macro>
Overrides default 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
<macro name="user_nodes" requires="servlet">
    <n.user_page.>
        <n.html>
            <head>
                <n.user_nodes_meta/>
                <n.title.>
                    <t>Profile of <t.author.page_user.name/></t>
                    <n.hide_if_equals. value1="[n.user_nodes_page_number/]" value2="1">
                        | <t>Page <t.number.user_nodes_page_number/></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.profile_header/>
 
                <n.user_nodes_search_box/>
 
                <div class="second-font table-title">
                    <t>Posts in <t.location.root_node.subject/></t>
                </div>
 
                <n.user_nodes_table.>
                    <n.date_column width="7em"/>
                    <n.subject_column/>
                    <n.count_column/>
                    <n.location_column/>
                </n.user_nodes_table.>
            </body>
        </n.html>
    </n.user_page.>
</macro>