about summary refs log tree commit diff
path: root/app/views
diff options
context:
space:
mode:
authorOndřej Hruška <ondra@ondrovo.com>2017-09-28 09:20:59 +0200
committerOndřej Hruška <ondra@ondrovo.com>2017-09-28 09:20:59 +0200
commitdaad07b1d552d5af06b4d8443afdbe1350785a14 (patch)
tree4062f211cd6e307a5bbb7c338263f366a9fafade /app/views
parent83bda6c1a813c5aeb131b18a0500fed0c07fa9c2 (diff)
parentf7ca205f382a9d528bf37e3ec38ee8bf77dccccf (diff)
Merge remote-tracking branch 'origin/better-themeing' into merging-upstream
Diffstat (limited to 'app/views')
-rw-r--r--app/views/home/index.html.haml4
-rw-r--r--app/views/settings/preferences/show.html.haml2
2 files changed, 4 insertions, 2 deletions
diff --git a/app/views/home/index.html.haml b/app/views/home/index.html.haml
index a13d0702b..3b4219c56 100644
--- a/app/views/home/index.html.haml
+++ b/app/views/home/index.html.haml
@@ -2,8 +2,8 @@
   %meta{name: 'applicationServerKey', content: Rails.configuration.x.vapid_public_key}
   %script#initial-state{ type: 'application/json' }!= json_escape(@initial_state_json)
 
-  = javascript_pack_tag "frontends/#{@frontend}", integrity: true, crossorigin: 'anonymous'
-  = stylesheet_pack_tag "frontends/#{@frontend}", integrity: true, media: 'all'
+  = javascript_pack_tag "themes/#{current_theme}", integrity: true, crossorigin: 'anonymous'
+  = stylesheet_pack_tag "themes/#{current_theme}", integrity: true, media: 'all'
 
 .app-holder#mastodon{ data: { props: Oj.dump(default_props) } }
   %noscript
diff --git a/app/views/settings/preferences/show.html.haml b/app/views/settings/preferences/show.html.haml
index f42f92508..5efd538e4 100644
--- a/app/views/settings/preferences/show.html.haml
+++ b/app/views/settings/preferences/show.html.haml
@@ -5,6 +5,8 @@
   = render 'shared/error_messages', object: current_user
 
   .fields-group
+    = f.input :setting_theme, collection: Themes.instance.names, label_method: lambda { |theme| safe_join([I18n.t("themes.#{theme}", default: theme)])}, wrapper: :with_label, include_blank: false
+
     = f.input :locale,
       collection: I18n.available_locales,
       wrapper: :with_label,