Sha256: 5e23918f47f1ed8b24d8b276e2a3ddbd1f1404443b7e6060a6ea71966817ed8a

Contents?: true

Size: 683 Bytes

Versions: 3

Compression:

Stored size: 683 Bytes

Contents

- content_for(:header_title) { FamilyGallery::User.model_name.human(count: 2) }

- if can? :new, FamilyGallery::User
  - content_for(:header_right) { link_to t("add_new"), new_user_path, class: "mobile-button-header" }

%table.mobile-table.list
  %thead
    %tr
      %th= sort_link @ransack, :first_name
      %th= sort_link @ransack, :last_name
      %th= sort_link @ransack, :email
  %tbody
    - @users.each do |user|
      %tr
        %td= link_to_user user, title: user.first_name
        %td= link_to_user user, title: user.last_name
        %td= mail_to user.email
    - unless @users.any?
      %tr
        %td{colspan: 3}= t(".no_users_were_found")

= will_paginate @users

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
family_gallery-0.0.8 app/views/family_gallery/users/index.mobile.haml
family_gallery-0.0.7 app/views/family_gallery/users/index.mobile.haml
family_gallery-0.0.6 app/views/family_gallery/users/index.mobile.haml