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

Allow bright colours for WP types again and shorten the info text

Henriette Darge663c4e93a863
diff --git a/app/controllers/colors_controller.rb b/app/controllers/colors_controller.rb
index 1456052895a..03f35f16f70 100644
--- a/app/controllers/colors_controller.rb
+++ b/app/controllers/colors_controller.rb
@@ -36,7 +36,7 @@ class ColorsController < ApplicationController
menu_item :colors
def index
- @colors = Color.all
+ @colors = Color.all.sort_by(&:name)
respond_to do |format|
format.html
end
diff --git a/app/views/types/form/_settings.html.erb b/app/views/types/form/_settings.html.erb
index e74e9b8a0bd..6ec0e80dc90 100644
--- a/app/views/types/form/_settings.html.erb
+++ b/app/views/types/form/_settings.html.erb
@@ -37,7 +37,7 @@ See COPYRIGHT and LICENSE files for more details.
form: f,
object: @type,
type: 'type',
- allow_bright_colors: false,
+ allow_bright_colors: true,
highlight_text_inline: true,
label: t('types.edit.type_color_text'),
form_field_class: '-wide-label',
diff --git a/config/locales/en.yml b/config/locales/en.yml
index f4843f2a142..31036626fbe 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -341,8 +341,8 @@ en:
query_group_placeholder: "Give the table a name"
reset: "Reset to defaults"
type_color_text: |
- Click to assign or change the color of this type. The selected color distinguishes work packages
- in Gantt charts. It is therefore recommended to use a strong color.
+ The selected color distinguishes different types
+ in Gantt charts or work packages tables. It is therefore recommended to use a strong color.
versions:
overview:
@@ -934,7 +934,7 @@ en:
user: "User"
version: "Version"
work_package: "Work package"
-
+
backup:
label_backup_token: "Backup token"
label_create_token: "Create backup token"
@@ -3125,5 +3125,5 @@ en:
authorization_error: "An authorization error has occurred."
revoke_my_application_confirmation: "Do you really want to remove this application? This will revoke %{token_count} active for it."
my_registered_applications: "Registered OAuth applications"
-
+
you: you