blob: f6d8cf98c65452d2d689079ee7eb2a2478641f4b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
!!! XML
%html
%head
%title= @sip_account.caller_name
%body
- phone_numbers = @sip_account.phone_numbers.order(:position)
- if phone_numbers[0]
%strong= phone_numbers[0].number
- else
%strong= sip_account.to_s
- if phone_numbers[1]
%strong= phone_numbers[1].number
- if phone_numbers[2]
%strong= phone_numbers[2].number
- if phone_numbers[3]
%strong ...
- call = @sip_account.call_histories.where(:entry_type => 'missed').order('start_stamp DESC').first
%p
Missed:
%br= "#{call.start_stamp.strftime('%d.%m %H:%M')} #{call.display_name} #{call.display_number}"
|