diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-03-14 20:21:59 +0100 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-03-14 20:21:59 +0100 |
commit | 3a0ea10cdd6084a8beb235f5c1573c22a5d733f0 (patch) | |
tree | b46f34f8b88593af3bdcc164a563614d2dd41969 /app/views/switchboards/_current_user_dashboard.html.haml | |
parent | f476fb7648fd235642233b2bbe5bb90cb57e8549 (diff) |
Added a dashboard for Switchboard.
Diffstat (limited to 'app/views/switchboards/_current_user_dashboard.html.haml')
-rw-r--r-- | app/views/switchboards/_current_user_dashboard.html.haml | 26 |
1 files changed, 26 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..1c57a0d --- /dev/null +++ b/app/views/switchboards/_current_user_dashboard.html.haml @@ -0,0 +1,26 @@ +.dashboard + - current_user.sip_accounts.each do |sip_account| + %table.table.table-striped + %thead + %tr + %td + SIP Account + %td + Direction + %td + StartStamp + %td + Destination + %td + CalleeName + %tbody + - sip_account.calls.each do |call| + %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 |