summaryrefslogtreecommitdiff
path: root/app/views/sip_accounts/_index_core.html.haml
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-22 15:33:06 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-22 15:33:06 +0100
commit39aa7132ceed3d4beab3a9b828e571bbfc67c07e (patch)
tree6c88289c9f99be0af8635636fcdf64102090e5ec /app/views/sip_accounts/_index_core.html.haml
parent5ad8203ce4f1bfea997960d0b52c626dea24b944 (diff)
parent6f69c1a85055ec7c2515719d79d2a7a4e60cec50 (diff)
Merge branch 'develop'5.1-beta1
Diffstat (limited to 'app/views/sip_accounts/_index_core.html.haml')
-rw-r--r--app/views/sip_accounts/_index_core.html.haml14
1 files changed, 6 insertions, 8 deletions
diff --git a/app/views/sip_accounts/_index_core.html.haml b/app/views/sip_accounts/_index_core.html.haml
index 69c9302..8d9791d 100644
--- a/app/views/sip_accounts/_index_core.html.haml
+++ b/app/views/sip_accounts/_index_core.html.haml
@@ -1,26 +1,24 @@
-%table
+%table{:class => 'table table-striped'}
%tr
%th= t('sip_accounts.index.online')
%th= t('sip_accounts.index.caller_name')
%th= t('sip_accounts.index.phone_numbers')
%th= t('phones.name')
-
- - reset_cycle
+ %th{:colspan => '3'}
+
- for sip_account in sip_accounts
- %tr{:class => cycle('odd', 'even')}
+ %tr
%td
- if sip_account.registration
- =image_tag 'icons/phone-down-green-32x.png'
+ %i.icon-ok
- else
- =image_tag 'icons/phone-down-grey-32x.png'
+ %i.icon-thumbs-down
%td
= sip_account.caller_name
- phone_numbers = sip_account.phone_numbers
%td
- if sip_account.phone_numbers.count > 0
= render 'phone_numbers/listing', :phone_numbers => sip_account.phone_numbers.order(:number)
- %br
- = render :partial => 'shared/create_link', :locals => {:parent => sip_account, :child_class => PhoneNumber, :short_link => true}
%td
- sip_account.phones.each do |phone|