server/onyx/tpl/bootstrap/public/home.tpl

39 lines
804 B
Smarty
Raw Normal View History

2013-11-25 10:55:15 +00:00
{extends file="public/layout.tpl"}
{block name=main}
2013-12-12 18:33:18 +00:00
<div class="well">
2013-11-25 20:12:01 +00:00
2013-12-12 18:33:18 +00:00
<table class="table" style="font-size: 12px;">
2013-11-25 20:12:01 +00:00
<thead>
<tr>
<th></th>
{for $i=1 to $nbExoMax}
<th class="text-center">Exercice {$i}</th>
{/for}
</tr>
</thead>
<tbody>
{$total=0}
{foreach from=$themes item=theme}
<tr>
<th>{$theme->get_name()}</th>
{$themeID=$theme->get_id()}
{foreach from=$theme->get_exercices_ordered() item=exo}
{$teamName=""}
{for $i=0 to $nbExoMax}
{$teamName=Team::first_to_solve_exercice($exo->get_id())}
{/for}
{if $teamName != ""}
<td class="success text-center">{$teamName}</td>
{else}
<td class="danger text-center"></td>
{/if}
{/foreach}
</tr>
{/foreach}
</tbody>
</table>
2013-11-08 21:27:08 +00:00
</div>
2013-10-09 15:51:12 +00:00
{/block}