pin_column

NAML documentation   Watch a video
   Usages of this macro
... in pin_column.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
61
62
63
64
65
66
67
68
69
70
<override_macro name="pin_column">
    <n.table_column
Macro
Parameters: head, body
>
        <head>
            <td class="[n.column_default_border
Macro
/] pin-column nowrap" style="border-top-left-radius: 1em;border-bottom-left-radius: 1em;width:24px"></td>
        </head>
        <body>
            <n.current_node
Binary
Namespace: NodeList
Parameters: do
.>
                <td class="[n.column_default_border
Macro
/]" style="padding-left:.2em;background-color: #000;">
                    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.current_node
Binary
Namespace: NodeList
Parameters: do
.is_app
Binary
Namespace: NodeNamespace
>
                        <else>
                            <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_pinned
Binary
Namespace: NodeNamespace
>
                                <then>
                                    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_locked_topic
Macro
Requires: node
>
                                        <then>
                                            <img src="http://www.sniperjum.com/images-forum/blackgoldtopic.png" width="30" height="28" title="[t]Pinned&Locked Topic[/t]" alt="[t]Pinned&Locked Topic[/t]"/>
                                        </then>
                                        <else>
                                            <img src="http://www.sniperjum.com/images-forum/goldtopic.png" width="28" height="26" title="[t]Pinned Topic[/t]" alt="[t]Pinned Topic[/t]"/>
                                        </else>
                                    </n.if.is_locked_topic>
                                </then>
                                <else>
                                    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_locked_topic
Macro
Requires: node
>
                                        <then>
                                            <img src="http://www.sniperjum.com/images-forum/topicblack.png" width="27" height="25" title="[t]Locked Topic[/t]" alt="[t]Locked Topic[/t]"/>
                                        </then>
                                        <else>
                                            <img src="http://www.sniperjum.com/images-forum/topicwhite.png" width="25" height="23" title="[t]Topic[/t]" alt="[t]Topic[/t]"/>
                                        </else>
                                    </n.if.is_locked_topic>
                                </else>
                            </n.if.is_pinned>
                        </else>
                    </n.if.current_node.is_app>
                    <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
Binary
Namespace: NodeNamespace
>
                                <then><img src="http://cdn1.iconfinder.com/data/icons/Hand_Drawn_Web_Icon_Set/128/folder_empty.png" width="35" height="35" title="[t]Pinned sub-forum[/t]" alt="[t]Pinned sub-forum[/t]"/></then>
                                <else>
                                    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_pinned
Binary
Namespace: NodeNamespace
>
                                        <then>
                                            <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_locked_topic
Macro
Requires: node
>
                                                <then>
                                                    <img src="http://www.sniperjum.com/images-forum/blackgoldtopic.png" width="30" height="28" title="[t]Pinned&Locked Topic[/t]" alt="[t]Pinned&Locked Topic[/t]"/>
                                                </then>
                                                <else>
                                                    <img src="http://www.sniperjum.com/images-forum/goldtopic.png" width="28" height="26" title="[t]Pinned Topic[/t]" alt="[t]Pinned Topic[/t]"/>
                                                </else>
                                            </n.if.is_locked_topic>
                                        </then>
                                        <else>
                                            <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_locked_topic
Macro
Requires: node
>
                                                <then>
                                                    <img src="http://www.sniperjum.com/images-forum/topicblack.png" width="27" height="25" title="[t]Locked Topic[/t]" alt="[t]Locked Topic[/t]"/>
                                                </then>
                                                <else>
                                                    <img src="http://www.sniperjum.com/images-forum/topicwhite.png" width="25" height="23" title="[t]Topic[/t]" alt="[t]Topic[/t]"/>
                                                </else>
                                            </n.if.is_locked_topic>
                                        </else>
                                    </n.if.is_pinned>
                                </else>
                            </n.if.is_pinned>
                        </then>
                    </n.if.is_app>
                </td>
            </n.current_node.>
        </body>
    </n.table_column>
</override_macro>
Overrides default 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>
        <head>
            <td class="[n.column_default_border/] pin-column nowrap" style="width:24px"></td>
        </head>
        <body>
            <n.current_node.>
                <td class="[n.column_default_border/] pin-column" style="padding-left:.2em">
                    <n.if.is_app>
                        <then>
                            <n.if.is_pinned_in_loop>
                                <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.is_pinned_in_loop>
                                <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>