subapps_table

NAML documentation   Watch a video
   Usages of this macro
... in subapps.naml
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<macro name="subapps_table" dot_parameter="columns">
    <n.put_in_head
Binary
Namespace: HtmlNamespace
Parameters: in_head
.>
        <style type="text/css">
            table.main {
                margin-top:.2em;
                border-collapse:collapse;
                width:100%;
            }
            table.main tr.header-row td {
                padding: .3em .4em;
                font-weight: bold;
            }
            table.main tr.main-row td {
                padding:.3em .5em;
                border-bottom-width: 1px;
                border-bottom-style: dotted;
            }
            table.main tr.main-row,
            table.avatar-table tr {
                vertical-align:top;
            }
            div.sub-forums {
                margin-top:.8em;
                font-size:90%;
                clear:both;
            }
        </style>
    </n.put_in_head.>
    <div style="clear:both"></div>
    <table class="main">
        <n.table_header
Macro
Parameters: do
.>
            <tr class="header-row shaded-bg-color">
                <n.columns/>
            </tr>
        </n.table_header.>
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.has_subapps
Binary
Namespace: NodeNamespace
>
            <then>
                <n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.subapps_list
Binary
Namespace: NodeNamespace
Parameters: filter, do
.>
                    <n.preload_messages
Binary
Namespace: NodeList
/>
                    <n.loop
Macro
Requires: sequence
Parameters: by, do
.>
                        <n.current_node
Binary
Namespace: NodeList
Parameters: do
.>
                            <tr class="main-row [n.category_row_classes
Macro
Requires: node
/]" node="[n.id
Binary
Namespace: NodeNamespace
/]">
                                <n.columns/>
                            </tr>
                        </n.current_node.>
                    </n.loop.>
                    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.there_is_more
Binary
Namespace: NodeList
>
                        <then>
                            <tr>
                                <td></td>
                                <td colspan="4"><n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.node_link
Macro
Requires: node
Parameters: text, href, title, class, target
 href="[n.url
Macro
Requires: node
Parameters: template, date, index_record
 template='view_standard'/]" text="[t]View more[/t]"/> &raquo;</td>
                            </tr>
                        </then>
                    </n.if.there_is_more>
                </n.page_node.subapps_list.>
            </then>
            <else>
                <tr>
                    <td colspan="4"><t>Empty</t></td>
                </tr>
            </else>
        </n.if.page_node.has_subapps>
    </table>
    <div style="clear:both"></div>
 
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.has_private_subapps
Binary
Namespace: NodeNamespace
>
        <then.category_privacy_js
Macro
/>
    </n.if.page_node.has_private_subapps>
</macro>