diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-01-15 21:38:22 +0100 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-01-15 21:38:22 +0100 |
commit | 6b7cbac8a2a274c1839e8ea6aa293d0e6e49d370 (patch) | |
tree | dd298c2aa8109cca3757655e754d458225b8c366 /app/views/users | |
parent | 7b5c903f96e1c97ad788962c88d6d285852d890e (diff) |
Fixes caching bugs.
Diffstat (limited to 'app/views/users')
-rw-r--r-- | app/views/users/show.html.haml | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/app/views/users/show.html.haml b/app/views/users/show.html.haml index 5650b13..c3af173 100644 --- a/app/views/users/show.html.haml +++ b/app/views/users/show.html.haml @@ -2,7 +2,7 @@ #user-show %aside - - cache([I18n.locale, 'show_aside', @user, @user.sip_accounts, @user.conferences]) do + - cache(['user_show_aside', I18n.locale, @user, @user.sip_accounts, @user.conferences]) do = image_tag @user.image_url(:small).to_s, class: 'display' if @user.image? && @user.image_url(:small) %p %strong= t('users.show.user_name') + ":" @@ -43,18 +43,18 @@ %section = render :partial => 'phone_books', :locals => {:user => @user, :phone_books => @phone_books} - - cache([I18n.locale, @user, @user.user_groups, @user.sip_accounts, @user.phones, @user.fax_accounts, @user.conferences]) do - - cache([I18n.locale, @user, @user.user_groups]) do + - cache(['user_show_overview', I18n.locale, @user, @user.user_groups, @user.sip_accounts, @user.phones, @user.fax_accounts, @user.conferences]) do + - cache(['user_show_user_groups_overview', I18n.locale, @user, @user.user_groups]) do = render :partial => 'user_groups', :locals => {:user => @user, :tenant => @tenant} - - cache([I18n.locale, @user, @user.sip_accounts]) do + - cache(['user_show_sip_accounts_overview', I18n.locale, @user, @user.sip_accounts]) do = render :partial => 'sip_accounts', :locals => {:user => @user} - - cache([I18n.locale, @user, @user.phones]) do + - cache(['user_show_phones_overview', I18n.locale, @user, @user.phones]) do = render :partial => 'phones', :locals => {:user => @user} - - cache([I18n.locale, @user, @user.fax_accounts]) do + - cache(['user_show_fax_accounts_overview', I18n.locale, @user, @user.fax_accounts]) do = render :partial => 'fax_accounts', :locals => {:user => @user} - - cache([I18n.locale, @user, @user.conferences]) do + - cache(['user_show_conferences_overview', I18n.locale, @user, @user.conferences]) do = render :partial => 'conferences', :locals => {:user => @user} |