Friday release

This commit is contained in:
nemunaire 2013-12-14 06:11:14 +01:00
commit c349769425
16 changed files with 319 additions and 89 deletions

View file

@ -1,9 +1,13 @@
{extends file="public/layout.tpl"}
{block name=main}
<div class="well">
<table class="table" style="font-size: 12px;">
{if isset($teams)}
<div id="carousel-team" class="carousel slide">
<div class="carousel-inner">
<div class="item active">
<div class="well">
<table class="table" style="font-size: 14px;">
<thead>
<tr>
<th></th>
@ -21,7 +25,7 @@
{foreach from=$theme->get_exercices_ordered() item=exo}
{$teamName=""}
{for $i=0 to $nbExoMax}
{$teamName=Team::first_to_solve_exercice($exo->get_id())}
{$teamName=$exo->first_to_solve_exercice()}
{/for}
{if $teamName != ""}
<td class="success text-center">{$teamName}</td>
@ -33,6 +37,20 @@
{/foreach}
</tbody>
</table>
</div>
</div>
{foreach from=$teams item=my_team key=k}
<div class="item">
<div class="well">
{include file="summary.tpl"}
</div>
</div>
{/foreach}
</div>
</div>
{/if}
{/block}

View file

@ -17,32 +17,23 @@
{/if}
<div class="row">
<div class="col-md-2">
<div class="col-md-3">
<h3>Top 10</h3>
<div class="list-group">
{foreach from=$top item=t key=k}
<div class="list-group-item">{$k+1}. {link href="{$t->id}-{$t->get_name()}" href_prefix="/" label=$t->get_name()}</div>
<div class="list-group-item">{$k+1}. {link href="{$t->id}-{$t->get_name()}" href_prefix="/" label=$t->get_name()}
<span class="badge">
{$t->get_pts()}
</span>
</div>
{/foreach}
</div>
</div>
<div class="col-md-10">
<div class="col-md-9">
{block name=main}{/block}
</div>
</div>
{if isset($teams)}
<div id="carousel-team" class="carousel slide">
<div class="carousel-inner">
{foreach from=$teams item=my_team key=k}
<div class="item{if $k == 0} active{/if}">
<div class="well">
{include file="summary.tpl"}
</div>
</div>
{/foreach}
</div>
</div>
{/if}
</div>
{/block}
@ -54,7 +45,7 @@
$(document).ready(function() {
update_end();
$('#carousel-team').carousel({
interval: 5000 });
interval: 10000 });
setInterval( function() {
update_end();

View file

@ -2,7 +2,6 @@
{block name=main}
<div>
<h1>{$my_team->get_name()}</h1>
{include file="summary.tpl"}
</div>
{/block}

View file

@ -1,7 +1,7 @@
<table class="table" style="font-size: 12px; padding: 10px; margin-bottom: 10px;">
<table class="table" style="font-size: 14px; padding: 10px; margin-bottom: 10px;">
<thead>
<tr>
<th style="font-size: 15px">{$my_team->get_name()}</th>
<th style="font-size: 30px">{$my_team->get_name()}</th>
{for $i=1 to $nbExoMax}
<th class="text-center">Exercice {$i}</th>
{/for}
@ -12,7 +12,7 @@
{$total=0}
{foreach from=$themes item=theme}
<tr>
<th style="padding: 0px">{$theme->get_name()}</th>
<th>{$theme->get_name()}</th>
{$sum=0}
{$cpt=0}
{$themeID=$theme->get_id()}
@ -43,8 +43,8 @@
</tbody>
<tfoot>
<tr>
<th colspan="{$nbExoMax+1}" style="text-align: right">Total :</th>
<th class="active text-center">{$total}</th>
<th colspan="{$nbExoMax+1}" style="text-align: right; font-size: 30px">Total :</th>
<th class="active text-center" style="font-size: 30px">{$total}</th>
</tr>
</tfoot>
</table>

View file

@ -8,7 +8,7 @@
<div class="panel-body">
<ul>
<li><strong>Gain :</strong> {$cur_exercice->points}</li>
<li><strong>Description :</strong> {$cur_exercice->statement}</li>
<li><strong>Description :</strong> {$cur_exercice->statement|escape|nl2br}</li>
</ul>
</div>
</div>