summaryrefslogtreecommitdiff
path: root/app/views/switchboards/_current_user_dashboard.html.haml
diff options
context:
space:
mode:
authorJulian Pawlowski <julian.pawlowski@gmail.com>2013-03-14 22:22:16 +0100
committerJulian Pawlowski <julian.pawlowski@gmail.com>2013-03-14 22:22:16 +0100
commitebd0aa9c41f8ca6cf7de25c282efa759d7a1e273 (patch)
treeaffbe1fd88dd6bd8115593b91717d8d157d77b16 /app/views/switchboards/_current_user_dashboard.html.haml
parent4b96a024bf77d96220ff06b3074556fbfa41bd7d (diff)
parent5ed3837a8688e46a33d3ad3b0eb0343eb1a5ba85 (diff)
Merge branch 'develop' of https://github.com/amooma/GS5 into develop
Diffstat (limited to 'app/views/switchboards/_current_user_dashboard.html.haml')
-rw-r--r--app/views/switchboards/_current_user_dashboard.html.haml33
1 files changed, 33 insertions, 0 deletions
diff --git a/app/views/switchboards/_current_user_dashboard.html.haml b/app/views/switchboards/_current_user_dashboard.html.haml
new file mode 100644
index 0000000..8dd75b9
--- /dev/null
+++ b/app/views/switchboards/_current_user_dashboard.html.haml
@@ -0,0 +1,33 @@
+.dashboard
+ - current_user.sip_accounts.each do |sip_account|
+ %table.table.table-striped
+ %thead
+ %tr
+ %td
+ %td
+ Destination
+ %td
+ Start
+ %td{:span => '2'}
+ Caller
+ %tbody
+ - 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
+ %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