Sha256: 7a58882ef3b579e76a832a68077d3333518c03c3100128e5b8a3fe4e6ecea129
Contents?: true
Size: 589 Bytes
Versions: 1
Compression:
Stored size: 589 Bytes
Contents
table.table tr th Username - @roles.each do |role| th = role.to_s.titleize end - @users.each do |user| tr td = user.username - @roles.each do |role| td = form_for user, url: role_user_path(user), method: :put do |f| - operation, activation, btn_class = user.has_role?(role) ? \ %w(revoke active btn-success) : %w(grant inactive btn-danger) = hidden_field_tag :operation, operation = hidden_field_tag :role, role = f.submit activation, class: "btn #{btn_class}"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
crosstie-0.0.7 | lib/crosstie/templates/authorization/index.html.slim |