diff --git a/app/views/settings/_theme.haml b/app/views/settings/_theme.haml index 50ea4918..4f81e1dc 100644 --- a/app/views/settings/_theme.haml +++ b/app/views/settings/_theme.haml @@ -1,20 +1,13 @@ .card .card-body - %h1 Theming - %p.lead Welcome to the Theme Editor! - %p - Here you'll be able to modify your Retrospring experience by adjusting all available colors. - To further help you with adjusting needs, there are a few example elements using the specified colors, and sections will include - descriptions on their general use on the site! - - %p - And with that: - %b Happy Theming! + %h1= t(".heading") + %p.lead= t(".lead") + = t(".body_html") - if current_user.theme .pull-right - = button_to 'Delete Theme', delete_user_theme_path, data: { confirm: 'Are you sure?' }, 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| + = 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| .card .card-body %h2 General diff --git a/config/locales/views.en.yml b/config/locales/views.en.yml index c6aeb524..d54c499b 100644 --- a/config/locales/views.en.yml +++ b/config/locales/views.en.yml @@ -38,7 +38,6 @@ en: password: "Leave this blank if you don't want to change it" delete: action: "Delete my account" - confirm: "Are you sure?" heading: "Unsatisfied?" profile: adjust: @@ -52,6 +51,15 @@ en: connect: "Connect to %{service}" disconnect: "Disconnect" confirm: "Really disconnect service %{service}?" + theme: + heading: "Theming" + lead: "Welcome to the Theme Editor!" + body_html: | +
Here you'll be able to modify your Retrospring experience by adjusting all available colors. + To further help you with adjusting needs, there are a few example elements using the specified colors, and sections will include + descriptions on their general use on the site!
+And with that: Happy Theming! + delete: "Delete Theme" user: edit: title: "Profile Settings" diff --git a/config/locales/voc.en.yml b/config/locales/voc.en.yml index f7e7fd0a..3c50ff5a 100644 --- a/config/locales/voc.en.yml +++ b/config/locales/voc.en.yml @@ -2,10 +2,11 @@ en: voc: cancel: "Cancel" close: "Close" + confirm: "Are you sure?" delete: "Delete" edit: "Edit" login: "Sign in" save: "Save changes" register: "Sign up" terms: "Terms of Service" - update: "Update" + update: "Update" \ No newline at end of file