Add new global rank page
This commit is contained in:
parent
d442b1d3b3
commit
a229a10f25
3 changed files with 44 additions and 2 deletions
28
onyx/tpl/bootstrap/public/rank.tpl
Normal file
28
onyx/tpl/bootstrap/public/rank.tpl
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{extends file="public/layout.tpl"}
|
||||
|
||||
{block name=head2}
|
||||
<meta http-equiv="refresh" content="60">
|
||||
{/block}
|
||||
|
||||
{block name=main}
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>#</th>
|
||||
<th>Team</th>
|
||||
<th>Slogan</th>
|
||||
<th>Points</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{foreach from=$rank item=t key=k}
|
||||
<tr>
|
||||
<th>{$t->get_rank()}</th>
|
||||
<td>{link href="{$t->id}-{$t->get_name_url()}" href_prefix="/" label=$t->get_name()}</td>
|
||||
<td>{$t->slogan}</td>
|
||||
<td>{$t->get_pts()}</td>
|
||||
</tr>
|
||||
{/foreach}
|
||||
</tbody>
|
||||
</table>
|
||||
{/block}
|
||||
Reference in a new issue