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
use page header component in time and costs
Behrokh Satarnejadc13f6bb39ef9
diff --git a/modules/reporting/app/views/cost_reports/index.html.erb b/modules/reporting/app/views/cost_reports/index.html.erbindex 050ce901c52..bfef6d0b984 100644--- a/modules/reporting/app/views/cost_reports/index.html.erb+++ b/modules/reporting/app/views/cost_reports/index.html.erb@@ -35,28 +35,30 @@ See COPYRIGHT and LICENSE files for more details.<% html_title (@query.persisted? ? "#{t(:label_cost_report)}: #{@query.name}" : t(:label_new_report)) %>-<div class="toolbar-container">- <div class="toolbar">- <div class="title-container">- <h2 id="ur_caption">- <%= render_widget Widget::Controls::QueryName, @query, :can_rename => allowed_in_report?(:rename, @query, current_user) %>- </h2>- </div>- <ul class="toolbar-items">- <% if User.current.allowed_in_any_work_package?(:export_work_packages, in_project: @project) %>- <li class="toolbar-item">- <%= link_to(t(:export_to_excel),- { controller: "cost_reports" ,- action: :index,- format: 'xls',- project_id: @project },- class: "button icon-export-xls-descr") %>- </li>- <% end %>- <%= call_hook(:view_cost_report_toolbar) %>- </ul>- </div>-</div>+<%=+ 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),+ t(:label_news_plural)])+ end+%>+<% if User.current.allowed_in_any_work_package?(:export_work_packages, in_project: @project) %>+ <%=+ render(Primer::OpenProject::SubHeader.new) do |subheader|+ subheader.with_action_button(scheme: :default,+ aria: { label: t(:export_to_excel)},+ title: t(:export_to_excel),+ tag: :a,+ href: url_for({ controller: "cost_reports" , action: :index, format: 'xls', project_id: @project })+ ) do |button|+ button.with_leading_visual_icon(icon: "op-file-xls-descriptions")+ t(:export_to_excel)+ end+ end+ %>+ <%= call_hook(:view_cost_report_toolbar) %>+<% end %><%= render_widget Widget::Settings, @query, :cost_types => @cost_types, :selected_type_id => @unit_id %>