summaryrefslogtreecommitdiff
path: root/app/views/phones/_index_core.html.haml
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-06-13 11:21:32 +0200
committerPeter Kozak <spag@golwen.net>2013-06-13 11:21:32 +0200
commit23b112aee1979033c58735b1a028cd92210cec09 (patch)
treeb13248aa95387603620e5403ccc6c5da00c09100 /app/views/phones/_index_core.html.haml
parent525aaf6dcb5bafe5a949a078dee6abb24d87e2a5 (diff)
display tenant and user phones combined
Diffstat (limited to 'app/views/phones/_index_core.html.haml')
-rw-r--r--app/views/phones/_index_core.html.haml5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/views/phones/_index_core.html.haml b/app/views/phones/_index_core.html.haml
index a77395c..175aeb0 100644
--- a/app/views/phones/_index_core.html.haml
+++ b/app/views/phones/_index_core.html.haml
@@ -4,6 +4,8 @@
%table.table.table-striped
%thead
%tr
+ - if defined?(show_phoneable) && show_phoneable
+ %th= sortable :phoneable_id, t('phones.index.phoneable')
%th= sortable :mac_address, t('phones.index.mac_address')
%th
%span.hidden-phone
@@ -20,6 +22,9 @@
%tbody
- for phone in phones
%tr{:class => (phone.ip_address.blank? ? 'warning' : '')}
+ - if defined?(show_phoneable) && show_phoneable
+ %td
+ = phone.phoneable
%td= phone.pretty_mac_address
%td= phone.phone_model
%td