summaryrefslogtreecommitdiff
path: root/app/views/call_routes/show.xml.haml
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-02-09 10:27:24 +0100
committerspag <spag@golwen.net>2013-02-09 10:27:24 +0100
commite497de90ccf55b3cbec1de7890e20220fa8e603f (patch)
treec3ca47ca5462339776f6e6cb11e2e7c764740802 /app/views/call_routes/show.xml.haml
parent42a8e4808e343975042730ab3847303184d73b92 (diff)
call_route xml view added
Diffstat (limited to 'app/views/call_routes/show.xml.haml')
-rw-r--r--app/views/call_routes/show.xml.haml5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/views/call_routes/show.xml.haml b/app/views/call_routes/show.xml.haml
new file mode 100644
index 0000000..5800816
--- /dev/null
+++ b/app/views/call_routes/show.xml.haml
@@ -0,0 +1,5 @@
+!!! XML
+%call_route{ :name => @call_route.name, :routing_table => @call_route.routing_table, :position => @call_route.position, :endpoint => @call_route.endpoint, :endpoint_type => @call_route.endpoint_type }
+ %route_elements{ :count => @call_route.route_elements.count }
+ - @call_route.route_elements.each do |route_element|
+ %route_element{ :var_in => route_element.var_in, :var_out => route_element.var_out, :pattern => route_element.pattern, :replacement => route_element.replacement, :action => route_element.action, :mandatory => route_element.mandatory.to_s, :position => route_element.position }