2020-05-10 03:53:30 -07:00
|
|
|
:ruby
|
2022-07-26 17:12:07 -07:00
|
|
|
description ||= ""
|
2020-05-10 03:53:30 -07:00
|
|
|
%li.list-group-item{ id: "privilege-#{privilege}" }
|
2023-01-04 07:12:43 -08:00
|
|
|
.d-flex
|
|
|
|
.flex-shrink-0
|
2024-02-27 15:40:38 -08:00
|
|
|
%input{ type: :checkbox,
|
|
|
|
name: "check-your-privileges",
|
|
|
|
data: { type: privilege, user: user.screen_name },
|
|
|
|
checked: user.has_cached_role?(privilege.to_sym),
|
|
|
|
autocomplete: :off }
|
2023-01-04 07:12:43 -08:00
|
|
|
.flex-grow-1
|
2015-02-03 08:13:50 -08:00
|
|
|
.list-group-item-heading= privilege.capitalize
|
|
|
|
- unless description.blank?
|
2015-04-19 13:38:10 -07:00
|
|
|
.list-group-item-text.text-muted= description
|