pin_column

NAML documentation   Watch a video
   Usages of this macro
... in columns.naml
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
<macro name="pin_column">
    <n.table_column
Macro
Parameters: head, body
>
        <head>
            <td class="[n.column_default_border
Macro
/] pin-column nowrap" style="width:24px"></td>
        </head>
        <body>
            <n.current_node
Binary
Namespace: NodeList
Parameters: do
.>
                <td class="[n.column_default_border
Macro
/] pin-column" style="padding-left:.2em">
                    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_app
Binary
Namespace: NodeNamespace
>
                        <then>
                            <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_pinned_in_loop
Macro
Requires: node, node_list
>
                                <then><img src="/images/forum_pin.png" width="29" height="23" title="[t]Pinned sub-forum[/t]" alt="[t]Pinned sub-forum[/t]"/></then>
                                <else><img src="/images/forum.png" width="25" height="23" title="[t]Floating sub-forum[/t]" alt="[t]Floating sub-forum[/t]"/></else>
                            </n.if.is_pinned_in_loop>
                        </then>
                        <else>
                            <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_pinned_in_loop
Macro
Requires: node, node_list
>
                                <then><img src="/images/pin.png" width="20" height="21" alt="pin"/></then>
                            </n.if.is_pinned_in_loop>
                        </else>
                    </n.if.is_app>
                </td>
            </n.current_node.>
        </body>
    </n.table_column>
</macro>