From 71d7591154f837929b5693d79643704f1b3e1ff5 Mon Sep 17 00:00:00 2001 From: Antoine Durand-Gasselin Date: Mon, 15 Jun 2009 11:36:13 +0200 Subject: [PATCH] [intranet/quota] modification du template svg de la barre d'occupation darcs-hash:20090615093613-bd074-e2d18f3e8e151445c281538e9115949264df4267.gz --- intranet/modules/quota/templates/barre.svg.tmpl | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/intranet/modules/quota/templates/barre.svg.tmpl b/intranet/modules/quota/templates/barre.svg.tmpl index f190b393..cd924231 100644 --- a/intranet/modules/quota/templates/barre.svg.tmpl +++ b/intranet/modules/quota/templates/barre.svg.tmpl @@ -5,7 +5,10 @@ #if $getVar('usage', False) #set total = $limite +#set barwidth = 700 #set quota = $quota +#set widthquota = int( barwidth * $quota/$limite ) +#set widthusage = int( barwidth * $usage/$limite ) #set usage = $usage #set usage_percent = int( 100 * $usage/$limite ) #set quota_percent = int( 100 * $quota/$limite ) @@ -19,16 +22,16 @@ - - + + 0Mo -$int(quota) Mo -$int(total) Mo +$int(quota) Mo +$int(total) Mo - - + + $percents%