Hide only table and show graphs for statistics.

This commit is contained in:
Sebastian Serth
2019-11-29 16:00:05 +01:00
parent af75ed9e91
commit feb1e09d9a

View File

@ -24,7 +24,7 @@ h1 = @exercise
= row(label: '.average_worktime') do
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
-if symbol==:external_users
-working_time_array = []
@ -38,6 +38,7 @@ h1 = @exercise
hr
div#chart_2
hr
- if current_user.admin?
.table-responsive
table.table.table-striped.sortable
thead