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
1. Change order of changeable design variables 2. Provide a natural language name for each variable 3. Use all already available help texts for design variables
Henriette Dinger77606dbb8c24
diff --git a/app/views/custom_styles/show.html.erb b/app/views/custom_styles/show.html.erbindex 464a4da0dfe..422b66ed29a 100644--- a/app/views/custom_styles/show.html.erb+++ b/app/views/custom_styles/show.html.erb@@ -144,7 +144,7 @@ See docs/COPYRIGHT.rdoc for more details.<% DesignColor.setables.each do |design_color| %><div class="form--field -required">- <label class="form--label"><%= design_color.variable %>:</label>+ <label class="form--label"><%= I18n.t("admin.custom_styles.colors.#{design_color.variable}") %>:</label><span class="form--field-container"><span class="form--text-field-container"><%= styled_text_field_tag "design_colors[]" + design_color.variable,@@ -156,18 +156,15 @@ See docs/COPYRIGHT.rdoc for more details.hexcode: design_color.get_hexcode),data: { target: "#design_colors_" + design_color.variable }) %><div class="form--field-instructions">- <% if design_color.variable == "primary-color" %>- <%= t("admin.custom_styles.instructions.primary_color") %>- <% elsif design_color.variable == "primary-color-dark" %>- <%= t("admin.custom_styles.instructions.primary_color_dark") %>- <% elsif design_color.variable == "alternative-color" %>- <%= t("admin.custom_styles.instructions.alternative_color") %>+ <% instruction_key = "admin.custom_styles.instructions.#{design_color.variable}" %>+ <% if I18n.exists?(instruction_key, :en) %>+ <%= I18n.t(instruction_key) %><% end %></div></div><% end %>- <button type="submit" class="button">Save</button>+ <button type="submit" class="button"><%= I18n.t(:button_save) %></button></fieldset></section>diff --git a/config/locales/en.yml b/config/locales/en.ymlindex 6b9f3270ed0..5b5ab8dcd42 100644--- a/config/locales/en.yml+++ b/config/locales/en.yml@@ -37,21 +37,38 @@ en:plugins:no_results_title_text: There are currently no plugins available.custom_styles:+ color_themes: "Color themes"+ colors:+ alternative-color: "Alternative"+ content-link-color: "Link font"+ primary-color: "Primary"+ primary-color-dark: "Primary (dark)"+ header-bg-color: "Header background"+ header-item-bg-hover-color: "Header background on hover"+ header-item-font-color: "Header font"+ header-item-font-hover-color: "Header font on hover"+ header-border-bottom-color: "Header border"+ main-menu-bg-color: "Main menu background"+ main-menu-bg-selected-background: "Main menu when selected"+ main-menu-bg-hover-background: "Main menu on hover"+ main-menu-font-color: "Main menu font"+ main-menu-selected-font-color: "Main menu font when selected"+ main-menu-hover-font-color: "Main menu font on hover"+ main-menu-border-color: "Main menu border"custom_colors: "Custom colors"customize: "Customize your OpenProject installation with your own logo. Note: This logo will be publicly accessible."enterprise_notice: "As a special 'Thank you!' for their financial contribution to develop OpenProject, this tiny feature is only available for Enterprise Edition support subscribers."manage_colors: "Edit color select options"instructions:- alternative_color: "Strong accent color, typically used for most the important button on a screen."- content_link_color: "Font color of most of the links."- primary_color: "Main color."- primary_color_dark: "Typically a darker version of the main color used for hover effects."- header_bg_color: "Background color of the header."- header_item_bg_hover_color: "Background color of clickable header items when hovered with the mouse."- header_item_font_color: "Font color of clickable header items."- header_item_font_hover_color: "Font color of clickable header items when hovered with the mouse."- header_border_bottom_color: "Thin line under the header. Leave this field empty if you don't want any line."- main_menu_bg_color: "Left side menu's background color."+ alternative-color: "Strong accent color, typically used for most the important button on a screen."+ content-link-color: "Font color of most of the links."+ primary-color: "Main color."+ primary-color-dark: "Typically a darker version of the main color used for hover effects."+ header-item-bg-hover-color: "Background color of clickable header items when hovered with the mouse."+ header-item-font-color: "Font color of clickable header items."+ header-item-font-hover-color: "Font color of clickable header items when hovered with the mouse."+ header-border-bottom-color: "Thin line under the header. Leave this field empty if you don't want any line."+ main-menu-bg-color: "Left side menu's background color."enterprise:upgrade_to_ee: "Upgrade to Enterprise Edition"add_token: "Upload an Enterprise Edition support token"diff --git a/lib/open_project/design.rb b/lib/open_project/design.rbindex 9d140e133cc..222035001a0 100644--- a/lib/open_project/design.rb+++ b/lib/open_project/design.rb@@ -263,17 +263,17 @@ module OpenProject%w( primary-colorprimary-color-darkalternative-color+ content-link-colorheader-bg-color+ header-item-bg-hover-colorheader-item-font-colorheader-item-font-hover-color- header-item-bg-hover-colorheader-border-bottom-color- content-link-colormain-menu-bg-color- main-menu-font-colormain-menu-bg-selected-background- main-menu-selected-font-colormain-menu-bg-hover-background+ main-menu-font-color+ main-menu-selected-font-colormain-menu-hover-font-colormain-menu-border-color )end