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

Replace toolbar of Meetings/create page with Primer::PageHeader

Henriette Dargeccc30b91b875
diff --git a/modules/meeting/app/views/meetings/new.html.erb b/modules/meeting/app/views/meetings/new.html.erb
index 1661907a753..dcdd6a7b711 100644
--- a/modules/meeting/app/views/meetings/new.html.erb
+++ b/modules/meeting/app/views/meetings/new.html.erb
@@ -27,13 +27,28 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
<% copy_from = local_assigns[:copy_from] %>
-<% if copy_from %>
- <% html_title t('meeting.copy.title', title: copy_from.title) %>
- <%= toolbar title: t('meeting.copy.title', title: copy_from.title) %>
-<% else %>
- <% html_title t(:label_meeting_new) %>
- <%= toolbar title: t(:label_meeting_new) %>
-<% end %>
+<% if copy_from
+ page_title = t('meeting.copy.title', title: copy_from.title)
+ breadcrumb_element = t('meeting.copy.title', title: "<b>#{copy_from.title}</b>")
+ else
+ page_title = t(:label_meeting_new)
+ breadcrumb_element = t(:label_meeting_new)
+ end %>
+
+<% html_title page_title %>
+
+<%=
+ render(Primer::OpenProject::PageHeader.new) do |header|
+ header.with_title { page_title }
+ header.with_breadcrumbs([@project.present? ?
+ { href: project_overview_path(@project.id), text: @project.name } :
+ { href: home_path, text: I18n.t(:label_home) },
+ { href: @project.present? ? project_meetings_path(@project.id) : meetings_path,
+ text: I18n.t(:label_meeting_plural) },
+ breadcrumb_element.html_safe])
+ end
+%>
+
<%= labelled_tabular_form_for @meeting,
as: :meeting,
diff --git a/modules/meeting/config/locales/en.yml b/modules/meeting/config/locales/en.yml
index 77818c73e7a..2064001e8f6 100644
--- a/modules/meeting/config/locales/en.yml
+++ b/modules/meeting/config/locales/en.yml
@@ -116,7 +116,7 @@ en:
attachments:
text: "Attached files are available to all meeting participants. You can also drag and drop these into agenda item notes."
copy:
- title: "Copy meeting %{title}"
+ title: "Copy meeting: %{title}"
attachments: "Copy attachments"
attachments_text: "Copy over all attached files to the new meeting"
agenda: "Copy agenda"