summaryrefslogtreecommitdiff
path: root/app/views/acd_agents/show.html.haml
blob: 0c90f4b316a3298209dad4cd63d18777db2839df (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
- title t("acd_agents.show.page_title")

%p
  %strong= t('acd_agents.show.name') + ":"
  = @acd_agent.name
%p
  %strong= t('acd_agents.show.status') + ":"
  = @acd_agent.status
%p
  %strong= t('acd_agents.show.automatic_call_distributor_id') + ":"
  = @acd_agent.automatic_call_distributor_id
%p
  %strong= t('acd_agents.show.last_call') + ":"
  = @acd_agent.last_call
%p
  %strong= t('acd_agents.show.calls_answered') + ":"
  = @acd_agent.calls_answered
- if @acd_agent.destination_type == 'SipAccount'
  %p
    %strong= t('acd_agents.index.destination') + ":"
    = SipAccount.where(:id => @acd_agent.destination_id).first.try(:to_s)  
- else
  %p
    %strong= t('acd_agents.show.destination_type') + ":"
    = @acd_agent.destination_type
  %p
    %strong= t('acd_agents.show.destination_id') + ":"
    = @acd_agent.destination_id

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