Allow filtering via UI

This commit is contained in:
Maximilian Grundke
2018-04-24 14:46:35 +02:00
parent 4177e40edc
commit 64555d55fc
3 changed files with 31 additions and 0 deletions

View File

@ -1 +1,22 @@
- content_for :head do
= javascript_include_tag(asset_path('vis.min.js', type: :javascript))
= stylesheet_link_tag(asset_path('vis.min.css', type: :stylesheet))
.group
.title
h1 = t('statistics.graphs.rfc_activity')
.spinner
.graph#rfc-activity
form
.form-group
label for="from-date" = t('.from')
input type="date" class="form-control" id="from-date" name="from" value=DateTime.new(2016).to_date
.form-group
label for="to-date" = t('.to')
input type="date" class="form-control" id="to-date" name="to" value=DateTime.now.to_date
.form-group
label for="range" = t('.interval')
select class="form-control" id="range" name="range"
= [:decade, :year, :month, :day, :hour, :minute, :second].each do | key |
option selected=(key==:year) = key
button type="submit" class="btn btn-primary" = t('.update')

View File

@ -763,3 +763,8 @@ de:
user_activity: "Nutzeraktivität"
rfc_activity: "Kommentaranfragenaktivität"
history: "Historie"
rfc_activity_history:
from: "Von"
to: "Bis"
interval: "Intervall"
update: "Aktualisieren"

View File

@ -763,3 +763,8 @@ en:
user_activity: "User Activity"
rfc_activity: "RfC Activity"
history: "History"
rfc_activity_history:
from: "From"
to: "To"
interval: "Interval"
update: "Update"