diff --git a/app/views/activities/index.html.erb b/app/views/activities/index.html.erb index 64f7f6a85..f71266004 100644 --- a/app/views/activities/index.html.erb +++ b/app/views/activities/index.html.erb @@ -32,6 +32,10 @@ <% content_for :sidebar do %> <%= form_tag({}, :method => :get, :id => 'activity_scope_form') do %>
+ <%= t(:label_days_to_html, :days => @days, :date => date_field_tag('from', '', :value => (@date_to - 1), :size => 10)) %> + <%= calendar_for('from') %> +
<%= submit_tag l(:button_apply), :class => 'button-small', :name => 'submit' %>
<% end %> <% end %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 0836d2593..c3f4925cd 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -945,6 +945,7 @@ en: label_ascending: Ascending label_descending: Descending label_date_from_to: From %{start} to %{end} + label_days_to_html: "%{days} days up to %{date}" label_wiki_content_added: Wiki page added label_wiki_content_updated: Wiki page updated label_group: Group diff --git a/config/locales/ja.yml b/config/locales/ja.yml index 17fd98e80..a972bc005 100644 --- a/config/locales/ja.yml +++ b/config/locales/ja.yml @@ -793,6 +793,7 @@ ja: label_ascending: 昇順 label_descending: 降順 label_date_from_to: "%{start}から%{end}まで" + label_days_to_html: "%{date} までの%{days}日間" label_wiki_content_added: Wikiページの追加 label_wiki_content_updated: Wikiページの更新 label_group: グループ