Skip to content

Commit

Permalink
Lint haml
Browse files Browse the repository at this point in the history
  • Loading branch information
tribela committed Feb 27, 2024
1 parent 9e0f37e commit 7150ffd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/views/admin/instances/_instance.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
%small
- if instance.domain_block
= instance.domain_block.policies.map { |policy| t(policy, scope: 'admin.instances.content_policies.policies') }.join(' · ')
%span.comment.public-comment= t('admin.domain_blocks.public_comment') + ': ' + instance.domain_block.public_comment if instance.domain_block.public_comment.present?
%span.comment.private-comment= t('admin.domain_blocks.private_comment') + ': ' + instance.domain_block.private_comment if instance.domain_block.private_comment.present?
- if instance.domain_block.public_comment.present?
%span.comment.public-comment "#{t('admin.domain_blocks.public_comment')}: #{instance.domain_block.public_comment}"
- if instance.domain_block.private_comment.present?
%span.comment.private-comment "#{t('admin.domain_blocks.private_comment')}: #{instance.domain_block.private_comment}"
- elsif instance.domain_allow
= t('admin.accounts.whitelisted')
- else
Expand Down

0 comments on commit 7150ffd

Please sign in to comment.