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
update pageheader and subheader in boards page
Behrokh Satarnejad03d24955c23c
diff --git a/app/components/add_button_component.html.erb b/app/components/add_button_component.html.erbindex 9ba9cfb898b..bfe3065020d 100644--- a/app/components/add_button_component.html.erb+++ b/app/components/add_button_component.html.erb@@ -1,10 +1,9 @@-<li class="<%= li_css_class %>">- <a href="<%= dynamic_path %>"- id="<%= id %>"- title="<%= title %>"- arial-label="<%= aria_label %>"- class="<%= link_css_class %>">- <%= icon %>- <%= label %>- </a>-</li>+<a href="<%= dynamic_path %>"+ id="<%= id %>"+ title="<%= title %>"+ arial-label="<%= aria_label %>"+ class="<%= link_css_class %>">+ <%= icon %>+ <%= label %>+</a>+diff --git a/app/components/add_button_component.rb b/app/components/add_button_component.rbindex a2b91bc9206..3b971f87af9 100644--- a/app/components/add_button_component.rb+++ b/app/components/add_button_component.rb@@ -44,10 +44,6 @@ class AddButtonComponent < ApplicationComponentraise "Implement the id for this component"end- def li_css_class- "toolbar-item"- end-def titleaccessibility_label_textenddiff --git a/modules/boards/app/views/boards/boards/index.html.erb b/modules/boards/app/views/boards/boards/index.html.erbindex 8e4777c1ad2..3744faea429 100644--- a/modules/boards/app/views/boards/boards/index.html.erb+++ b/modules/boards/app/views/boards/boards/index.html.erb@@ -29,9 +29,20 @@ See COPYRIGHT and LICENSE files for more details.<% html_title(t('boards.label_boards')) -%>-<%= toolbar title: t('boards.label_boards') do %>- <%= render Boards::AddButtonComponent.new(current_project: @project) %>-<% end %>+<%=+ render Primer::OpenProject::PageHeader.new do |header|+ header.with_title { t("boards.label_boards") }+ header.with_breadcrumbs([t("boards.label_boards")])+ end+%>++<%=+ render Primer::OpenProject::SubHeader.new do |subheader|+ subheader.with_action_component do+ render Boards::AddButtonComponent.new(current_project: @project)+ end+ end+%><% if @board_grids.empty? -%><%= no_results_box %>diff --git a/modules/calendar/app/components/calendar/add_button_component.html.erb b/modules/calendar/app/components/calendar/add_button_component.html.erbindex 9ba9cfb898b..b1da75b2a66 100644--- a/modules/calendar/app/components/calendar/add_button_component.html.erb+++ b/modules/calendar/app/components/calendar/add_button_component.html.erb@@ -1,10 +1,8 @@-<li class="<%= li_css_class %>">- <a href="<%= dynamic_path %>"- id="<%= id %>"- title="<%= title %>"- arial-label="<%= aria_label %>"- class="<%= link_css_class %>">- <%= icon %>- <%= label %>- </a>-</li>+<a href="<%= dynamic_path %>"+ id="<%= id %>"+ title="<%= title %>"+ arial-label="<%= aria_label %>"+ class="<%= link_css_class %>">+ <%= icon %>+ <%= label %>+</a>