Sha256: 157ee6ac35e25e4607c416df815b64bf15fa22531a617f3d5bc872fc3fc0d856

Contents?: true

Size: 840 Bytes

Versions: 12

Compression:

Stored size: 840 Bytes

Contents

.filters
  = link_to t('spina.users.new'), spina.new_admin_user_path, class: 'button button-primary', data: {icon: 't'}

.table-container
  %table.table
    %thead
      %tr
        %th= Spina::User.human_attribute_name :name
        %th= Spina::User.human_attribute_name :role
        %th= Spina::User.human_attribute_name :last_logged_in
        %th

    %tbody
      - @users.each do |user|
        %tr
          %td= link_to user, spina.edit_admin_user_path(user)
          %td= user.admin? ? Spina::User.human_attribute_name(:admin) : Spina::User.human_attribute_name(:user)
          %td
            - if user.last_logged_in.present?
              = time_ago_in_words(user.last_logged_in) + " #{t('spina.ago')}"
          %td= link_to t('spina.edit'), spina.edit_admin_user_path(user), class: 'button button-small', data: {icon: 'q'}

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
spina-0.6.24 app/views/spina/admin/users/index.html.haml
spina-0.6.23 app/views/spina/admin/users/index.html.haml
spina-0.6.22 app/views/spina/admin/users/index.html.haml
spina-0.6.21 app/views/spina/admin/users/index.html.haml
spina-0.6.20 app/views/spina/admin/users/index.html.haml
spina-0.6.19 app/views/spina/admin/users/index.html.haml
spina-0.6.18 app/views/spina/admin/users/index.html.haml
spina-0.6.17 app/views/spina/admin/users/index.html.haml
spina-0.6.16 app/views/spina/admin/users/index.html.haml
spina-0.6.15 app/views/spina/admin/users/index.html.haml
spina-0.6.14 app/views/spina/admin/users/index.html.haml
spina-0.6.13 app/views/spina/admin/users/index.html.haml