Sha256: a8c28a29c41fffbd8dfca12af6f1cf44d02665c7cc3d16c1080047c92838fa9f

Contents?: true

Size: 545 Bytes

Versions: 4

Compression:

Stored size: 545 Bytes

Contents

-# Partial for a user list as shown to admins.
-# origin: RM

- if @users.present?
  %table.grid
    %tr
      %th= User.human_attribute_name :username
      %th= User.human_attribute_name :full_name
      %th= User.human_attribute_name :email
    - for user in @users
      %tr
        - icon_name = user.locked? ? :lock : :edit
        %td= link_to(icon(icon_name, user.username), [:edit, :admin, user])
        %td= maybe_blank(user.full_name)
        %td= maybe_blank(user.email)
  = pagination @users
- else
  .none
    No users found.
    

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
serum-rails-0.2.1 spec/test_apps/rails-2-3/app/views/admin/users/_list.html.haml
serum-rails-0.2.0 spec/test_apps/rails-2-3/app/views/admin/users/_list.html.haml
serum-rails-0.1.1 spec/test_app/app/views/admin/users/_list.html.haml
serum-rails-0.1.0 spec/test_app/app/views/admin/users/_list.html.haml