This is just a WiP to test a new website template. Taken online from source referenced in the sidebar footer. Very nice and clean look, have not had the time to add all features yet and is only used to demonstrate it.
31 lines
1.2 KiB
Smarty
31 lines
1.2 KiB
Smarty
<article class="module width_half" style="min-height: 350px;">
|
|
<header><h3>Contributor Shares</h3></header>
|
|
<table class="tablesorter" cellspacing="0">
|
|
<thead>
|
|
<tr>
|
|
<th align="center">Rank</th>
|
|
<th>User Name</th>
|
|
<th align="right" style="padding-right: 25px;">Shares</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{assign var=rank value=1}
|
|
{assign var=listed value=0}
|
|
{section shares $CONTRIBSHARES}
|
|
<tr{if $GLOBAL.userdata.username == $CONTRIBSHARES[shares].account}{assign var=listed value=1} style="background-color:#99EB99;"{else} class="{cycle values="odd,even"}"{/if}>
|
|
<td align="center">{$rank++}</td>
|
|
<td>{if $CONTRIBSHARES[shares].is_anonymous|default:"0" == 1}anonymous{else}{$CONTRIBSHARES[shares].account|escape}{/if}</td>
|
|
<td align="right" style="padding-right: 25px;">{$CONTRIBSHARES[shares].shares|number_format}</td>
|
|
</tr>
|
|
{/section}
|
|
{if $listed != 1 && $GLOBAL.userdata.username|default:""}
|
|
<tr>
|
|
<td align="center">n/a</td>
|
|
<td>{$GLOBAL.userdata.username|escape}</td>
|
|
<td align="right" style="padding-right: 25px;">{$GLOBAL.userdata.shares.valid|number_format}</td>
|
|
</tr>
|
|
{/if}
|
|
</tbody>
|
|
</table>
|
|
</article>
|