summaryrefslogtreecommitdiff
path: root/app/views/switchboards/_current_user_dashboard.html.haml
blob: 1c57a0d1fd4656af2b3ab52995104a61c00bd5dc (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
.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