summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-12 21:37:55 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-12 21:37:55 +0100
commit1e5c4e80fe27eddf87d0e01ea771e8ea050bc4c1 (patch)
tree625cf32507ac6fcb7dca3f36dc67ed94ed450d1f
parentec342d3d91d2cfa8c210722354353cfe8a90a8bc (diff)
Fixed a caching bug. #95
-rw-r--r--app/views/tenants/_sip_accounts_and_phones.html.haml6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/views/tenants/_sip_accounts_and_phones.html.haml b/app/views/tenants/_sip_accounts_and_phones.html.haml
index 9059126..ed5599f 100644
--- a/app/views/tenants/_sip_accounts_and_phones.html.haml
+++ b/app/views/tenants/_sip_accounts_and_phones.html.haml
@@ -8,7 +8,7 @@
%tr{:class => 'odd'}
%td= t("sip_accounts.index.page_title")
- - cache([I18n.locale, tenant, tenant.sip_accounts.count, tenant.sip_accounts.order(:updated_at).last]) do
+ - cache([I18n.locale, tenant, 'sip_accounts', tenant.sip_accounts.count, tenant.sip_accounts.order(:updated_at).last]) do
%td
- if tenant.sip_accounts.any?
- if tenant.sip_accounts.count > GsParameter.get('NUMBER_OF_SHOWN_ITEMS')
@@ -19,7 +19,7 @@
=link_to "#{sip_account.caller_name}", tenant_sip_account_path(tenant,sip_account)
- if sip_account.phone_numbers.any?
= '[' + truncate(sip_account.phone_numbers.map{|phone_number| phone_number.to_s}.join(', '), :length => 25) + ']'
- = render :partial => 'shared/create_link', :locals => {:parent => tenant, :child_class => SipAccount}
+ = render :partial => 'shared/create_link', :locals => {:parent => tenant, :child_class => SipAccount}
%td
- if tenant.users_sip_accounts.any?
- if tenant.users_sip_accounts.count > GsParameter.get('NUMBER_OF_SHOWN_ITEMS')
@@ -40,7 +40,7 @@
%tr{:class => 'even'}
%td= t("phones.index.page_title")
- - cache([I18n.locale, tenant, tenant.phones.count, tenant.phones.order(:updated_at).last]) do
+ - cache([I18n.locale, tenant, 'phones', tenant.phones.count, tenant.phones.order(:updated_at).last]) do
%td
- if tenant.phones.any?
- if tenant.phones.count > GsParameter.get('NUMBER_OF_SHOWN_ITEMS')