summaryrefslogtreecommitdiff
path: root/app/views/call_forwards/show.html.haml
blob: 9f9d27a3a787c5b24ff5d0c1d51044d19a12f273 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
- content_for :title, t("call_forwards.show.page_title")

%p
  %strong= t('call_forwards.show.call_forwardable') + ":"
  = "#{@call_forward.call_forwardable_type}: #{@call_forward.call_forwardable}"
%p
  %strong= t('call_forwards.show.call_forward_case') + ":"
  = t("call_forward_cases.#{@call_forward.call_forward_case.value}") 
%p
  %strong= t('call_forwards.show.timeout') + ":"
  = @call_forward.timeout
%p
  %strong= t('call_forwards.show.destination') + ":"
  - if @call_forward.destinationable_id && @call_forward.destinationable
    = "#{@call_forward.destinationable_type}: #{@call_forward.destinationable}"
  - elsif !@call_forward.destinationable_type.blank?
    = "#{@call_forward.destinationable_type}: #{@call_forward.destination}"
  - else
    = @call_forward.destination

%p
  %strong= t('call_forwards.show.source') + ":"
  = @call_forward.source
%p
  %strong= t('call_forwards.show.depth') + ":"
  = @call_forward.depth
%p
  %strong= t('call_forwards.show.active') + ":"
  = @call_forward.active

= render :partial => 'shared/show_edit_destroy_part', :locals => { :parent => @parent, :child => @call_forward }