Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Correctly link the add button

Klaus Zanders3ab229a1f277
diff --git a/modules/costs/app/components/admin/time_entry_activities/index_component.html.erb b/modules/costs/app/components/admin/time_entry_activities/index_component.html.erb
index ff3163ae6e1..96122131a93 100644
--- a/modules/costs/app/components/admin/time_entry_activities/index_component.html.erb
+++ b/modules/costs/app/components/admin/time_entry_activities/index_component.html.erb
@@ -17,7 +17,11 @@
"projects--settings--border-box-filter-target": "filter"
}
)
- subheader.with_action_button(scheme: :primary) do |button|
+ subheader.with_action_button(
+ scheme: :primary,
+ tag: :a,
+ href: new_admin_time_entry_activity_path
+ ) do |button|
button.with_leading_visual_icon(icon: :plus)
"Activity"
end