Fix: haml-lint
This commit is contained in:
parent
58476f3593
commit
933e6e75f3
10 changed files with 34 additions and 30 deletions
|
@ -3,29 +3,29 @@
|
|||
- unless friend.available
|
||||
%span.negative-hint
|
||||
= fa_icon('times')
|
||||
= ' '
|
||||
|
||||
= t 'admin.friend_servers.disabled'
|
||||
%samp= friend.domain
|
||||
%td
|
||||
- if friend.accepted?
|
||||
%span.positive-hint
|
||||
= fa_icon('check')
|
||||
= ' '
|
||||
|
||||
= t 'admin.friend_servers.enabled'
|
||||
- elsif friend.i_am_pending?
|
||||
= fa_icon('hourglass')
|
||||
= ' '
|
||||
|
||||
= t 'admin.friend_servers.pending'
|
||||
- elsif friend.they_are_pending?
|
||||
%span.warning-hint
|
||||
= fa_icon('hourglass')
|
||||
= ' '
|
||||
|
||||
= t 'admin.friend_servers.pending_you'
|
||||
- else
|
||||
%span.negative-hint
|
||||
= fa_icon('times')
|
||||
= ' '
|
||||
|
||||
= t 'admin.friend_servers.disabled'
|
||||
%td
|
||||
= table_link_to 'pencil', t('admin.friend_servers.edit_friend'), edit_admin_friend_server_path(friend)
|
||||
= table_link_to 'pencil', t('admin.friend_servers.edit_friend'), edit_admin_friend_server_path(friend)
|
||||
= table_link_to 'times', t('admin.friend_servers.delete'), admin_friend_server_path(friend), method: :delete, data: { confirm: t('admin.accounts.are_you_sure') }
|
||||
|
|
|
@ -11,16 +11,16 @@
|
|||
- if @friend.accepted?
|
||||
%span.positive-hint
|
||||
= fa_icon('check')
|
||||
= ' '
|
||||
|
||||
= t 'admin.friend_servers.enabled'
|
||||
- elsif @friend.pending?
|
||||
= fa_icon('hourglass')
|
||||
= ' '
|
||||
|
||||
= t 'admin.friend_servers.pending'
|
||||
- else
|
||||
%span.negative-hint
|
||||
= fa_icon('times')
|
||||
= ' '
|
||||
|
||||
= t 'admin.friend_servers.disabled'
|
||||
.action-buttons
|
||||
%div
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue