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

Don't show the instance name on a project level

Henriette Darged200c2694ca7
diff --git a/app/views/activities/index.html.erb b/app/views/activities/index.html.erb
index 84c6cd0629e..0094b403794 100644
--- a/app/views/activities/index.html.erb
+++ b/app/views/activities/index.html.erb
@@ -33,8 +33,8 @@ 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))).html_safe }
header.with_description { t(:label_date_from_to, start: format_date(@date_to - @days), end: format_date(@date_to-1)) }
- header.with_breadcrumbs([{ href: home_path, text: organization_name},
- *([href: project_overview_path(@project.id), text: @project.name] if @project),
+ header.with_breadcrumbs([*([ href: home_path, text: organization_name ] unless @project),
+ *([ href: project_overview_path(@project.id), text: @project.name ] if @project),
t(:label_activity)])
end
%>
diff --git a/app/views/news/index.html.erb b/app/views/news/index.html.erb
index 59cd801d4d7..968d66ba086 100644
--- a/app/views/news/index.html.erb
+++ b/app/views/news/index.html.erb
@@ -33,9 +33,9 @@ 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: organization_name},
- *([href: project_overview_path(@project.id), text: @project.name] if @project),
- t(:label_news_plural)])
+ header.with_breadcrumbs([*([ href: home_path, text: organization_name ] unless @project),
+ *([ href: project_overview_path(@project.id), text: @project.name ] if @project),
+ t(:label_news_plural)])
end
%>
<% if managable %>
diff --git a/modules/boards/app/views/boards/boards/index.html.erb b/modules/boards/app/views/boards/boards/index.html.erb
index f4b8c04b372..56996a595d0 100644
--- a/modules/boards/app/views/boards/boards/index.html.erb
+++ b/modules/boards/app/views/boards/boards/index.html.erb
@@ -32,8 +32,8 @@ See COPYRIGHT and LICENSE files for more details.
<%=
render Primer::OpenProject::PageHeader.new do |header|
header.with_title { t("boards.label_boards") }
- header.with_breadcrumbs([{ href: home_path, text: organization_name },
- *([href: project_overview_path(@project.id), text: @project.name] if @project),
+ header.with_breadcrumbs([*([ href: home_path, text: organization_name ] unless @project),
+ *([ href: project_overview_path(@project.id), text: @project.name ] if @project),
t("boards.label_boards")])
end
%>
diff --git a/modules/calendar/app/views/calendar/calendars/index.html.erb b/modules/calendar/app/views/calendar/calendars/index.html.erb
index 36ac02c2396..f1d7cdbf2b6 100644
--- a/modules/calendar/app/views/calendar/calendars/index.html.erb
+++ b/modules/calendar/app/views/calendar/calendars/index.html.erb
@@ -31,8 +31,8 @@ See COPYRIGHT and LICENSE files for more details.
<%=
render Primer::OpenProject::PageHeader.new do |header|
header.with_title { t(:label_calendar_plural) }
- header.with_breadcrumbs([{ href: home_path, text: organization_name},
- *([href: project_overview_path(@project.id), text: @project.name] if @project),
+ header.with_breadcrumbs([*([ href: home_path, text: organization_name ] unless @project),
+ *([ href: project_overview_path(@project.id), text: @project.name ] if @project),
t(:label_calendar_plural)])
end
%>
diff --git a/modules/reporting/app/views/cost_reports/index.html.erb b/modules/reporting/app/views/cost_reports/index.html.erb
index 7ee8d29e6bd..5fd3a12c914 100644
--- a/modules/reporting/app/views/cost_reports/index.html.erb
+++ b/modules/reporting/app/views/cost_reports/index.html.erb
@@ -38,8 +38,8 @@ See COPYRIGHT and LICENSE files for more details.
<%=
render Primer::OpenProject::PageHeader.new do |header|
header.with_title { render_widget Widget::Controls::QueryName, @query, :can_rename => allowed_in_report?(:rename, @query, current_user) }
- header.with_breadcrumbs([{ href: home_path, text: organization_name},
- *([href: project_overview_path(@project.id), text: @project.name] if @project),
+ header.with_breadcrumbs([*([ href: home_path, text: organization_name ] unless @project),
+ *([ href: project_overview_path(@project.id), text: @project.name ] if @project),
{ href: url_for({ controller: "cost_reports" , action: :index, project_id: @project }), text: I18n.t(:cost_reports_title)},
(@query.persisted? ? "#{@query.name}" : t(:label_new_report))])
diff --git a/modules/team_planner/app/views/team_planner/team_planner/index.html.erb b/modules/team_planner/app/views/team_planner/team_planner/index.html.erb
index a8e6d21fd43..9cfb95ae7a9 100644
--- a/modules/team_planner/app/views/team_planner/team_planner/index.html.erb
+++ b/modules/team_planner/app/views/team_planner/team_planner/index.html.erb
@@ -3,8 +3,7 @@
<%=
render Primer::OpenProject::PageHeader.new do |header|
header.with_title { t('team_planner.label_team_planner_plural') }
- header.with_breadcrumbs([{ href: home_path, text: organization_name},
- { href: project_overview_path(@project.id), text: @project.name },
+ header.with_breadcrumbs([{ href: project_overview_path(@project.id), text: @project.name },
t('team_planner.label_team_planner_plural')])
end
%>