classic_big_avatar_cell

NAML documentation   Watch a video
   Usages of this macro
... in classic_big_avatar_cell.naml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<override_macro name="classic_big_avatar_cell" requires="node">
    <div class="avatar-outer">
        <div class="avatar-inner">
            <n.owner
Binary
Namespace: NodeNamespace
Parameters: do
.avatar
Macro
Requires: user
Parameters: size, border_class, group
 size="big" border_class="medium-border-color"/>
        </div>
    </div>
    <n.put_in_head
Binary
Namespace: HtmlNamespace
Parameters: in_head
.>
        <style type="text/css">
            div.avatar-label { font-size:100%; }
        </style>
    </n.put_in_head.>
    <n.avatar_label
Macro
Parameters: condition, label
 condition="[n.owner
Binary
Namespace: NodeNamespace
Parameters: do
.is_site_admin
Macro
Requires: user
/]" label="[t]Admin[/t]"/>
    <n.avatar_label
Macro
Parameters: condition, label
 condition="[n.owner
Binary
Namespace: NodeNamespace
Parameters: do
.is_banned
Binary
Namespace: UserNamespace
/]" label="[t]Banned[/t]"/>
    <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.owner
Binary
Namespace: NodeNamespace
Parameters: do
.is_site_admin
Macro
Requires: user
>
        <then.owner
Binary
Namespace: NodeNamespace
Parameters: do
.post_count
Macro
Requires: user
/>
    </n.if.not.owner.is_site_admin>
</override_macro>
Overrides default macro
... in topic.naml
571
572
573
574
575
576
577
578
579
580
<macro name="classic_big_avatar_cell" requires="node">
    <div class="avatar-outer">
        <div class="avatar-inner">
            <n.owner.avatar size="big" border_class="medium-border-color"/>
        </div>
    </div>
    <n.avatar_label condition="[n.owner.is_site_admin/]" label="[b][t]Administrator[/t][/b]"/>
    <n.avatar_label condition="[n.owner.is_banned/]" label="[t]Banned User[/t]"/>
    <n.owner.post_count/>
</macro>