summaryrefslogtreecommitdiff
path: root/app/views/call_routes/show.html.haml
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-01-28 09:26:47 +0100
committerspag <spag@golwen.net>2013-01-28 09:26:47 +0100
commit29ac1a26b5d78c3d8570928df73610de0a361297 (patch)
tree3ec56353f7a9ec3c8a7275708e9ce0c088411cf7 /app/views/call_routes/show.html.haml
parente500814c387818938bfe76299a25a04de7e1cbfb (diff)
render route endpoint
Diffstat (limited to 'app/views/call_routes/show.html.haml')
-rw-r--r--app/views/call_routes/show.html.haml11
1 files changed, 6 insertions, 5 deletions
diff --git a/app/views/call_routes/show.html.haml b/app/views/call_routes/show.html.haml
index 70fe13e..09daf53 100644
--- a/app/views/call_routes/show.html.haml
+++ b/app/views/call_routes/show.html.haml
@@ -7,11 +7,12 @@
%strong= t('call_routes.show.name') + ":"
= @call_route.name
%p
- %strong= t('call_routes.show.endpoint_type') + ":"
- = @call_route.endpoint_type
-%p
- %strong= t('call_routes.show.endpoint_id') + ":"
- = @call_route.endpoint_id
+ %strong= t('call_routes.show.endpoint') + ":"
+ - endpoint = @call_route.endpoint
+ - if endpoint
+ = endpoint
+ - else
+ = @call_route.endpoint_type
= render :partial => 'shared/show_edit_destroy_part', :locals => { :child => @call_route }