Use team 0 to display solutions
This commit is contained in:
parent
da1e9da495
commit
739d5b5722
5 changed files with 54 additions and 5 deletions
|
|
@ -5,7 +5,9 @@
|
|||
<h3 style="font-variant: small-caps">{$cur_theme->get_name()}</h3>
|
||||
<p>
|
||||
{foreach from=$cur_theme->get_exercices_ordered() item=exercice}
|
||||
{if $exercice->has_solved($my_team)}
|
||||
{if empty($my_team->id)}
|
||||
{link class="btn btn-primary" role="button" href_prefix="/{$SALT_USER}/{$my_team->get_id()}/" href="{$cur_theme->get_id()}-{$cur_theme->get_name_url()}/{$exercice->get_id()}/" label="{$exercice->get_title(true)}"}
|
||||
{elseif $exercice->has_solved($my_team)}
|
||||
{link class="btn btn-success" role="button" href_prefix="/{$SALT_USER}/{$my_team->get_id()}/" href="{$cur_theme->get_id()}-{$cur_theme->get_name_url()}/{$exercice->get_id()}/" label="{$exercice->get_title(true)}"}
|
||||
{elseif $exercice->is_unlocked($my_team)}
|
||||
{link class="btn btn-primary" role="button" href_prefix="/{$SALT_USER}/{$my_team->get_id()}/" href="{$cur_theme->get_id()}-{$cur_theme->get_name_url()}/{$exercice->get_id()}/" label="{$exercice->get_title(true)}"}
|
||||
|
|
|
|||
Reference in a new issue