diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-03-14 21:34:06 +0100 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-03-14 21:34:06 +0100 |
commit | 0b4e3dfd031b21c26f7bc9c7c05cd931950ecbd6 (patch) | |
tree | ca1e9ed8e63057e0310cf8e8c21e94dc699da64e /app/views/switchboards | |
parent | 3a0ea10cdd6084a8beb235f5c1573c22a5d733f0 (diff) |
Switchboard stuff
Diffstat (limited to 'app/views/switchboards')
-rw-r--r-- | app/views/switchboards/_current_user_dashboard.html.haml | 35 |
1 files changed, 21 insertions, 14 deletions
diff --git a/app/views/switchboards/_current_user_dashboard.html.haml b/app/views/switchboards/_current_user_dashboard.html.haml index 1c57a0d..8dd75b9 100644 --- a/app/views/switchboards/_current_user_dashboard.html.haml +++ b/app/views/switchboards/_current_user_dashboard.html.haml @@ -4,23 +4,30 @@ %thead %tr %td - SIP Account - %td - Direction - %td - StartStamp %td Destination %td - CalleeName + Start + %td{:span => '2'} + Caller %tbody - - sip_account.calls.each do |call| + - sip_account.call_legs.where(callstate: 'RINGING').each do |call_leg| + %tr.warning + %td + %i.icon-bell + %td + %span.label.label-info + =sip_account.phone_numbers.first.to_s + %td=l Time.at(call_leg.start_stamp) + %td=call_leg.callee_name + %td=call_leg.callee_number + + - sip_account.b_call_legs.where(direction: 'inbound').each do |call_leg| %tr %td - - current_user.sip_accounts.each do |sip_account| - %span.label.label-info - =sip_account.phone_numbers.first.to_s - %td=call.direction - %td=l Time.at(call.start_stamp) - %td=call.destination - %td=call.callee_name
\ No newline at end of file + %td + %span.label.label-info + =sip_account.phone_numbers.first.to_s + %td=l Time.at(call_leg.start_stamp) + %td=call_leg.b_caller_id_name + %td=call_leg.b_caller_id_number |