Skip to content

Commit

Permalink
Merge pull request mastodon#311 from glitch-soc/dont-show-solo-skins
Browse files Browse the repository at this point in the history
Don't show skins selector when there's only one (mastodon#256)
  • Loading branch information
hannahwhy committed Jan 9, 2018
2 parents 488381a + 44792de commit df04da0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/views/settings/flavours/show.html.haml
Expand Up @@ -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

0 comments on commit df04da0

Please sign in to comment.