2018-11-08 17:13:48 +01:00
|
|
|
:ruby
|
2019-07-04 12:36:17 +02:00
|
|
|
group = field.resource.class.name.downcase
|
|
|
|
user = field.resource.user
|
|
|
|
url = enable_feature_manager_user_path(user)
|
2018-11-08 17:13:48 +01:00
|
|
|
|
2018-04-26 14:40:03 +02:00
|
|
|
%table#features
|
2019-07-04 12:36:17 +02:00
|
|
|
- Flipper.features.select { |feature| feature.key.start_with?("#{group}_") }.each do |feature|
|
2018-11-12 12:28:18 +01:00
|
|
|
%tr
|
2019-07-04 12:36:17 +02:00
|
|
|
%td= feature
|
2018-11-12 12:28:18 +01:00
|
|
|
%td
|
2019-07-04 12:36:17 +02:00
|
|
|
= check_box_tag "enable-feature", "enable", feature.enabled?(user), data: { url: url, key: feature.key }
|