summaryrefslogtreecommitdiff
path: root/app/views/users/_index_core.html.haml
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-01-18 11:19:28 +0100
committerspag <spag@golwen.net>2013-01-18 11:19:28 +0100
commitc11734ec34349a5d8dee4722ab798a6e5aa3c0f4 (patch)
tree9ec92b252ee8eb5913783725355e9532302887b3 /app/views/users/_index_core.html.haml
parent1e465e49670f6c0fccc1cd920992a14942d3cfba (diff)
parentd4e7d4a5d5bdb63fbda279dbc8dd2ec495b90907 (diff)
Merge branch 'develop' of github.com:amooma/GS5 into develop
Diffstat (limited to 'app/views/users/_index_core.html.haml')
-rw-r--r--app/views/users/_index_core.html.haml36
1 files changed, 19 insertions, 17 deletions
diff --git a/app/views/users/_index_core.html.haml b/app/views/users/_index_core.html.haml
index 51c15de..9376826 100644
--- a/app/views/users/_index_core.html.haml
+++ b/app/views/users/_index_core.html.haml
@@ -1,18 +1,20 @@
-%table
- %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')
+- cache(['user_table_row_inner_td', I18n.locale, current_user, users.order(:updated_at).last, users.count, GsParameter.get('NUMBER_OF_SHOWN_ITEMS')]) do
+ %table
+ %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')}
- %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} \ No newline at end of file
+ - 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} \ No newline at end of file