Move theme templates to new location

This commit is contained in:
Andreas Nedbal 2022-06-26 02:58:45 +02:00 committed by Karina Kwiatek
parent 298c7d625e
commit b15aaafccd
2 changed files with 5 additions and 3 deletions

View File

@ -7,7 +7,7 @@
- if current_user.theme - if current_user.theme
.pull-right .pull-right
= button_to t(".delete"), delete_user_theme_path, data: { confirm: t("voc.confirm") }, tabindex: -1, method: :delete, class: "btn btn-danger" = button_to t(".delete"), delete_user_theme_path, data: { confirm: t("voc.confirm") }, tabindex: -1, method: :delete, class: "btn btn-danger"
= bootstrap_form_for(current_user.theme || Theme.new, url: { action: "update_theme" }, html: { id: "update_theme" }, method: :patch) do |f| = bootstrap_form_for(current_user.theme || Theme.new, url: { action: "update" }, html: { id: "update" }, method: :patch) do |f|
.card .card
.card-body .card-body
%h2= t(".general.heading") %h2= t(".general.heading")
@ -103,3 +103,6 @@
.card-body .card-body
.pull-left .pull-left
= f.primary = f.primary
- provide(:title, generate_title(t(".title")))
- parent_layout "user/settings"

View File

@ -1,4 +1,3 @@
= render "settings/theme" = render "settings/theme"
- provide(:title, generate_title(t(".title")))
- parent_layout "user/settings"