summaryrefslogtreecommitdiff
path: root/app/views/users
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-02-25 18:03:42 -0500
committerPeter Kozak <spag@golwen.net>2013-02-25 18:03:42 -0500
commit387ce8f6694b41ab73d264190ce41dcd13484ede (patch)
tree5d7e399a6d5975f9e70f4540f9675efa0d184ce9 /app/views/users
parentcf89633baaa6e9bc901c2cc630ed2c94296109f1 (diff)
icons
Diffstat (limited to 'app/views/users')
-rw-r--r--app/views/users/show.html.haml16
1 files changed, 12 insertions, 4 deletions
diff --git a/app/views/users/show.html.haml b/app/views/users/show.html.haml
index d3b1cf3..8148005 100644
--- a/app/views/users/show.html.haml
+++ b/app/views/users/show.html.haml
@@ -29,10 +29,18 @@
= render :partial => 'shared/show_edit_destroy_part', :locals => { :parent => @tenant, :child => @user }
- @user.sip_accounts.each do |sip_account|
- - phone_number = sip_account.phone_numbers.order(:number).last
- - if phone_number && !phone_number.number.blank? && phone_number.number[0] != '+'
- %p
- %strong= sip_account.phone_numbers.order(:number).last.number
+ - phone_numbers = sip_account.phone_numbers.order(:position)
+ %p
+ - 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 ...
%p
=link_to t("call_histories.index.page_title"), sip_account_call_histories_path(sip_account)
%br