Hide only table and show graphs for statistics.
This commit is contained in:
@ -24,7 +24,7 @@ h1 = @exercise
|
|||||||
= row(label: '.average_worktime') do
|
= row(label: '.average_worktime') do
|
||||||
p = @exercise.average_working_time
|
p = @exercise.average_working_time
|
||||||
|
|
||||||
- Hash[:internal_users => t('.internal_users'), :external_users => t('.external_users')].each_pair if current_user.admin? do |symbol, label|
|
- Hash[:internal_users => t('.internal_users'), :external_users => t('.external_users')].each_pair do |symbol, label|
|
||||||
strong = label
|
strong = label
|
||||||
-if symbol==:external_users
|
-if symbol==:external_users
|
||||||
-working_time_array = []
|
-working_time_array = []
|
||||||
@ -38,6 +38,7 @@ h1 = @exercise
|
|||||||
hr
|
hr
|
||||||
div#chart_2
|
div#chart_2
|
||||||
hr
|
hr
|
||||||
|
- if current_user.admin?
|
||||||
.table-responsive
|
.table-responsive
|
||||||
table.table.table-striped.sortable
|
table.table.table-striped.sortable
|
||||||
thead
|
thead
|
||||||
|
Reference in New Issue
Block a user