Use team 0 to display solutions

This commit is contained in:
nemunaire 2014-12-29 01:34:18 +01:00
commit 458060bc3b
6 changed files with 25 additions and 20 deletions

View file

@ -53,22 +53,13 @@
</div>
<div class="panel-body">
{if empty($my_team->id)}
Vérifiez votre solution parmi les algorithmes suivants :
<table class="table" style="font-size: 14px; padding: 10px; margin-bottom: 10px;">
<thead>
<tr>
<th>Algorithme</th>
<th>Hash</th>
</thead>
<tbody>
{foreach from=$cur_exercice->keys item=key}
<tr>
<td>{$key.format}</td>
<td><div class="samptest"><samp>{$key.value}</samp></div></td>
</tr>
{/foreach}
</tbody>
</table>
Vérifiez votre solution parmi les algorithmes suivants :<br><br>
<dl class="dl-horizontal">
{foreach from=$cur_exercice->keys item=key}
<dt>{$key.format}</dt>
<dd><samp>{$key.value}</samp></dd>
{/foreach}
</dl>
{else if $cur_exercice->has_solved($my_team)}
<strong>R&eacute;solu &agrave; {$cur_exercice->has_solved($my_team)|date_format:"%H:%M:%S"} :)</strong>
{else}