Skip to content
Snippets Groups Projects
Commit a2daf57b authored by Graham Cole's avatar Graham Cole
Browse files

mini bananas for the members frontpage

parent 8a1b006a
No related branches found
No related tags found
No related merge requests found
<ul class="bananas">
{foreach name=awards from=$awards item=award}
<li class="{award_image_class number=$award.score}">
{if !isset($singlemember)}
<strong>{if $award.score >0}+{/if}{$award.score}</strong> awarded to
<a href="{$baseurl}{if $award.real == TRUE}/Community/Members/{else}/Community/Bananas{/if}{$award.username}">{$award.username}</a>
<small>(from {$award.who}, {$award.whn|date_format:"%d %b %Y"})</small><br /> {/if}
<q>{$award.why}</q> <br />
<small>
<strong>{if $award.score >0}+{/if}{$award.score}</strong> awarded by {$award.who} on {$award.whn | date_format:"%d %b %Y"}
</small>
{if isset($singlemember)} <small>
<strong>{if $award.score >0}+{/if}{$award.score}</strong> awarded by {$award.who} on {$award.whn|date_format:"%d %b %Y"}
</small>{/if}
</li>
{/foreach}
</ul>
......@@ -59,7 +59,7 @@
<dl class="bananas">
{foreach name=awardsbyyear from=$member.awardsbyyear key=yearname item=year}
<dt>{$yearname}/{math equation="x + 1" x=$yearname}: <small>{$year.sum} banana{if $year.sum|abs != 1}s{/if}</small></dt>
<dd>{include file=banana-awardlist.tpl awards=$year.awards}</dd>
<dd>{include file=banana-awardlist.tpl awards=$year.awards singlemember=true}</dd>
{/foreach}
</dl>
</div>
......@@ -74,21 +74,9 @@
</div>
{/if}
{else}
<p> Please Search for a member in the sidebar.</p>
<p> Please search for a member in the sidebar.</p>
<h3>Recent Awards</h3>
<table>
{foreach name=recent from=$stats.recent key=key item=award}
<tr>
{if $award.real == TRUE}
<td><a href="/Community/Members/{$award.username}">{$award.username}</a></td>
{else}
<td><a href="/Community/Bananas/{$award.username}">{$award.username}</a></td>
{/if}
<td>{bananaprint score=$award.score}</td>
<td><q>{$award.why}</q><br /><small>Awarded by {$award.who} on {$award.whn|date_format:"%d %b %Y"}</small></td>
</tr>
{/foreach}
</table>
{include file=banana-awardlist.tpl awards=$stats.recent}
{/if}
{else}
<p>Please log in to view full member details.</p>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment