diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2012-12-22 12:32:36 +0100 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2012-12-22 12:32:36 +0100 |
commit | bc4e559c08616de312906903a1c89eb74d09ffd7 (patch) | |
tree | 49695b7ea1d4c207f3fc9ea56ada0d35086a5334 /app/views/acd_agents/show.html.haml | |
parent | 77a3c41cbb7edb93dcc98b7ae18a1b58e0d2d2ef (diff) |
GUI improvement for new acd agents.
Diffstat (limited to 'app/views/acd_agents/show.html.haml')
-rw-r--r-- | app/views/acd_agents/show.html.haml | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/app/views/acd_agents/show.html.haml b/app/views/acd_agents/show.html.haml index 97881f6..0c90f4b 100644 --- a/app/views/acd_agents/show.html.haml +++ b/app/views/acd_agents/show.html.haml @@ -1,9 +1,6 @@ - title t("acd_agents.show.page_title") %p - %strong= t('acd_agents.show.uuid') + ":" - = @acd_agent.uuid -%p %strong= t('acd_agents.show.name') + ":" = @acd_agent.name %p @@ -18,11 +15,16 @@ %p %strong= t('acd_agents.show.calls_answered') + ":" = @acd_agent.calls_answered -%p - %strong= t('acd_agents.show.destination_type') + ":" - = @acd_agent.destination_type -%p - %strong= t('acd_agents.show.destination_id') + ":" - = @acd_agent.destination_id +- 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 }
\ No newline at end of file |