subject_column

NAML documentation   Watch a video
   Usages of this macro
... in user_nodes.naml
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
<macro name="subject_column" parameters="title,width">
    <n.table_column
Macro
Parameters: head, body
>
        <head>
            <td class="header" colspan="2" style="[n.width_style
Macro
Parameters: width
.width/]">
                <n.default
Binary
Namespace: BasicNamespace
Parameters: to, text
. to="[t]Subject[/t]"><n.title/></n.default.>
            </td>
        </head>
        <body>
            <td style="width:25px;padding:.2em">
                <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.current_node
Binary
Namespace: NodeList
Parameters: do
.is_app
Binary
Namespace: NodeNamespace
>
                    <then><img src="/images/forum_sm.png" class="image16"/></then>
                    <else><img src="/images/thread_sm.png" class="image16"/></else>
                </n.if.current_node.is_app>
            </td>
            <td>
                <n.current_node
Binary
Namespace: NodeList
Parameters: do
.node_link
Macro
Requires: node
Parameters: text, href, title, class, target
/>
                <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.current_node
Binary
Namespace: NodeList
Parameters: do
.is_private
Binary
Namespace: NodeNamespace
>
                    <then><span class="weak-color"><t>(private)</t></span></then>
                </n.if.current_node.is_private>
            </td>
        </body>
    </n.table_column>
</macro>