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
Show warning when overwriting custom theme
Henriette Dinger401316a37122
diff --git a/app/views/custom_styles/show.html.erb b/app/views/custom_styles/show.html.erbindex 797ac2444de..af34eacf26f 100644--- a/app/views/custom_styles/show.html.erb+++ b/app/views/custom_styles/show.html.erb@@ -45,7 +45,8 @@ See docs/COPYRIGHT.rdoc for more details.</div></div>- <button type="submit" class="button"><%= I18n.t(:button_save) %></button>+ <%= styled_button_tag t(:button_save),+ data:({ confirm: t('admin.custom_styles.theme_warning') } if @current_theme.empty?) %></fieldset></section><% end %>diff --git a/config/locales/en.yml b/config/locales/en.ymlindex 6222f88c531..160b0dae117 100644--- a/config/locales/en.yml+++ b/config/locales/en.yml@@ -70,6 +70,7 @@ en: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."+ theme_warning: Changing the theme will overwrite you custom style. The design will then be lost. Are you sure you want to continue?enterprise:upgrade_to_ee: "Upgrade to Enterprise Edition"add_token: "Upload an Enterprise Edition support token"