Sha256: df47e372a3da94ec5cc801a2e065d09caa05934359209451b04dc5fe24599890

Contents?: true

Size: 1.72 KB

Versions: 39

Compression:

Stored size: 1.72 KB

Contents

- @page_title = t('users') + ' - ' + default_page_title

= render_region :top

.outset
  %table.index.tablesaw#users
    %thead
      %tr
        - render_region :thead do |thead|
          - thead.title_header do
            %th.user== #{t('name')} / #{t('username')}
          - thead.roles_header do
            %th.roles= t('roles')
          - thead.actions_header do
            %th.actions{:style=>'width:9em'}= t('modify')
          - thead.last_sign_in_at_header do
            %th.last_sign_in_at= "Last Sign In"
    %tbody
      - @users.each do |user|
        %tr[user]
          - render_region :tbody, :locals => {:user => user} do |tbody|
            - tbody.title_cell do
              %td.name
                = link_to user.name, edit_admin_user_url(user)
            - tbody.roles_cell do
              %td.roles= roles(user)
            - tbody.actions_cell do
              %td.actions
                - if !current_user.admin?
                  %span.action.disabled
                    %i.fas.fa-minus-circle
                    = t('remove')
                - else
                  = link_to remove_admin_user_url(user), :class => 'action' do
                    %i.fas.fa-minus-circle
                    = t('remove')
            - tbody.last_sign_in_at_cell do
              -if user.last_sign_in_at.present?
                %td.last_sign_in_at= user.last_sign_in_at.to_date
              - else
                %td.last_sign_in_at

- render_region :bottom do |bottom|
  - bottom.new_button do
    - if current_user.admin?
      #actions
        = pagination_for(@users)
        %ul
          %li
            = link_to new_admin_user_url, :class => 'action_button' do
              %i.fas.fa-plus-circle
              = t('new_user')

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
trusty-cms-7.0.10 app/views/admin/users/index.html.haml
trusty-cms-7.0.9 app/views/admin/users/index.html.haml
trusty-cms-7.0.8 app/views/admin/users/index.html.haml
trusty-cms-7.0.7 app/views/admin/users/index.html.haml
trusty-cms-7.0.6 app/views/admin/users/index.html.haml
trusty-cms-7.0.5 app/views/admin/users/index.html.haml
trusty-cms-7.0.4 app/views/admin/users/index.html.haml
trusty-cms-7.0.3 app/views/admin/users/index.html.haml
trusty-cms-6.3.1 app/views/admin/users/index.html.haml
trusty-cms-7.0.2 app/views/admin/users/index.html.haml
trusty-cms-7.0.1 app/views/admin/users/index.html.haml
trusty-cms-7.0.0 app/views/admin/users/index.html.haml
trusty-cms-6.3 app/views/admin/users/index.html.haml
trusty-cms-6.2.1 app/views/admin/users/index.html.haml
trusty-cms-6.2.2.1 app/views/admin/users/index.html.haml
trusty-cms-6.2.0 app/views/admin/users/index.html.haml
trusty-cms-6.1.2 app/views/admin/users/index.html.haml
trusty-cms-6.1.1 app/views/admin/users/index.html.haml
trusty-cms-6.0.5 app/views/admin/users/index.html.haml
trusty-cms-6.0.4 app/views/admin/users/index.html.haml