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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
show correct breadcrumb in home page for the time that there is a project selected
Behrokh Satarnejad3a367f2dc1d8
diff --git a/app/views/activities/index.html.erb b/app/views/activities/index.html.erbindex 2ff43a9f3d3..4c5374aa0b1 100644--- a/app/views/activities/index.html.erb+++ b/app/views/activities/index.html.erb@@ -32,7 +32,7 @@ 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([{ href: home_path, text: I18n.t("label_home")},+ header.with_breadcrumbs([{ href: home_path, text: organization_name},*([href: project_overview_path(@project.id), text: @project.name] if @project),t(:label_activity)])enddiff --git a/app/views/homescreen/index.html.erb b/app/views/homescreen/index.html.erbindex 5fb9ebf79b4..cd717e8e444 100644--- a/app/views/homescreen/index.html.erb+++ b/app/views/homescreen/index.html.erb@@ -29,7 +29,7 @@ See COPYRIGHT and LICENSE files for more details.<%=render(Primer::OpenProject::PageHeader.new) do |header|header.with_title { I18n.t("label_home") }- header.with_breadcrumbs([I18n.t(:label_home)])+ header.with_breadcrumbs([{ href: home_path, text: organization_name}, I18n.t(:label_home)])end%>diff --git a/app/views/news/index.html.erb b/app/views/news/index.html.erbindex 778785c31a0..61998694372 100644--- a/app/views/news/index.html.erb+++ b/app/views/news/index.html.erb@@ -33,7 +33,7 @@ See COPYRIGHT and LICENSE files for more details.<%=render Primer::OpenProject::PageHeader.new do |header|header.with_title { t(:label_news_plural) }- header.with_breadcrumbs([{ href: home_path, text: I18n.t("label_home")},+ header.with_breadcrumbs([{ href: home_path, text: organization_name},*([href: project_overview_path(@project.id), text: @project.name] if @project),t(:label_news_plural)])end