From 134e6590c65cf83b54376c5a27f4302ed0951973 Mon Sep 17 00:00:00 2001 From: kibigo! Date: Mon, 8 Jan 2018 16:45:32 -0800 Subject: [PATCH] Don't show skins selector when there's only one (#256) --- app/views/settings/flavours/show.html.haml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/settings/flavours/show.html.haml b/app/views/settings/flavours/show.html.haml index 43c0377370..a5126d9c52 100644 --- a/app/views/settings/flavours/show.html.haml +++ b/app/views/settings/flavours/show.html.haml @@ -12,8 +12,9 @@ %hr/ - .fields-group - = f.input :setting_skin, collection: Themes.instance.skins_for(@selected), label_method: lambda { |skin| I18n.t("skins.#{@selected}.#{skin}", default: skin) }, wrapper: :with_label, include_blank: false + - if Themes.instance.skins_for(@selected).length > 1 + .fields-group + = f.input :setting_skin, collection: Themes.instance.skins_for(@selected), label_method: lambda { |skin| I18n.t("skins.#{@selected}.#{skin}", default: skin) }, wrapper: :with_label, include_blank: false .actions = f.button :button, t('generic.use_this'), type: :submit