]> cat aescling's git repositories - mastodon.git/commitdiff
current_theme -> current_flavour (#229)
authorDavid Yip <yipdw@member.fsf.org>
Mon, 4 Dec 2017 17:35:35 +0000 (11:35 -0600)
committerDavid Yip <yipdw@member.fsf.org>
Mon, 4 Dec 2017 17:35:35 +0000 (11:35 -0600)
app/views/settings/preferences/show.html.haml

index 40589fbec5eb7e36fbec1767349ec357c6b217f1..9564c039919d13772b2bd5f46a66f83cded8c733 100644 (file)
@@ -28,7 +28,7 @@
   .fields-group
     - if Themes.instance.flavours.size > 1
       = f.input :setting_flavour, collection: Themes.instance.flavours, label_method: lambda { |flavour| I18n.t("themes.#{flavour}", default: flavour) }, wrapper: :with_label, include_blank: false
-      = f.input :setting_skin, collection: Themes.instance.skins_for(current_theme), label_method: lambda { |skin| I18n.t("themes.#{current_theme}.skins.#{skin}", default: skin) }, wrapper: :with_label, include_blank: false
+      = f.input :setting_skin, collection: Themes.instance.skins_for(current_flavour), label_method: lambda { |skin| I18n.t("themes.#{current_flavour}.skins.#{skin}", default: skin) }, wrapper: :with_label, include_blank: false
 
     = f.input :setting_unfollow_modal, as: :boolean, wrapper: :with_label
     = f.input :setting_boost_modal, as: :boolean, wrapper: :with_label