Top menu opens this week; weeks run are for Run tech bonuses

The Tech bonuses top menu now goes to /tech_bonuses/current, which
redirects to the week containing today. The index (week picker and
weeks run) is limited to Run tech bonuses: View tech bonuses only
covers a week's page, whose title links to the index only for those
who can run the bonus.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
rickyandClaude Opus 5.5 committed 2026-11-16 16:55:16 -05:00
1 parent d35d408ac6
commit 67a0bc62aa
6 files changed
+28 -11

No files matched your search

@@ -30,6 +30,11 @@ class TechBonusesController < ApplicationController
@week = RedmineQboBonus::Week.last_completed
end
# The top menu opens this week, so far
def current
redirect_to tech_bonus_week_path(RedmineQboBonus::Week.containing(Date.current).to_param)
end
def show
@report = RedmineQboBonus::WeekReport.new(@week)
@bonus_week = TechBonusWeek.for(@week)