From 0c33d83131dfba13f167f20e6ef2d385f082bf9c Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Tue, 21 Jan 2014 17:45:46 +0100 Subject: [PATCH] Fixed carousel --- onyx/tpl/bootstrap/public/home.tpl | 79 +++++++++++++--------------- onyx/tpl/bootstrap/public/layout.tpl | 6 ++- onyx/tpl/bootstrap/summary.tpl | 2 +- 3 files changed, 43 insertions(+), 44 deletions(-) diff --git a/onyx/tpl/bootstrap/public/home.tpl b/onyx/tpl/bootstrap/public/home.tpl index 72f6efbe..395aebdd 100644 --- a/onyx/tpl/bootstrap/public/home.tpl +++ b/onyx/tpl/bootstrap/public/home.tpl @@ -5,56 +5,51 @@ {/block} {block name=main} - {if isset($teams)} +{if isset($teams)} {/if} - - - {/block} diff --git a/onyx/tpl/bootstrap/public/layout.tpl b/onyx/tpl/bootstrap/public/layout.tpl index 8538e0ca..e8aeb0e0 100644 --- a/onyx/tpl/bootstrap/public/layout.tpl +++ b/onyx/tpl/bootstrap/public/layout.tpl @@ -22,7 +22,7 @@

Top 10

{foreach from=$top item=t key=k} -
{$k+1}. {link href="{$t->id}-{$t->get_name_url()}" href_prefix="/" label={$t->get_name()|replace:"_":" et "}} +
{$k+1}. {link href="{$t->id}-{$t->get_name_url()}" href_prefix="/" label={$t->get_name()|replace:"_":" "}} {$t->get_pts()} @@ -46,5 +46,9 @@ var end_challenge = new Date({$END * 1000}); {/if} update_end(); + $(document).ready(function() { + $('#carousel-team').carousel({ + interval: 2000 }); + }); {/block} diff --git a/onyx/tpl/bootstrap/summary.tpl b/onyx/tpl/bootstrap/summary.tpl index 1eed15df..c7435bcf 100644 --- a/onyx/tpl/bootstrap/summary.tpl +++ b/onyx/tpl/bootstrap/summary.tpl @@ -1,7 +1,7 @@ - + {for $i=1 to $nbExoMax} {/for}
{$my_team->get_name()}{$my_team->get_name()|replace:"_":" "}Exercice {$i}