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

show correct breadcrumb in activity page for the time that there is a project selected

Behrokh Satarnejada4a912b66cb8
diff --git a/app/views/activities/index.html.erb b/app/views/activities/index.html.erb
index 8d3ce813dcd..2ff43a9f3d3 100644
--- a/app/views/activities/index.html.erb
+++ b/app/views/activities/index.html.erb
@@ -32,7 +32,9 @@ See COPYRIGHT and LICENSE files for more details.
<%=
render Primer::OpenProject::PageHeader.new do |header|
header.with_title { (@author.nil? ? t(:label_activity) : t(:label_user_activity, value: link_to_user(@author))) }
- header.with_breadcrumbs([t(:label_activity)])
+ header.with_breadcrumbs([{ href: home_path, text: I18n.t("label_home")},
+ *([href: project_overview_path(@project.id), text: @project.name] if @project),
+ t(:label_activity)])
end
%>
<%=