Skip to content

Commit

Permalink
fix meeting breadcrumb in new page
Browse files Browse the repository at this point in the history
  • Loading branch information
bsatarnejad committed Oct 2, 2024
1 parent a357e10 commit 611123f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/boards/app/views/boards/boards/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ 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},
header.with_breadcrumbs([{ href: home_path, text: organization_name },
*([href: project_overview_path(@project.id), text: @project.name] if @project),
t("boards.label_boards")])
end
Expand Down
2 changes: 1 addition & 1 deletion modules/meeting/app/views/meetings/new.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ See COPYRIGHT and LICENSE files for more details.
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: home_path, text: organization_name },
{ href: @project.present? ? project_meetings_path(@project.id) : meetings_path,
text: I18n.t(:label_meeting_plural) },
breadcrumb_element.html_safe])
Expand Down

0 comments on commit 611123f

Please sign in to comment.