15 lines
506 B
Plaintext
15 lines
506 B
Plaintext
:ruby
|
|
description ||= ""
|
|
%li.list-group-item{ id: "privilege-#{privilege}" }
|
|
.d-flex
|
|
.flex-shrink-0
|
|
%input{ type: :checkbox,
|
|
name: "check-your-privileges",
|
|
data: { type: privilege, user: user.screen_name },
|
|
checked: user.has_cached_role?(privilege.to_sym),
|
|
autocomplete: :off }
|
|
.flex-grow-1
|
|
.list-group-item-heading= privilege.capitalize
|
|
- unless description.blank?
|
|
.list-group-item-text.text-muted= description
|