post_count_column

NAML documentation   Watch a video
   Usages of this macro
The source code below doesn't have navigation links because no usage has been compiled yet. Navigation links depend on how and where the macro is used, so first you may try finding all usages of "post_count_column".
... in post_count_column.naml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<override_macro name="post_count_column" parameters="title,width">
    <n.table_column>
        <head>
            <td class="medium-border-color post_count_column" align="center" style="[n.width_style.width/]">
                <n.default. to="[t]Posts[/t]"><n.title/></n.default.>
            </td>
        </head>
        <body>
            <td class="weak-color medium-border-color" align="center">
                <n.if.equal value1="[n.current_node.id/]" value2="[n.the_Shed_id/]">
                    <then>1</then>
                    <else><n.current_node.post_count/></else>
                </n.if.equal>
            </td>
        </body>
    </n.table_column>
</override_macro>
Overrides default macro
... in columns.naml
39
40
41
42
43
44
45
46
47
48
49
50
<macro name="post_count_column" parameters="title,width">
    <n.table_column>
        <head>
            <td class="[n.column_default_border/] post_count_column nowrap" align="center" style="[n.width_style.width/]">
                <n.default. to="[t]Posts[/t]"><n.title/></n.default.>
            </td>
        </head>
        <body>
            <td class="weak-color [n.column_default_border/]" align="center"><n.current_node.post_count/></td>
        </body>
    </n.table_column>
</macro>