Fix glitch-soc HAML linting issues (#2166)

This commit is contained in:
Claire
2023-04-07 20:55:28 +02:00
committed by GitHub
parent 02d5c69404
commit c3a8f6a0a3
5 changed files with 7 additions and 8 deletions

View File

@@ -5,7 +5,7 @@
= render 'shared/error_messages', object: current_user
- Themes.instance.flavour(@selected)['screenshot'].each do |screen|
%img.flavour-screen{ src: full_pack_url("media/#{screen}") }
%img.flavour-screen{ src: full_pack_url("media/#{screen}"), alt: '' }
.flavour-description
= t "flavours.#{@selected}.description", default: ''
@@ -14,7 +14,7 @@
- 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
= f.input :setting_skin, collection: Themes.instance.skins_for(@selected), label_method: ->(skin) { I18n.t("skins.#{@selected}.#{skin}", default: skin) }, wrapper: :with_label, include_blank: false
.actions
= f.button :button, t('generic.use_this'), type: :submit