Sha256: 57921d52d85e873b74917b6964fc3d9ec79011c0451da320e0292758a8218c67

Contents?: true

Size: 1.97 KB

Versions: 43

Compression:

Stored size: 1.97 KB

Contents

= within_admin_layout(title: "Users") do

  = render "filters", user_search: user_search

  table.admin-users
    thead
      th.col-width-tiny
      th.col-width-tiny ID
      th.col-width-large= sort_link(user_search,
                                     :family_name,
                                     [:family_name, :given_name],
                                     "User")
      th.col-width-small= sort_link(user_search, :username, "Login")
      th= sort_link(user_search, :email, "Email")
      th.col-width-medium Role
      th.col-width-tiny= sort_link(user_search, :approved, "Approved")
      th.col-width-date= sort_link(user_search, :expired_at, "Expired On")
      th.col-width-date-time.show-for-large-up= sort_link(user_search, :current_sign_in_at, "Current sign in")
      th.col-width-date-time.show-for-large-up= sort_link(user_search, :last_sign_in_at, "Last sign in")
      th.col-width-date-time.show-for-large-up= sort_link(user_search, :last_activity_at, "Last activity")
      th.col-width-medium.show-for-xlarge-up Telephone #
      th.col-width-date-time.show-for-xlarge-up= sort_link(user_search, :created_at, "Added")


    tbody
      - users.each do |user|
        = content_tag_for(:tr, user) do
          td= link_to "Edit", edit_admin_user_path(user) if policy(user).update?
          td= user.id
          td= user.to_s
          td= user.username
          td= user.email
          td
            - user.roles.each do |role|
              span.tag(class=role.name)= role.name.humanize
          td.approved
            - if user.approved?
              i.fa.fa-check-square-o
            - else
              i.unapproved.fa.fa-square-o
          td.expired= l(user.expired_at&.to_date)
          td.show-for-large-up= l(user.current_sign_in_at)
          td.show-for-large-up= l(user.last_sign_in_at)
          td.show-for-large-up= l(user.last_activity_at)
          td.show-for-xlarge-up= user.telephone
          td.show-for-xlarge-up= l(user.created_at)

  = paginate users

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
renalware-core-2.0.44 app/views/renalware/admin/users/index.html.slim
renalware-core-2.0.43 app/views/renalware/admin/users/index.html.slim
renalware-core-2.0.42 app/views/renalware/admin/users/index.html.slim
renalware-core-2.0.41 app/views/renalware/admin/users/index.html.slim
renalware-core-2.0.40 app/views/renalware/admin/users/index.html.slim
renalware-core-2.0.39 app/views/renalware/admin/users/index.html.slim
renalware-core-2.0.38 app/views/renalware/admin/users/index.html.slim
renalware-core-2.0.37 app/views/renalware/admin/users/index.html.slim
renalware-core-2.0.36 app/views/renalware/admin/users/index.html.slim
renalware-core-2.0.35 app/views/renalware/admin/users/index.html.slim
renalware-core-2.0.34 app/views/renalware/admin/users/index.html.slim
renalware-core-2.0.33 app/views/renalware/admin/users/index.html.slim
renalware-core-2.0.32 app/views/renalware/admin/users/index.html.slim
renalware-core-2.0.31 app/views/renalware/admin/users/index.html.slim
renalware-core-2.0.30 app/views/renalware/admin/users/index.html.slim
renalware-core-2.0.28 app/views/renalware/admin/users/index.html.slim
renalware-core-2.0.27 app/views/renalware/admin/users/index.html.slim
renalware-core-2.0.26 app/views/renalware/admin/users/index.html.slim
renalware-core-2.0.25 app/views/renalware/admin/users/index.html.slim
renalware-core-2.0.24 app/views/renalware/admin/users/index.html.slim