Lint Slim files and fix offenses

The fixing was partially done manually and partially automatically.
This commit is contained in:
Sebastian Serth
2024-04-13 20:06:03 +02:00
committed by Dominic Sauer
parent ddfa06ffaa
commit 9a9efd5caa
91 changed files with 378 additions and 392 deletions

View File

@@ -1,7 +1,7 @@
h1 = Tip.model_name.human(count: 2)
.table-responsive
table.table class="#{@tips.present? ? 'sortable' : ''}"
table.table class=(@tips.present? ? 'sortable' : '')
thead
tr
th = t('activerecord.attributes.tip.title')
@@ -14,7 +14,7 @@ h1 = Tip.model_name.human(count: 2)
td = tip.file_type ? link_to_if(policy(tip.file_type).show?, tip.file_type.name, tip.file_type) : ''
td = link_to(t('shared.show'), tip) if policy(tip).show?
td = link_to(t('shared.edit'), edit_tip_path(tip)) if policy(tip).edit?
td = link_to(t('shared.destroy'), tip, data: {confirm: t('shared.confirm_destroy')}, method: :delete) if tip.can_be_destroyed? && policy(tip).destroy?
td = link_to(t('shared.destroy'), tip, data: {confirm: t('shared.confirm_destroy')}, method: :delete) if tip.can_be_destroyed? && policy(tip).destroy?
= render('shared/pagination', collection: @tips)
p = render('shared/new_button', model: Tip, path: new_tip_path)