... | in last_post_column_custom.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 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
|
<macro name="last_post_column_custom" parameters="title,width,has_avatar_control,white_space">
<n.table_column>
<head>
<td class="[n.column_default_border/] nowrap last-post-column" align="center" style="[n.width_style.width/]">
<n.if.equal value1="[n.has_avatar_control/]" value2="no">
<then>
<table class="avatar-table">
<tr>
<td style="width:22px;border:none">
<n.avatar_control group="B"/>
</td>
<td class="nowrap" style="font-weight:bold;border:none">
<n.default. to="[t]Last Post[/t]"><n.title/></n.default.>
</td>
</tr>
</table>
</then>
<else>
<n.default. to="[t]Last Post[/t]"><n.title/></n.default.>
</else>
</n.if.equal>
</td>
</head>
<body>
<n.current_node.>
<td class="[n.column_default_border/] weak-color" >
<n.if.either condition1="[n.is_post/]" condition2="[n.has_topics/]">
<then>
<n.last_node.>
<table class="avatar-table" align="center" >
<tr>
<td style="margin:.2em 0;padding:0 .2em;border:none;[n.style. property='white-space'][n.white_space/][/n.style.]">
<n.owner.avatar size="small" group="B"/>
</td>
<td class="weak-color" style="color: black;font-size:90%;margin:.3em 0;padding:0 .2em;border:none;[n.style. property='white-space'][n.white_space/][/n.style.]">
<n.when_created.short_format/>
</td>
<td style="padding:0 .2em;border:none;[n.style. property='white-space'][n.white_space/][/n.style.]">
<span class="weak-color nowrap" style="padding-left:.0em;font-size:80%">
<t>in</t>
</span>
</td>
<td style="font-size:90%;margin:.3em 0;padding:0 .2em;border:none;[n.style. property='white-space'][n.white_space/][/n.style.]">
<n.smart_post_link text="[n.truncate. size='20'][n.node_text/][/n.truncate.]" />
</td>
<td style="padding:0 .2em;border:none;[n.style. property='white-space'][n.white_space/][/n.style.]">
<span class="weak-color nowrap" style="padding-left:.0em;font-size:80%">
<t>by</t>
</span>
</td>
<td style="width:100%;font-size:75%;margin:.2em 0;padding:0 .0em;border:none;[n.style. property='white-space'][n.white_space/][/n.style.]">
<t><t.author.owner.name truncate="10"/></t>
</td>
</tr>
</table>
</n.last_node.>
</then>
<else>
<span style="padding-left:.4em;font-size:80%">
<t>Empty</t>
</span>
</else>
</n.if.either>
</td>
</n.current_node.>
</body>
</n.table_column>
</macro>
|
Free forum by Nabble | Naml |