Sha256: 5bedd814c55422871ea2cfad502e2d78bf1239b05dea5a2a6a151175e8fb0de5
Contents?: true
Size: 1.38 KB
Versions: 13
Compression:
Stored size: 1.38 KB
Contents
%table.table#users %thead %tr %th= EgovUtils::User.human_attribute_name('fullname') %th= EgovUtils::User.human_attribute_name('provider') %th= EgovUtils::User.human_attribute_name('roles') %th= EgovUtils::User.human_attribute_name('groups') %th= t('label_actions') %tbody - users.entities.includes(:groups).each do |user| %tr %td{title: user.login}= user.fullname %td= user.provider - if can?(:manage, user) %td.roles{data: {roles: user.roles, id: user.id}}= user.roles.join(', ') - else %td= user.roles.join(', ') %td - user.groups.each do |g| %span= g.name %td - if can?(:delete, user) = button_to(t('label_delete'), user_path(user), method: :delete, class: 'btn btn-warning btn-sm') - if can?(:manage, user) && user.password_change_possible? = link_to(t('label_change_password'), new_password_path(user), class: 'btn btn-secondary btn-sm') - if can?(:edit, user) = link_to(t('label_edit'), edit_user_path(user), class: 'btn btn-secondary btn-sm') - unless user.active? = button_to(t('label_approve'), approve_user_path(user), class: 'btn btn-primary btn-sm') :javascript $(function(){ $('#users tbody').roles({ url: '#{roles_path(entity_class: 'EgovUtils::User')}' }); });
Version data entries
13 entries across 13 versions & 1 rubygems