Use team 0 to display solutions
This commit is contained in:
parent
05bc4c605c
commit
458060bc3b
6 changed files with 25 additions and 20 deletions
|
|
@ -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ésolu à {$cur_exercice->has_solved($my_team)|date_format:"%H:%M:%S"} :)</strong>
|
||||
{else}
|
||||
|
|
|
|||
Reference in a new issue