summaryrefslogtreecommitdiff
path: root/app/views/callthroughs/show.html.haml
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2012-12-17 12:05:14 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2012-12-17 12:05:14 +0100
commiteaad37485fe59d0306c37cc038dda6d210052910 (patch)
tree072c4b0e33d442528555b82c415f5e7a1712b2b0 /app/views/callthroughs/show.html.haml
parent3e706c2025ecc5523e81ad649639ef2ff75e7bac (diff)
parentb80bd744ad873f6fc43018bc4bfb90677de167bd (diff)
Merge branch 'develop'
Diffstat (limited to 'app/views/callthroughs/show.html.haml')
-rw-r--r--app/views/callthroughs/show.html.haml27
1 files changed, 27 insertions, 0 deletions
diff --git a/app/views/callthroughs/show.html.haml b/app/views/callthroughs/show.html.haml
new file mode 100644
index 0000000..55bd6eb
--- /dev/null
+++ b/app/views/callthroughs/show.html.haml
@@ -0,0 +1,27 @@
+- title t("callthroughs.show.page_title")
+
+%p
+ %strong= t('callthroughs.show.name') + ":"
+ = @callthrough.name
+
+= render :partial => 'shared/show_edit_destroy_part', :locals => { :parent => @callthrough.tenant, :child => @callthrough }
+
+
+%h2= t('callthroughs.form.phone_numbers.label')
+- if @callthrough.phone_numbers.count > 0
+ = render 'phone_numbers/index_core', :phone_numbers => @callthrough.phone_numbers
+ %br
+= render :partial => 'shared/create_link', :locals => {:parent => @callthrough, :child_class => PhoneNumber}
+
+%h2= t('callthroughs.form.access_authorizations.label')
+- if @callthrough.access_authorizations.count > 0
+ = render 'access_authorizations/index_core', :access_authorizations => @callthrough.access_authorizations
+ %br
+= render :partial => 'shared/create_link', :locals => {:parent => @callthrough, :child_class => AccessAuthorization}
+
+- if CALLTHROUGH_HAS_WHITELISTS == true
+ %h2= t('callthroughs.form.whitelists.label')
+ - if @callthrough.whitelisted_phone_numbers.count > 0
+ = render 'whitelists/index_core', :whitelists => @callthrough.whitelists
+ %br
+ = render :partial => 'shared/create_link', :locals => {:parent => @callthrough, :child_class => Whitelist} \ No newline at end of file