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%