From b15aaafccdb392cd2ee9943f1ee2d46a06ade992 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sun, 26 Jun 2022 02:58:45 +0200 Subject: [PATCH] Move theme templates to new location --- app/views/settings/{_theme.haml => theme/edit.haml} | 5 ++++- app/views/user/edit_theme.haml | 3 +-- 2 files changed, 5 insertions(+), 3 deletions(-) rename app/views/settings/{_theme.haml => theme/edit.haml} (96%) diff --git a/app/views/settings/_theme.haml b/app/views/settings/theme/edit.haml similarity index 96% rename from app/views/settings/_theme.haml rename to app/views/settings/theme/edit.haml index c5cb27f6..7739f3ec 100644 --- a/app/views/settings/_theme.haml +++ b/app/views/settings/theme/edit.haml @@ -7,7 +7,7 @@ - if current_user.theme .pull-right = 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-body %h2= t(".general.heading") @@ -103,3 +103,6 @@ .card-body .pull-left = f.primary + +- provide(:title, generate_title(t(".title"))) +- parent_layout "user/settings" \ No newline at end of file diff --git a/app/views/user/edit_theme.haml b/app/views/user/edit_theme.haml index 6dd17ba8..35a146f4 100644 --- a/app/views/user/edit_theme.haml +++ b/app/views/user/edit_theme.haml @@ -1,4 +1,3 @@ = render "settings/theme" -- provide(:title, generate_title(t(".title"))) -- parent_layout "user/settings" +