diff --git a/app/views/statistics/rfc_activity_history.html.slim b/app/views/statistics/rfc_activity_history.html.slim index cda46de2..dbe6f323 100644 --- a/app/views/statistics/rfc_activity_history.html.slim +++ b/app/views/statistics/rfc_activity_history.html.slim @@ -10,13 +10,13 @@ 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 + input type="date" class="form-control" id="from-date" name="from" value=(params[:from] || 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 + input type="date" class="form-control" id="to-date" name="to" value=(params[:to] || DateTime.now.to_date) .form-group label for="interval" = t('.interval') select class="form-control" id="interval" name="interval" - = [:decade, :year, :month, :day, :hour, :minute, :second].each do | key | - option selected=(key==:year) = key + = [:year, :quarter, :month, :day, :hour, :minute, :second].each do | key | + option selected=(key.to_s == params[:interval]) = key button type="submit" class="btn btn-primary" = t('.update')