news_details_row

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 "news_details_row".
... 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.avatar size="small" border_class="medium-border-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="http://theunknown23.weebly.com/files/theme/message.png" align="absmiddle" height="14" width="15"/>
                    <n.if.has_replies>
                        <then><n.comments_link/></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.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>
</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>