add fullwidth class to user action icons

This commit is contained in:
Andreas Nedbal 2023-01-03 17:17:24 +01:00 committed by Andreas Nedbal
parent 05494e8822
commit 6e5e483346
1 changed files with 10 additions and 10 deletions

View File

@ -15,40 +15,40 @@
%span.caret %span.caret
.dropdown-menu .dropdown-menu
%a.dropdown-item.d-block.d-sm-none{ href: '#', data: { target: '#modal-list-memberships', toggle: :modal } } %a.dropdown-item.d-block.d-sm-none{ href: '#', data: { target: '#modal-list-memberships', toggle: :modal } }
%i.fa.fa-list %i.fa.fa-list.fa-fw
= t(".list") = t(".list")
- if current_user.blocking?(user) - if current_user.blocking?(user)
%a.dropdown-item{ href: '#', data: { action: :unblock, target: user.screen_name } } %a.dropdown-item{ href: '#', data: { action: :unblock, target: user.screen_name } }
%i.fa.fa-minus-circle %i.fa.fa-minus-circle.fa-fw
%span.pe-none= t("voc.unblock") %span.pe-none= t("voc.unblock")
- else - else
%a.dropdown-item{ href: '#', data: { action: :block, target: user.screen_name } } %a.dropdown-item{ href: '#', data: { action: :block, target: user.screen_name } }
%i.fa.fa-minus-circle %i.fa.fa-minus-circle.fa-fw
%span.pe-none= t("voc.block") %span.pe-none= t("voc.block")
- if current_user.muting?(user) - if current_user.muting?(user)
%a.dropdown-item{ href: '#', data: { action: :unmute, target: user.screen_name } } %a.dropdown-item{ href: '#', data: { action: :unmute, target: user.screen_name } }
%i.fa.fa-volume-off %i.fa.fa-volume-off.fa-fw
%span.pe-none= t("voc.unmute") %span.pe-none= t("voc.unmute")
- else - else
%a.dropdown-item{ href: '#', data: { action: :mute, target: user.screen_name } } %a.dropdown-item{ href: '#', data: { action: :mute, target: user.screen_name } }
%i.fa.fa-volume-off %i.fa.fa-volume-off.fa-fw
%span.pe-none= t("voc.mute") %span.pe-none= t("voc.mute")
%a.dropdown-item{ href: '#', data: { action: 'report-user', target: user.screen_name } } %a.dropdown-item{ href: '#', data: { action: 'report-user', target: user.screen_name } }
%i.fa.fa-exclamation-triangle %i.fa.fa-exclamation-triangle.fa-fw
= t("voc.report") = t("voc.report")
- if current_user.mod? - if current_user.mod?
%a.dropdown-item{ href: '#', data: { target: '#modal-privileges', toggle: :modal } } %a.dropdown-item{ href: '#', data: { target: '#modal-privileges', toggle: :modal } }
%i.fa.fa-wrench %i.fa.fa-wrench.fa-fw
= raw t(".privilege", user: user.screen_name) = raw t(".privilege", user: user.screen_name)
- unless user.has_cached_role?(:administrator) - unless user.has_cached_role?(:administrator)
%a.dropdown-item{ href: '#', data: { target: '#modal-ban', toggle: :modal } } %a.dropdown-item{ href: '#', data: { target: '#modal-ban', toggle: :modal } }
%i.fa.fa-ban %i.fa.fa-ban.fa-fw
= t(".ban") = t(".ban")
- if current_user.mod? && user != current_user - if current_user.mod? && user != current_user
%a.dropdown-item{ href: mod_inbox_index_path(user: user.screen_name) } %a.dropdown-item{ href: mod_inbox_index_path(user: user.screen_name) }
%i.fa.fa-inbox %i.fa.fa-inbox.fa-fw
= t(".view_inbox") = t(".view_inbox")
- if current_user.has_cached_role? :administrator - if current_user.has_cached_role? :administrator
%a.dropdown-item{ href: rails_admin_path_for_resource(user), target: '_blank' } %a.dropdown-item{ href: rails_admin_path_for_resource(user), target: '_blank' }
%i.fa.fa-cogs %i.fa.fa-cogs.fa-fw
= t("voc.view_in_rails_admin") = t("voc.view_in_rails_admin")