diff options
author | Matt Jankowski <matt@jankowski.online> | 2024-01-11 04:32:32 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-11 09:32:32 +0000 |
commit | 6daa69327b32a46cc36a03b18dede42154ca6ffa (patch) | |
tree | 07d2d248c0cfbb2329f6cdd4775bb1743605586e /app/views/admin | |
parent | 0a7cff53c2577b3e79599e069eeb344f2613ad8d (diff) |
Fix `LineLength` haml-lint in `t` usage (#28686)
Diffstat (limited to 'app/views/admin')
-rw-r--r-- | app/views/admin/account_warnings/_account_warning.html.haml | 5 | ||||
-rw-r--r-- | app/views/admin/action_logs/_action_log.html.haml | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/app/views/admin/account_warnings/_account_warning.html.haml b/app/views/admin/account_warnings/_account_warning.html.haml index 85bac789f73..5702e4f6d27 100644 --- a/app/views/admin/account_warnings/_account_warning.html.haml +++ b/app/views/admin/account_warnings/_account_warning.html.haml @@ -5,7 +5,10 @@ = fa_icon 'warning' .log-entry__content .log-entry__title - = t(account_warning.action, scope: 'admin.strikes.actions', name: content_tag(:span, account_warning.account ? account_warning.account.username : I18n.t('admin.action_logs.deleted_account'), class: 'username'), target: content_tag(:span, account_warning.target_account.pretty_acct, class: 'target')).html_safe + = t(account_warning.action, + scope: 'admin.strikes.actions', + name: content_tag(:span, account_warning.account ? account_warning.account.username : I18n.t('admin.action_logs.deleted_account'), class: 'username'), + target: content_tag(:span, account_warning.target_account.pretty_acct, class: 'target')).html_safe .log-entry__timestamp %time.formatted{ datetime: account_warning.created_at.iso8601 } = l(account_warning.created_at) diff --git a/app/views/admin/action_logs/_action_log.html.haml b/app/views/admin/action_logs/_action_log.html.haml index a2fce2d1145..dcc33318092 100644 --- a/app/views/admin/action_logs/_action_log.html.haml +++ b/app/views/admin/action_logs/_action_log.html.haml @@ -4,6 +4,8 @@ = image_tag action_log.account.avatar.url(:original), alt: '', width: 40, height: 40, class: 'avatar' .log-entry__content .log-entry__title - = t("admin.action_logs.actions.#{action_log.action}_#{action_log.target_type.underscore}_html", name: content_tag(:span, action_log.account.username, class: 'username'), target: content_tag(:span, log_target(action_log), class: 'target')) + = t "admin.action_logs.actions.#{action_log.action}_#{action_log.target_type.underscore}_html", + name: content_tag(:span, action_log.account.username, class: 'username'), + target: content_tag(:span, log_target(action_log), class: 'target') .log-entry__timestamp %time.formatted{ datetime: action_log.created_at.iso8601 } |