summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/views/call_routes/_index_core.html.haml2
-rw-r--r--app/views/call_routes/index.html.haml2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/call_routes/_index_core.html.haml b/app/views/call_routes/_index_core.html.haml
index b6c5d33..6f2eadd 100644
--- a/app/views/call_routes/_index_core.html.haml
+++ b/app/views/call_routes/_index_core.html.haml
@@ -7,7 +7,7 @@
%th= t('route_elements.index.pattern')
%th= t('call_routes.index.endpoint')
- %tbody{ :id => "call_routes", :'data-update-url' => sort_call_routes_url}
+ %tbody{ :id => "call_routes_#{routing_table}", :'data-update-url' => sort_call_routes_url}
- for call_route in call_routes
- cache(['call_route_single_table_row', I18n.locale, call_route]) do
= content_tag_for :tr, call_route do
diff --git a/app/views/call_routes/index.html.haml b/app/views/call_routes/index.html.haml
index d5181e3..0108322 100644
--- a/app/views/call_routes/index.html.haml
+++ b/app/views/call_routes/index.html.haml
@@ -3,6 +3,6 @@
- if @call_routes && @call_routes.any?
- @routing_tables.each do |routing_table|
%h3= routing_table
- = render "index_core", :call_routes => @call_routes.where(:routing_table => routing_table)
+ = render "index_core", :call_routes => @call_routes.where(:routing_table => routing_table), :routing_table => routing_table
= render :partial => 'shared/create_link', :locals => {:child_class => CallRoute}