summaryrefslogtreecommitdiff
path: root/app/views/gateways/show.html.haml
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-03-25 10:27:27 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-03-25 10:27:27 +0100
commitdf6e17e48995f25e72509986f30700d778b179b6 (patch)
treef432c24b8e4ad81009188650dabfd99194883265 /app/views/gateways/show.html.haml
parent11f186a118285fbc87a536af26730780a9ad01f5 (diff)
parentcce94a74aa5c9691f9b37cd9be5a6831f8063812 (diff)
Merge branch 'develop'5.1.2
Diffstat (limited to 'app/views/gateways/show.html.haml')
-rw-r--r--app/views/gateways/show.html.haml76
1 files changed, 76 insertions, 0 deletions
diff --git a/app/views/gateways/show.html.haml b/app/views/gateways/show.html.haml
index 6cf09ec..19b1304 100644
--- a/app/views/gateways/show.html.haml
+++ b/app/views/gateways/show.html.haml
@@ -33,6 +33,82 @@
%td
= @gateway.description
+ - if @gateway.technology.to_s == 'sip'
+ - status = @gateway.status
+ - if !@gateway.status.blank?
+ %tr
+ %td
+ %strong= t('gateways.show.status') + ":"
+ %td
+ = "#{status['status']} (#{status['state']})"
+ %tr
+ %td
+ %strong= t('gateways.show.identifier') + ":"
+ %td
+ = status['name']
+ %tr
+ %td
+ %strong= t('gateways.show.profile') + ":"
+ %td
+ = status['profile']
+ %tr
+ %td
+ %strong= t('gateways.show.username') + ":"
+ %td
+ = status['username']
+ %tr
+ %td
+ %strong= t('gateways.show.password') + ":"
+ %td
+ = status['password']
+ %tr
+ %td
+ %strong= t('gateways.show.realm') + ":"
+ %td
+ = status['realm']
+ %tr
+ %td
+ %strong= t('gateways.show.contact') + ":"
+ %td
+ = status['contact']
+ %tr
+ %td
+ %strong= t('gateways.show.from') + ":"
+ %td
+ = status['from']
+ %tr
+ %td
+ %strong= t('gateways.show.to') + ":"
+ %td
+ = status['to']
+ %tr
+ %td
+ %strong= t('gateways.show.proxy') + ":"
+ %td
+ = status['proxy']
+ - registration = @gateway.inbound_register
+ - if !registration.blank?
+ %tr
+ %td
+ %strong= t('gateways.show.inbound_register_status') + ":"
+ %td
+ = registration.status
+ %tr
+ %td
+ %strong= t('gateways.show.inbound_register_contact') + ":"
+ %td
+ = registration.contact
+ %tr
+ %td
+ %strong= t('gateways.show.inbound_register_user_agent') + ":"
+ %td
+ = registration.user_agent
+ %tr
+ %td
+ %strong= t('gateways.show.inbound_register_network') + ":"
+ %td
+ = "#{registration.network_ip}:#{registration.network_port}"
+
= render :partial => 'shared/show_edit_destroy_part', :locals => { :child => @gateway }