summaryrefslogtreecommitdiff
path: root/app/views/users/_index_core.html.haml
blob: b364bd25c0e7c2ff0077a1fc5ede11eb4efd9a9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
- cache(['user_table_row_inner_td', I18n.locale, current_user, users.reorder(:updated_at).last, users.count, GsParameter.get('NUMBER_OF_SHOWN_ITEMS')]) do
  %table{:class => 'table table-striped'}
    %tr
      %th
      %th= t('users.index.user_name')
      %th= t('users.index.email')
      %th= t('users.index.first_name')
      %th= t('users.index.last_name')

    - reset_cycle
    - for user in users
      %tr{:class => cycle('odd', 'even')}
        - cache(['user_table_row_inner_td', I18n.locale, current_user, user]) do
          %td 
            = image_tag user.image_url(:mini).to_s if user.image_url(:mini)
          %td= user.user_name
          %td= user.email
          %td= user.first_name
          %td= user.last_name
          =render :partial => 'shared/index_view_edit_destroy_part', :locals => {:parent => @tenant, :child => user}