Index: app/helpers/timelog_helper.rb =================================================================== --- app/helpers/timelog_helper.rb (revision 10413) +++ app/helpers/timelog_helper.rb (working copy) @@ -77,6 +77,7 @@ [l(:label_yesterday), 'yesterday'], [l(:label_this_week), 'current_week'], [l(:label_last_week), 'last_week'], + [l(:label_last_n_weeks, 2), 'last_2_weeks'], [l(:label_last_n_days, 7), '7_days'], [l(:label_this_month), 'current_month'], [l(:label_last_month), 'last_month'], Index: app/controllers/timelog_controller.rb =================================================================== --- app/controllers/timelog_controller.rb (revision 10413) +++ app/controllers/timelog_controller.rb (working copy) @@ -308,6 +308,9 @@ when 'last_week' @from = Date.today - 7 - (Date.today.cwday - 1)%7 @to = @from + 6 + when 'last_2_weeks' + @from = Date.today - 14 - (Date.today.cwday - 1)%7 + @to = @from + 13 when '7_days' @from = Date.today - 7 @to = Date.today Index: config/locales/en.yml =================================================================== --- config/locales/en.yml (revision 10413) +++ config/locales/en.yml (working copy) @@ -659,6 +659,7 @@ label_yesterday: yesterday label_this_week: this week label_last_week: last week + label_last_n_weeks: "last %{count} weeks" label_last_n_days: "last %{count} days" label_this_month: this month label_last_month: last month