blog_post_header

NAML documentation   Watch a video
   Usages of this macro
... in blog_post_header.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
<override_macro name="blog_post_header" requires="node">
    <div class="blog-header shaded-color-black">
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.is_pinned_in_loop
Macro
Requires: node, node_list
>
            <then>
                <div class="pinned"></div>
            </then>
        </n.if.is_pinned_in_loop>
        <div class="blog-date weak-color">
            <n.when_created
Binary
Namespace: NodeNamespace
Parameters: do
.date_only
Macro
Requires: date
/>
        </div>
        <div class="blog-title second-font adbayes-content">
            <n.node_link
Macro
Requires: node
Parameters: style, text, href, title, class
/>
        </div>
        <table class="blog-details weak-color">
            <tr>
                <td class="nowrap">
                    <n.owner
Binary
Namespace: NodeNamespace
Parameters: do
.avatar
Macro
Requires: user
Parameters: size, border_class, group
 size="small" border_class="medium-border-color"/>
                </td>
                <td class="nowrap">
                    <t>by <t.author.owner
Binary
Namespace: NodeNamespace
Parameters: do
.name
Binary
Namespace: UserNamespace
Parameters: truncate
 truncate="20"/></t>
                    @
                    <n.when_created
Binary
Namespace: NodeNamespace
Parameters: do
.time_only
Macro
Requires: date
/>
                    <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>
                </td>
            </tr>
        </table>
    </div>
</override_macro>
Overrides default macro
... in view_blog.naml
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
<macro name="blog_post_header" requires="node">
    <div class="blog-header shaded-bg-color">
        <n.if.is_pinned_in_loop>
            <then>
                <div class="pinned"></div>
            </then>
        </n.if.is_pinned_in_loop>
        <div class="blog-date weak-color">
            <n.when_created.date_only/>
        </div>
        <div class="blog-title second-font adbayes-content">
            <n.node_link/>
        </div>
        <table class="blog-details weak-color">
            <tr>
                <td class="nowrap">
                    <n.owner.avatar size="small" border_class="medium-border-color"/>
                </td>
                <td class="nowrap">
                    <t>by <t.author.owner.name truncate="20"/></t>
                    @
                    <n.when_created.time_only/>
                    <n.if.is_in_subapp>
                        <then><t>in <t.location.italic.subapp_link_on_hover/></t></then>
                    </n.if.is_in_subapp>
                </td>
            </tr>
        </table>
    </div>
</macro>