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:
1 parent
d35d408ac6
commit
67a0bc62aa
6 files changed
+28
-11
No files matched your search
@@ -12,6 +12,7 @@ RedmineApp::Application.routes.draw do
|
||||
|
||||
# Weekly bonus: the weeks run, a week's hours and bonuses (by its Sunday, e.g. /tech_bonuses/2026-11-15)
|
||||
get 'tech_bonuses', to: 'tech_bonuses#index', as: :tech_bonuses
|
||||
get 'tech_bonuses/current', to: 'tech_bonuses#current', as: :current_tech_bonus_week
|
||||
get 'tech_bonuses/:week', to: 'tech_bonuses#show', as: :tech_bonus_week, constraints: { week: /\d{4}-\d{2}-\d{2}/ }
|
||||
post 'tech_bonuses/:week', to: 'tech_bonuses#create', constraints: { week: /\d{4}-\d{2}-\d{2}/ }
|
||||
get 'tech_bonuses/credits/:id/pdf', to: 'tech_bonuses#pdf', as: :tech_bonus_credit_pdf
|
||||
|
||||
Reference in new issue
Block a user