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 = ErrorTemplateAttribute.model_name.human(count: 2)
.table-responsive
table.table class="#{@error_template_attributes.present? ? 'sortable' : ''}"
table.table class=(@error_template_attributes.present? ? 'sortable' : '')
thead
tr
th
@@ -14,9 +14,9 @@ h1 = ErrorTemplateAttribute.model_name.human(count: 2)
tr
td
- if error_template_attribute.important
span class="fa-solid fa-star" aria-hidden="true"
span.fa-solid.fa-star aria-hidden='true'
- else
span class="fa-regular fa-star" aria-hidden="true"
span.fa-regular.fa-star aria-hidden='true'
td = link_to_if(policy(error_template_attribute).show?, error_template_attribute.key, error_template_attribute)
td = error_template_attribute.description
td