news_details_row

NAML documentation   Watch a video
   Usages of this macro
... in news_details_row.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
<override_macro name="news_details_row" requires="node">
    <div class="news-details weak-color">
        <n.owner
Binary
Namespace: NodeNamespace
Parameters: do
.avatar
Macro
Requires: user
Parameters: size, border_class, group
 size="small" border_class="medium-border-color"/>  
        <span class="nowrap">
            <t>by <t.author.owner
Binary
Namespace: NodeNamespace
Parameters: do
.name
Binary
Namespace: UserNamespace
Parameters: truncate
 truncate="20"/></t>
            &bull;
        </span>
        <span class="nowrap"><n.when_created
Binary
Namespace: NodeNamespace
Parameters: do
.short_format
Macro
Requires: date
/></span>
        <span>|</span>
        <span class="nowrap"><n.views
Macro
Requires: node
Parameters: show_text
 show_text="true"/></span>
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.is_locked_topic
Macro
Requires: node
>
            <then>
                <span>|</span>
                <span class="nowrap">
                    <img src="http://theunknown23.weebly.com/files/theme/message.png" align="absmiddle" height="14" width="15"/>
                    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.has_replies
Binary
Namespace: NodeNamespace
>
                        <then><n.comments_link
Macro
Requires: node
/></then>
                        <else>0 <t>answers | <span style="color:#ea7400; font-weight:bold;">be the first to answer</span></t></else>
                    </n.if.has_replies>
                </span>
            </then>
        </n.if.not.is_locked_topic>
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_pinned_in_loop
Macro
Requires: node, node_list
>
            <then><span><img src="/images/pin.png" width="20" height="21" style="margin:0 .5em" align="absmiddle"/></span></then>
        </n.if.is_pinned_in_loop>
    </div>
</override_macro>
Overrides default macro
... in view_news.naml
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
<macro name="news_details_row" requires="node">
    <div class="news-details weak-color">
        <span class="nowrap">
            <t>by <t.author.owner.name truncate="20"/></t>
            &bull;
        </span>
        <span class="nowrap"><n.when_created.short_format/></span>
        <span>|</span>
        <span class="nowrap"><n.views show_text="true"/></span>
        <n.if.not.is_locked_topic>
            <then>
                <span>|</span>
                <span class="nowrap">
                    <img src="/images/icon_message.png" align="absmiddle" height="14" width="15"/>
                    <n.if.has_replies>
                        <then><n.comments_link/></then>
                        <else>0 <t>comments</t></else>
                    </n.if.has_replies>
                </span>
            </then>
        </n.if.not.is_locked_topic>
        <n.if.is_pinned_in_loop>
            <then><span><img src="/images/pin.png" width="20" height="21" style="margin:0 .5em" align="absmiddle"/></span></then>
        </n.if.is_pinned_in_loop>
    </div>
</macro>