cell_details

NAML documentation   Watch a video
   Usages of this macro
... in cell_details.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
<override_macro name="cell_details">
    <div class="weak-color" style="font-variant: small-caps;">
        <t>by <t.author.owner
Binary
Namespace: NodeNamespace
Parameters: do
.name
Binary
Namespace: UserNamespace
Parameters: truncate
 truncate="20"/></t>
    </div>
 
    <div class="weak-color" style="width:100%;font-size:80%;margin:.3em 0;font-variant: small-caps;">
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.is_locked_topic
Macro
Requires: node
>
            <then>
                <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.has_replies
Binary
Namespace: NodeNamespace
>
                    <then.comments_link
Macro
Requires: node
/>
                    <else>
                        0 <t>comments</t>
                    </else>
                </n.if.has_replies>
            </then>
        </n.if.not.is_locked_topic>
        &ndash;
        <n.views
Macro
Requires: node
Parameters: show_text
 show_text="true"/>
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_in_subapp
Macro
Requires: node, node_list
>
            <then>
                - <t>in <t.location.italic
Macro
Parameters: text
.subapp_link_on_hover
Macro
Requires: node, node_list
/></t>
            </then>
        </n.if.is_in_subapp>
    </div>
</override_macro>
Overrides default macro
... in view_gallery.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
<macro name="cell_details">
    <div class="weak-color" style="font-variant: small-caps;">
        <t>by <t.author.owner.name truncate="20"/></t>
    </div>
 
    <div class="weak-color" style="width:100%;font-size:80%;margin:.3em 0;font-variant: small-caps;">
        <n.if.not.is_locked_topic>
            <then>
                <n.if.has_replies>
                    <then.comments_link/>
                    <else>
                        0 <t>comments</t>
                    </else>
                </n.if.has_replies>
            </then>
        </n.if.not.is_locked_topic>
        &ndash;
        <n.views show_text="true"/>
        <n.if.is_in_subapp>
            <then>
                - <t>in <t.location.italic.subapp_link_on_hover/></t>
            </then>
        </n.if.is_in_subapp>
    </div>
</macro>