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
Merge branch 'dev' into implementation/66904-split-up-overview-and-dashboard
Alexander Brandon Coles9d0e995cf313
diff --cc app/views/homescreen/blocks/_projects.html.erbindex 708ac1f84da,580e817021d..86733893c26--- a/app/views/homescreen/blocks/_projects.html.erb+++ b/app/views/homescreen/blocks/_projects.html.erb@@@ -1,6 -1,8 +1,6 @@@-<%= render "homescreen/blocks/header", title: t(:label_project_plural) %>--<div class="op-widget-box--body">+<%= render Grids::WidgetBoxComponent.new(title: t(:label_project_plural), classes: "projects") do %><% if @favorite_projects.any? %>- <p class="widget-box--additional-info"><%= t("projects.lists.favored") %></p>+ <p class="widget-box--additional-info"><%= t("projects.lists.favorited") %></p><ul class="widget-box--arrow-links"><% @favorite_projects.each do |project| %><li>diff --cc modules/overviews/app/components/overviews/page_header_component.rbindex b2aac2d2a62,00000000000..671051337a8mode 100644,000000..100644--- a/modules/overviews/app/components/overviews/page_header_component.rb+++ b/modules/overviews/app/components/overviews/page_header_component.rb@@@ -1,66 -1,0 +1,66 @@@+# frozen_string_literal: true++#-- copyright+# OpenProject is an open source project management software.+# Copyright (C) the OpenProject GmbH+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License version 3.+#+# OpenProject is a fork of ChiliProject, which is a fork of Redmine. The copyright follows:+# Copyright (C) 2006-2013 Jean-Philippe Lang+# Copyright (C) 2010-2013 the ChiliProject Team+#+# This program is free software; you can redistribute it and/or+# modify it under the terms of the GNU General Public License+# as published by the Free Software Foundation; either version 2+# of the License, or (at your option) any later version.+#+# This program is distributed in the hope that it will be useful,+# but WITHOUT ANY WARRANTY; without even the implied warranty of+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+# GNU General Public License for more details.+#+# You should have received a copy of the GNU General Public License+# along with this program; if not, write to the Free Software+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.+#+# See COPYRIGHT and LICENSE files for more details.+#++++module Overviews+ class PageHeaderComponent < ApplicationComponent+ extend Dry::Initializer++ include ApplicationHelper+ include Redmine::I18n++ option :project+ option :current_user, default: -> { User.current }++ private++ def breadcrumb_items+ [+ { href: project_path(project), text: project.name, skip_for_mobile: true },+ page_title+ ]+ end++ def page_title+ I18n.t("overviews.label_home", workspace_type: project.workspace_label)+ end++ def favorited?- project.favored_by?(current_user)++ project.favorited_by?(current_user)+ end++ def allowed_to_select_project_custom_fields?+ current_user.allowed_in_project?(:select_project_custom_fields, project)+ end++ def allowed_to_archive?+ current_user.allowed_in_project?(:archive_project, project)+ end+ end+end