BigW Consortium Gitlab

Commit 8c92c405 by Clement Ho

Use unless for force_mobile_view

parent 8e55acb0
...@@ -91,9 +91,9 @@ ...@@ -91,9 +91,9 @@
method: :post, method: :post,
class: 'btn btn-success prepend-left-10', class: 'btn btn-success prepend-left-10',
title: 'Grant access' do title: 'Grant access' do
%span{ class: ('visible-xs-block' if force_mobile_view == false) } %span{ class: ('visible-xs-block' unless force_mobile_view) }
Grant access Grant access
- if force_mobile_view == false - unless force_mobile_view
= icon('check inverse', class: 'hidden-xs') = icon('check inverse', class: 'hidden-xs')
- if can?(current_user, action_member_permission(:destroy, member), member) - if can?(current_user, action_member_permission(:destroy, member), member)
...@@ -109,9 +109,9 @@ ...@@ -109,9 +109,9 @@
data: { confirm: remove_member_message(member) }, data: { confirm: remove_member_message(member) },
class: 'btn btn-remove prepend-left-10', class: 'btn btn-remove prepend-left-10',
title: remove_member_title(member) do title: remove_member_title(member) do
%span{ class: ('visible-xs-block' if force_mobile_view == false) } %span{ class: ('visible-xs-block' unless force_mobile_view) }
Delete Delete
- if force_mobile_view == false - unless force_mobile_view
= icon('trash', class: 'hidden-xs') = icon('trash', class: 'hidden-xs')
- else - else
%span.member-access-text= member.human_access %span.member-access-text= member.human_access
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment