diff options
author | spag <spag@golwen.net> | 2013-02-09 11:12:57 +0100 |
---|---|---|
committer | spag <spag@golwen.net> | 2013-02-09 11:12:57 +0100 |
commit | cc4dda2b37119e1364cf0a5362aedfae639bcbc7 (patch) | |
tree | 516699e95432d6a15e1d31d837ccbbaf99b9b758 /app/views | |
parent | e497de90ccf55b3cbec1de7890e20220fa8e603f (diff) |
duplicate ids fixed
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/call_routes/_index_core.html.haml | 2 | ||||
-rw-r--r-- | app/views/call_routes/index.html.haml | 2 |
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} |