Implement basic statistics

This commit is contained in:
Maximilian Grundke
2018-03-13 18:38:54 +01:00
parent da0859d483
commit 68d3fd174e
6 changed files with 116 additions and 3 deletions

View File

@@ -1,3 +1,9 @@
h1 = t('shared.statistics')
.statistics-wrapper
#statistics-container
- statistics_data.each do | section |
h2 = section[:name]
.statistics-wrapper
- section[:entries].each do | entry |
div
.title = entry[:title]
.data = entry[:data].to_s + (entry[:unit] or '')