summaryrefslogtreecommitdiff
path: root/app/views/phones
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-22 23:46:57 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-22 23:46:57 +0100
commit7c842dd79b3ac4a8bd462ef80ee1e27f5e74e4d3 (patch)
tree84e5874864302c955575a753e0755bf97a91bf0b /app/views/phones
parentf64e0935ea0b31230d1a18a27dfb5993a6e9ff02 (diff)
Optimized views for phones.
Diffstat (limited to 'app/views/phones')
-rw-r--r--app/views/phones/_index_core.html.haml18
1 files changed, 14 insertions, 4 deletions
diff --git a/app/views/phones/_index_core.html.haml b/app/views/phones/_index_core.html.haml
index b8efbe3..fa1c679 100644
--- a/app/views/phones/_index_core.html.haml
+++ b/app/views/phones/_index_core.html.haml
@@ -2,15 +2,25 @@
%thead
%tr
%th= t('phones.index.mac_address')
- %th= t('phones.index.phone_model_id')
- %th= t('phones.index.hot_deskable')
- %th= t('phones.index.ip_address')
+ %th
+ %span.hidden-phone
+ = t('phones.index.phone_model_id')
+ %span.visible-phone
+ = truncate(t('phones.index.phone_model_id'), :length => 9)
+ %th
+ %span.hidden-phone
+ = t('phones.index.hot_deskable')
+ %th
+ %span.hidden-phone
+ = t('phones.index.ip_address')
%tbody
- for phone in phones
%tr
%td= phone.pretty_mac_address
%td= phone.phone_model
- %td= phone.hot_deskable
+ %td
+ %span.hidden-phone
+ = phone.hot_deskable
%td= phone.ip_address
=render :partial => 'shared/index_view_edit_destroy_part', :locals => {:parent => phone.phoneable, :child => phone} \ No newline at end of file