summaryrefslogtreecommitdiff
path: root/app/views/call_routes
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-20 19:45:36 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-20 19:45:36 +0100
commit525e7ad4cac6fff7bd0370828b06159d610573ef (patch)
tree1340d2f1144f3e86c72f68aa0f06e389ee60fa97 /app/views/call_routes
parent66147369d3f1a96ebd7c20bb89165a116ec1e147 (diff)
Added caching.
Diffstat (limited to 'app/views/call_routes')
-rw-r--r--app/views/call_routes/_index_core.html.haml26
1 files changed, 14 insertions, 12 deletions
diff --git a/app/views/call_routes/_index_core.html.haml b/app/views/call_routes/_index_core.html.haml
index aa22437..124f4d0 100644
--- a/app/views/call_routes/_index_core.html.haml
+++ b/app/views/call_routes/_index_core.html.haml
@@ -1,13 +1,15 @@
-%table
- %tr
- %th= t('call_routes.index.name')
- %th= t('call_routes.index.endpoint_type')
- %th= t('call_routes.index.endpoint_id')
+- cache(['call_routes_table', call_routes.count, call_routes.reorder(:updated_at).last]) do
+ %table
+ %tr
+ %th= t('call_routes.index.name')
+ %th= t('call_routes.index.endpoint_type')
+ %th= t('call_routes.index.endpoint_id')
- - reset_cycle
- - for call_route in call_routes
- %tr{:class => cycle('odd', 'even')}
- %td= call_route.name
- %td= call_route.endpoint_type
- %td= call_route.endpoint_id
- =render :partial => 'shared/index_view_edit_destroy_part', :locals => {:child => call_route} \ No newline at end of file
+ - reset_cycle
+ - for call_route in call_routes
+ %tr{:class => cycle('odd', 'even')}
+ - cache(['call_route_single_table_row', call_route]) do
+ %td= call_route.name
+ %td= call_route.endpoint_type
+ %td= call_route.endpoint_id
+ =render :partial => 'shared/index_view_edit_destroy_part', :locals => {:child => call_route} \ No newline at end of file