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
create separate views for each tab
Behrokh Satarnejad570742043a8a
diff --git a/app/controllers/custom_styles_controller.rb b/app/controllers/custom_styles_controller.rbindex 6291dfa8b45..62ac5f211f5 100644--- a/app/controllers/custom_styles_controller.rb+++ b/app/controllers/custom_styles_controller.rb@@ -52,6 +52,18 @@ class CustomStylesController < ApplicationControllerdef upsale; end+ def branding+ @custom_style = CustomStyle.current || CustomStyle.new+ @current_theme = @custom_style.theme+ @theme_options = options_for_theme_select+ end++ def pdf_export_styles+ @custom_style = CustomStyle.current || CustomStyle.new+ @current_theme = @custom_style.theme+ @theme_options = options_for_theme_select+ end+def create@custom_style = CustomStyle.create(custom_style_params)if @custom_style.valid?@@ -105,6 +117,7 @@ class CustomStylesController < ApplicationControllerenddef logo_delete+ #brandingfile_delete(:remove_logo)end@@ -117,14 +130,17 @@ class CustomStylesController < ApplicationControllerenddef favicon_delete+ #brandingfile_delete(:remove_favicon)enddef touch_icon_delete+ #brandingfile_delete(:remove_touch_icon)enddef update_colors+ #interfacevariable_params = params[:design_colors].first::Design::UpdateDesignServicediff --git a/app/views/custom_styles/branding.html.erb b/app/views/custom_styles/branding.html.erbnew file mode 100644index 00000000000..f8e3c6e255e--- /dev/null+++ b/app/views/custom_styles/branding.html.erb@@ -0,0 +1,143 @@+<%#-- 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.++++#%>++<%=+ render(Admin::DesignHeaderComponent.new(+ title: t(:"admin.custom_styles.tab_branding"),+ selected: 2,+ ))+%>+<%= error_messages_for 'custom_style' %>+<%= form_tag update_design_themes_path, method: :post, class: "form" do %>+ <section class="form--section">+ <fieldset class="form--fieldset">+ <legend class="form--fieldset-legend"><%= I18n.t('admin.custom_styles.color_theme') %></legend>+ <div class="form--field">+ <div class="form--field-container">+ <%= styled_select_tag 'theme',+ options_for_select(@theme_options, @current_theme),+ container_class: '-slim' %>+ </div>+ </div>++ <%= styled_button_tag t(:button_save),+ data:({ confirm: t('admin.custom_styles.theme_warning') } unless @current_theme.present?) %>+ </fieldset>+ </section>+<% end %>+<%= form_for @custom_style, url: custom_style_path, html: { multipart: true, class: "form -vertical" } do |f| %>+ <section class="form--section">+ <fieldset class="form--fieldset">+ <legend class="form--fieldset-legend"><%= I18n.t(:label_custom_logo) %></legend>+ <% if @custom_style.id && @custom_style.logo.present? %>+ <div>+ <%# Don't use image_tag here due to asset host %>+ <%= tag('img', src: custom_style_logo_path(digest: @custom_style.digest, filename: @custom_style.logo_identifier), class: 'custom-logo-preview') %>+ <%= link_to t(:button_delete),+ custom_style_logo_delete_path,+ method: :delete,+ class: 'icon icon-delete confirm-form-submit' %>+ </div>+ <% end %>+ <div class="grid-block">+ <div class="form--field -required">+ <div class="attachment_field form--field-container -vertical -shrink">+ <div class="form--file-container">+ <%= f.file_field :logo, required: true, class: "attachment_choose_file", size: "15" %>+ </div>+ </div>+ <div class="form--field-instructions">+ <%= t('text_custom_logo_instructions') %>+ </div>+ </div>+ </div>+ <%= styled_button_tag I18n.t(@custom_style.logo.present? ? :button_replace : :button_upload),+ class: "button #{@custom_style.logo.blank? ? '-with-icon icon-add' : ''}" %>+ </fieldset>+ </section>+<% end %>+<%= form_for @custom_style, url: custom_style_path, html: { multipart: true, class: "form -vertical" } do |f| %>+ <section class="form--section">+ <fieldset class="form--fieldset">+ <legend class="form--fieldset-legend"><%= I18n.t(:label_custom_favicon) %></legend>++ <% if @custom_style.id && @custom_style.favicon.present? %>+ <div>+ <%= tag('img', src: custom_style_favicon_path(digest: @custom_style.digest, filename: @custom_style.favicon_identifier), class: 'custom-favicon-preview') %>+ <%= link_to t(:button_delete),+ custom_style_favicon_delete_path,+ method: :delete,+ class: 'icon icon-delete confirm-form-submit' %>+ </div>+ <% end %>+ <div class="grid-block">+ <div class="form--field -required">+ <div class="attachment_field form--field-container -vertical -shrink">+ <div class="form--file-container">+ <%= f.file_field :favicon, required: true, class: "attachment_choose_file", size: "15" %>+ </div>+ </div>+ <div class="form--field-instructions">+ <%= t('text_custom_favicon_instructions') %>+ </div>+ </div>+ </div>+ <%= styled_button_tag t(@custom_style.favicon.present? ? :button_replace : :button_upload), class: "button #{@custom_style.favicon.blank? ? '-with-icon icon-add' : ''}" %>+ </fieldset>+ </section>+<% end %>+<%= form_for @custom_style, url: custom_style_path, html: { multipart: true, class: "form -vertical" } do |f| %>+ <section class="form--section">+ <fieldset class="form--fieldset">+ <legend class="form--fieldset-legend"><%= I18n.t(:label_custom_touch_icon) %></legend>+ <% if @custom_style.id && @custom_style.touch_icon.present? %>+ <div>+ <%= tag('img', src: custom_style_touch_icon_path(digest: @custom_style.digest, filename: @custom_style.touch_icon_identifier), class: 'custom-touch-icon-preview') %>+ <%= link_to t(:button_delete),+ custom_style_touch_icon_delete_path,+ method: :delete,+ class: 'icon icon-delete confirm-form-submit' %>+ </div>+ <% end %>+ <div class="grid-block">+ <div class="form--field -required">+ <div class="attachment_field form--field-container -vertical -shrink">+ <div class="form--file-container">+ <%= f.file_field :touch_icon, required: true, class: "attachment_choose_file", size: "15" %>+ </div>+ </div>+ <div class="form--field-instructions">+ <%= t('text_custom_touch_icon_instructions') %>+ </div>+ </div>+ </div>+ <%= styled_button_tag t(@custom_style.touch_icon.present? ? :button_replace : :button_upload), class: "button #{@custom_style.touch_icon.blank? ? '-with-icon icon-add' : ''}" %>+ </fieldset>+ </section>+<% end %>diff --git a/app/views/custom_styles/pdf_export_styles.html.erb b/app/views/custom_styles/pdf_export_styles.html.erbnew file mode 100644index 00000000000..1b90afbea2d--- /dev/null+++ b/app/views/custom_styles/pdf_export_styles.html.erb@@ -0,0 +1,145 @@+<%#-- 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.++++#%>++<%=+ render(Admin::DesignHeaderComponent.new(+ title: t(:"admin.custom_styles.tab_pdf_export_styles"),+ selected: 3,+ ))+%>+<%= error_messages_for 'custom_style' %>+<%= form_tag update_design_themes_path, method: :post, class: "form" do %>+ <section class="form--section">+ <fieldset class="form--fieldset">+ <legend class="form--fieldset-legend"><%= I18n.t('admin.custom_styles.color_theme') %></legend>+ <div class="form--field">+ <div class="form--field-container">+ <%= styled_select_tag 'theme',+ options_for_select(@theme_options, @current_theme),+ container_class: '-slim' %>+ </div>+ </div>+ <%= styled_button_tag t(:button_save),+ data:({ confirm: t('admin.custom_styles.theme_warning') } unless @current_theme.present?) %>+ </fieldset>+ </section>+<% end %>+<%= form_for @custom_style, url: custom_style_path, html: { multipart: true, class: "form -vertical" } do |f| %>+ <section class="form--section">+ <fieldset class="form--fieldset">+ <legend class="form--fieldset-legend"><%= I18n.t(:label_custom_export_logo) %></legend>+ <% if @custom_style.id && @custom_style.export_logo.present? %>+ <div>+ <%= tag('img', src: custom_style_export_logo_path(digest: @custom_style.digest, filename: @custom_style.export_logo_identifier), class: 'custom-export-logo-preview') %>+ <%= link_to t(:button_delete),+ custom_style_export_logo_delete_path,+ method: :delete,+ class: 'icon icon-delete confirm-form-submit' %>+ </div>+ <% end %>+ <div class="grid-block">+ <div class="form--field -required">+ <div class="attachment_field form--field-container -vertical -shrink">+ <div class="form--file-container">+ <%= f.file_field :export_logo, required: true, class: "attachment_choose_file", size: "15" %>+ </div>+ </div>+ <div class="form--field-instructions">+ <%= t('text_custom_export_logo_instructions') %>+ </div>+ </div>+ </div>++ <%= styled_button_tag t(@custom_style.export_logo.present? ? :button_replace : :button_upload), class: "button #{@custom_style.export_logo.blank? ? '-with-icon icon-add' : ''}" %>++ </fieldset>+ </section>+<% end %>+<%= form_for @custom_style, url: custom_style_path, html: { multipart: true, class: "form -vertical" } do |f| %>+ <section class="form--section">+ <fieldset class="form--fieldset">+ <legend class="form--fieldset-legend"><%= I18n.t(:label_custom_export_cover) %></legend>++ <% if @custom_style.id && @custom_style.export_cover.present? %>+ <div>+ <%= tag('img', src: custom_style_export_cover_path(digest: @custom_style.digest, filename: @custom_style.export_cover_identifier), class: 'custom-export-cover-preview') %>+ <%= link_to t(:button_delete),+ custom_style_export_cover_delete_path,+ method: :delete,+ class: 'icon icon-delete confirm-form-submit' %>+ </div>+ <% end %>+ <div class="grid-block">+ <div class="form--field -required">+ <div class="attachment_field form--field-container -vertical -shrink">+ <div class="form--file-container">+ <%= f.file_field :export_cover, required: true, class: "attachment_choose_file", size: "15" %>+ </div>+ </div>+ <div class="form--field-instructions">+ <%= t('text_custom_export_cover_instructions') %>+ </div>+ </div>+ </div>+ <%= styled_button_tag t(@custom_style.export_cover.present? ? :button_replace : :button_upload), class: "button #{@custom_style.export_cover.blank? ? '-with-icon icon-add' : ''}" %>+ </fieldset>+ </section>+<% end %>+<%= form_tag update_custom_style_export_cover_text_color_path, html: { multipart: true, class: "form -vertical" } do |f| %>+ <section class="form--section">+ <fieldset class="form--fieldset">+ <legend class="form--fieldset-legend"><%= I18n.t(:label_custom_export_cover_overlay) %></legend>+ <div class="form--field">+ <label class="form--label"><%= I18n.t(:label_custom_export_cover_text_color) %>:</label>+ <span class="form--field-container">+ <div class="form--field-affix">+ <% design_color_name = 'export_cover_text_color' %>+ <% design_color_hex = @custom_style.export_cover_text_color.present? ? @custom_style.export_cover_text_color : '' %>+ <%= icon_for_color(OpenStruct.new(variable: design_color_name,+ hexcode: design_color_hex),+ data: { target: "#" + design_color_name }) %>+ </div>+ <span class="form--text-field-container">+ <%= styled_text_field_tag design_color_name,+ design_color_hex,+ placeholder: '#000'+ %>+ </span>+ </span>+ <div class="form--field-instructions">+ <% instruction_key = "admin.custom_styles.instructions.#{design_color_name}" %>+ <% if I18n.exists?(instruction_key, :en) %>+ <%= I18n.t(instruction_key) %>+ <% end %>+ </div>+ </div>+ <button type="submit" class="button -hide-when-collapsed"><%= I18n.t(:button_save) %></button>+ </fieldset>+ </section>+<% end %>diff --git a/app/views/custom_styles/show.html.erb b/app/views/custom_styles/show.html.erbindex 81260a0ad6a..ce9096a678d 100644--- a/app/views/custom_styles/show.html.erb+++ b/app/views/custom_styles/show.html.erb@@ -27,19 +27,13 @@ See COPYRIGHT and LICENSE files for more details.++#%>-<% html_title t(:label_administration), t(:label_custom_style) %>-<%=- render(Primer::OpenProject::PageHeader.new) do |header|- header.with_title { t(:label_custom_style) }- header.with_breadcrumbs([{ href: admin_index_path, text: t(:label_administration) },- t(:label_custom_style)])- header.with_description { t(:label_custom_style_description) }- end+ render(Admin::DesignHeaderComponent.new(+ title: t(:"admin.custom_styles.tab_interface"),+ selected: 1,+ ))%>-<%= error_messages_for 'custom_style' %>-<%= form_tag update_design_themes_path, method: :post, class: "form" do %><section class="form--section"><fieldset class="form--fieldset">@@ -57,226 +51,10 @@ See COPYRIGHT and LICENSE files for more details.</fieldset></section><% end %>--<%= form_for @custom_style, url: custom_style_path, html: { multipart: true, class: "form -vertical" } do |f| %>- <section class="form--section">- <fieldset class="form--fieldset">- <legend class="form--fieldset-legend"><%= I18n.t(:label_custom_logo) %></legend>-- <% if @custom_style.id && @custom_style.logo.present? %>- <div>- <%# Don't use image_tag here due to asset host %>- <%= tag('img', src: custom_style_logo_path(digest: @custom_style.digest, filename: @custom_style.logo_identifier), class: 'custom-logo-preview') %>- <%= link_to t(:button_delete),- custom_style_logo_delete_path,- method: :delete,- class: 'icon icon-delete confirm-form-submit' %>- </div>- <% end %>-- <div class="grid-block">- <div class="form--field -required">- <div class="attachment_field form--field-container -vertical -shrink">- <div class="form--file-container">- <%= f.file_field :logo, required: true, class: "attachment_choose_file", size: "15" %>- </div>- </div>- <div class="form--field-instructions">- <%= t('text_custom_logo_instructions') %>- </div>- </div>- </div>-- <%= styled_button_tag I18n.t(@custom_style.logo.present? ? :button_replace : :button_upload),- class: "button #{@custom_style.logo.blank? ? '-with-icon icon-add' : ''}" %>-- </fieldset>- </section>-<% end %>--<%= form_for @custom_style, url: custom_style_path, html: { multipart: true, class: "form -vertical" } do |f| %>- <section class="form--section">- <fieldset class="form--fieldset">- <legend class="form--fieldset-legend"><%= I18n.t(:label_custom_favicon) %></legend>-- <% if @custom_style.id && @custom_style.favicon.present? %>- <div>- <%= tag('img', src: custom_style_favicon_path(digest: @custom_style.digest, filename: @custom_style.favicon_identifier), class: 'custom-favicon-preview') %>- <%= link_to t(:button_delete),- custom_style_favicon_delete_path,- method: :delete,- class: 'icon icon-delete confirm-form-submit' %>- </div>- <% end %>-- <div class="grid-block">- <div class="form--field -required">- <div class="attachment_field form--field-container -vertical -shrink">- <div class="form--file-container">- <%= f.file_field :favicon, required: true, class: "attachment_choose_file", size: "15" %>- </div>- </div>- <div class="form--field-instructions">- <%= t('text_custom_favicon_instructions') %>- </div>- </div>- </div>-- <%= styled_button_tag t(@custom_style.favicon.present? ? :button_replace : :button_upload), class: "button #{@custom_style.favicon.blank? ? '-with-icon icon-add' : ''}" %>-- </fieldset>- </section>-<% end %>--<%= form_for @custom_style, url: custom_style_path, html: { multipart: true, class: "form -vertical" } do |f| %>- <section class="form--section">- <fieldset class="form--fieldset">- <legend class="form--fieldset-legend"><%= I18n.t(:label_custom_touch_icon) %></legend>-- <% if @custom_style.id && @custom_style.touch_icon.present? %>- <div>- <%= tag('img', src: custom_style_touch_icon_path(digest: @custom_style.digest, filename: @custom_style.touch_icon_identifier), class: 'custom-touch-icon-preview') %>- <%= link_to t(:button_delete),- custom_style_touch_icon_delete_path,- method: :delete,- class: 'icon icon-delete confirm-form-submit' %>- </div>- <% end %>-- <div class="grid-block">- <div class="form--field -required">- <div class="attachment_field form--field-container -vertical -shrink">- <div class="form--file-container">- <%= f.file_field :touch_icon, required: true, class: "attachment_choose_file", size: "15" %>- </div>- </div>- <div class="form--field-instructions">- <%= t('text_custom_touch_icon_instructions') %>- </div>- </div>- </div>-- <%= styled_button_tag t(@custom_style.touch_icon.present? ? :button_replace : :button_upload), class: "button #{@custom_style.touch_icon.blank? ? '-with-icon icon-add' : ''}" %>-- </fieldset>- </section>-<% end %>--<% custom_export_expanded = @custom_style.id && (@custom_style.export_logo.present? || @custom_style.export_cover.present? || @custom_style.export_cover_text_color.present?) %>-<opce-collapsible-section-augment initially-expanded="<%= custom_export_expanded %>"- section-title="<%= I18n.t(:label_custom_pdf_export_settings) %>">-</opce-collapsible-section-augment>-<div class="opce-collapsible-section-augment--body" hidden>-- <%= form_for @custom_style, url: custom_style_path, html: { multipart: true, class: "form -vertical" } do |f| %>- <section class="form--section">- <fieldset class="form--fieldset">- <legend class="form--fieldset-legend"><%= I18n.t(:label_custom_export_logo) %></legend>-- <% if @custom_style.id && @custom_style.export_logo.present? %>- <div>- <%= tag('img', src: custom_style_export_logo_path(digest: @custom_style.digest, filename: @custom_style.export_logo_identifier), class: 'custom-export-logo-preview') %>- <%= link_to t(:button_delete),- custom_style_export_logo_delete_path,- method: :delete,- class: 'icon icon-delete confirm-form-submit' %>- </div>- <% end %>-- <div class="grid-block">- <div class="form--field -required">- <div class="attachment_field form--field-container -vertical -shrink">- <div class="form--file-container">- <%= f.file_field :export_logo, required: true, class: "attachment_choose_file", size: "15" %>- </div>- </div>- <div class="form--field-instructions">- <%= t('text_custom_export_logo_instructions') %>- </div>- </div>- </div>-- <%= styled_button_tag t(@custom_style.export_logo.present? ? :button_replace : :button_upload), class: "button #{@custom_style.export_logo.blank? ? '-with-icon icon-add' : ''}" %>-- </fieldset>- </section>- <% end %>-- <%= form_for @custom_style, url: custom_style_path, html: { multipart: true, class: "form -vertical" } do |f| %>- <section class="form--section">- <fieldset class="form--fieldset">- <legend class="form--fieldset-legend"><%= I18n.t(:label_custom_export_cover) %></legend>-- <% if @custom_style.id && @custom_style.export_cover.present? %>- <div>- <%= tag('img', src: custom_style_export_cover_path(digest: @custom_style.digest, filename: @custom_style.export_cover_identifier), class: 'custom-export-cover-preview') %>- <%= link_to t(:button_delete),- custom_style_export_cover_delete_path,- method: :delete,- class: 'icon icon-delete confirm-form-submit' %>- </div>- <% end %>-- <div class="grid-block">- <div class="form--field -required">- <div class="attachment_field form--field-container -vertical -shrink">- <div class="form--file-container">- <%= f.file_field :export_cover, required: true, class: "attachment_choose_file", size: "15" %>- </div>- </div>- <div class="form--field-instructions">- <%= t('text_custom_export_cover_instructions') %>- </div>- </div>- </div>-- <%= styled_button_tag t(@custom_style.export_cover.present? ? :button_replace : :button_upload), class: "button #{@custom_style.export_cover.blank? ? '-with-icon icon-add' : ''}" %>-- </fieldset>- </section>- <% end %>-- <%= form_tag update_custom_style_export_cover_text_color_path, html: { multipart: true, class: "form -vertical" } do |f| %>- <section class="form--section">- <fieldset class="form--fieldset">- <legend class="form--fieldset-legend"><%= I18n.t(:label_custom_export_cover_overlay) %></legend>- <div class="form--field">- <label class="form--label"><%= I18n.t(:label_custom_export_cover_text_color) %>:</label>- <span class="form--field-container">- <div class="form--field-affix">- <% design_color_name = 'export_cover_text_color' %>- <% design_color_hex = @custom_style.export_cover_text_color.present? ? @custom_style.export_cover_text_color : '' %>- <%= icon_for_color(OpenStruct.new(variable: design_color_name,- hexcode: design_color_hex),- data: { target: "#" + design_color_name }) %>- </div>- <span class="form--text-field-container">- <%= styled_text_field_tag design_color_name,- design_color_hex,- placeholder: '#000'- %>- </span>- </span>- <div class="form--field-instructions">- <% instruction_key = "admin.custom_styles.instructions.#{design_color_name}" %>- <% if I18n.exists?(instruction_key, :en) %>- <%= I18n.t(instruction_key) %>- <% end %>- </div>- </div>-- <button type="submit" class="button -hide-when-collapsed"><%= I18n.t(:button_save) %></button>-- </fieldset>- </section>- <% end %>-</div>-<%= form_tag update_design_colors_path, method: :post, class: "form" do %><section class="form--section">- <fieldset class="form--fieldset -collapsible <%= 'collapsed' if @current_theme.present? %> ">+ <fieldset class="form--fieldset"><legend class="form--fieldset-legend"><%= I18n.t(:label_advanced_settings) %></legend>-<% DesignColor.setables.each do |design_color| %><div class="form--field -required"><label class="form--label"><%= I18n.t("admin.custom_styles.colors.#{design_color.variable}") %>:</label>@@ -302,16 +80,12 @@ See COPYRIGHT and LICENSE files for more details.</div></div><% end %>-<button type="submit" class="button -hide-when-collapsed"><%= I18n.t(:button_save) %></button>-</fieldset></section>-<%# Fill in the computed css variables in the inputs as their defaults %><%= nonced_javascript_tag do %>var computedStyle = getComputedStyle(document.documentElement);-document.querySelectorAll('.design-color--variable-input').forEach(function(el) {diff --git a/config/routes.rb b/config/routes.rbindex 599deee6f16..5b7b8c0bec0 100644--- a/config/routes.rb+++ b/config/routes.rb@@ -427,6 +427,8 @@ Rails.application.routes.draw dodelete "design/favicon" => "custom_styles#favicon_delete", as: "custom_style_favicon_delete"delete "design/touch_icon" => "custom_styles#touch_icon_delete", as: "custom_style_touch_icon_delete"get "design/upsale" => "custom_styles#upsale", as: "custom_style_upsale"+ get "design/branding" => "custom_styles#branding", as: "custom_style_branding"+ get "design/pdf_export_styles" => "custom_styles#pdf_export_styles", as: "custom_style_pdf_export_styles"post "design/colors" => "custom_styles#update_colors", as: "update_design_colors"post "design/themes" => "custom_styles#update_themes", as: "update_design_themes"post "design/export_cover_text_color" => "custom_styles#update_export_cover_text_color",