Sha256: 5f4ea544638b8b8df4f8fb9cba22adcf33478b039d7947180d6335ccf52db97b

Contents?: true

Size: 997 Bytes

Versions: 8

Compression:

Stored size: 997 Bytes

Contents

= within_admin_layout(title: "Users") do

  = render "filters", user_search: user_search

  table
    thead
      th.col-width-tiny
      th.col-width-tiny ID
      th.col-width-medium= 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 Telephone #
      th.col-width-date-time= sort_link(user_search, :created_at, "Added")
      th.col-width-tiny Approved

    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.telephone
          td= l user.created_at
          td= yes_no(user.approved?)

  = paginate users

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.rc10 app/views/renalware/admin/users/index.html.slim
renalware-core-2.0.0.pre.rc9 app/views/renalware/admin/users/index.html.slim
renalware-core-2.0.0.pre.rc8 app/views/renalware/admin/users/index.html.slim
renalware-core-2.0.0.pre.rc7 app/views/renalware/admin/users/index.html.slim
renalware-core-2.0.0.pre.rc6 app/views/renalware/admin/users/index.html.slim
renalware-core-2.0.0.pre.rc5 app/views/renalware/admin/users/index.html.slim
renalware-core-2.0.0.pre.rc4 app/views/renalware/admin/users/index.html.slim
renalware-core-2.0.0.pre.rc3 app/views/renalware/admin/users/index.html.slim