Only show the mean charts to logged in users
This commit is contained in:
parent
e242c5d742
commit
e19fb43f01
1 changed files with 16 additions and 15 deletions
|
@ -64,23 +64,24 @@
|
|||
%span.big-number-card-number
|
||||
= number_with_delimiter(@dossiers_count)
|
||||
|
||||
- cache "computation-heavy-stats", :expires_in => 1.day do
|
||||
.stat-card.stat-card-half.pull-left
|
||||
%span.stat-card-title Temps de traitement moyen d'un dossier
|
||||
- if administration_signed_in?
|
||||
- cache "computation-heavy-stats", :expires_in => 1.day do
|
||||
.stat-card.stat-card-half.pull-left
|
||||
%span.stat-card-title Temps de traitement moyen d'un dossier
|
||||
|
||||
.chart-container
|
||||
.chart
|
||||
= line_chart @dossier_instruction_mean_time,
|
||||
:ytitle => "Jours",
|
||||
:colors => ["rgba(61, 149, 236, 1)"]
|
||||
.chart-container
|
||||
.chart
|
||||
= line_chart @dossier_instruction_mean_time,
|
||||
:ytitle => "Jours",
|
||||
:colors => ["rgba(61, 149, 236, 1)"]
|
||||
|
||||
.stat-card.stat-card-half.pull-left
|
||||
%span.stat-card-title Temps de remplissage moyen d'un dossier
|
||||
.stat-card.stat-card-half.pull-left
|
||||
%span.stat-card-title Temps de remplissage moyen d'un dossier
|
||||
|
||||
.chart-container
|
||||
.chart
|
||||
= line_chart @dossier_filling_mean_time,
|
||||
:ytitle => "Minutes",
|
||||
:colors => ["rgba(61, 149, 236, 1)"]
|
||||
.chart-container
|
||||
.chart
|
||||
= line_chart @dossier_filling_mean_time,
|
||||
:ytitle => "Minutes",
|
||||
:colors => ["rgba(61, 149, 236, 1)"]
|
||||
|
||||
.clearfix
|
||||
|
|
Loading…
Reference in a new issue