summaryrefslogtreecommitdiff
path: root/app/views/conferences
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-23 00:20:38 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-23 00:20:38 +0100
commitde2369863c8cb0d2ea61a236f869d91dd0cce3af (patch)
tree4fe70f5f3d909fab8fb68a013a27064627b92d6f /app/views/conferences
parent2bdfc8b1905d5069ded392c5ca377c59289278d9 (diff)
Optimized UI (for the use on mobile phones).
Diffstat (limited to 'app/views/conferences')
-rw-r--r--app/views/conferences/_index_core.html.haml43
1 files changed, 27 insertions, 16 deletions
diff --git a/app/views/conferences/_index_core.html.haml b/app/views/conferences/_index_core.html.haml
index bd305df..8670418 100644
--- a/app/views/conferences/_index_core.html.haml
+++ b/app/views/conferences/_index_core.html.haml
@@ -5,12 +5,20 @@
- if !conferences.respond_to?('where') || conferences.where(:start => nil).where(:end => nil).count != conferences.count
%th= t('conferences.index.start')
%th= t('conferences.index.end')
- %th= t('conferences.index.phone_numbers')
+ %th
+ %span.hidden-phone
+ = t('conferences.index.phone_numbers')
- if !conferences.respond_to?('where') || conferences.where(:pin => '').count != conferences.count
%th= t('conferences.index.pin')
- %th= t('conferences.index.max_members')
- %th= t('conferences.index.number_of_invitees')
- %th= t('conferences.index.flags')
+ %th
+ %span.hidden-phone
+ = t('conferences.index.max_members')
+ %th
+ %span.hidden-phone
+ = t('conferences.index.number_of_invitees')
+ %th
+ %span.hidden-phone
+ = t('conferences.index.flags')
%tbody
- for conference in conferences
@@ -29,10 +37,8 @@
- else
= '-'
%td
- - if conference.phone_numbers.count > 0
+ - if conference.phone_numbers.any?
= render 'phone_numbers/listing', :phone_numbers => conference.phone_numbers.order(:number)
- %br
- = render :partial => 'shared/create_link', :locals => {:parent => conference, :child_class => PhoneNumber, :short_link => true}
- if !conferences.respond_to?('where') || conferences.where(:pin => '').count != conferences.count
%td
@@ -40,15 +46,20 @@
= conference.pin
- else
= '-'
- %td= conference.max_members
- %td= conference.conference_invitees.count
%td
- %ul
- - if conference.open_for_anybody
- %li= t('conferences.index.open_for_anybody')
- - if conference.announce_new_member_by_name
- %li= t('conferences.index.announce_new_member_by_name')
- - if conference.announce_left_member_by_name
- %li= t('conferences.index.announce_left_member_by_name')
+ %span.hidden-phone
+ = conference.max_members
+ %td
+ %span.hidden-phone
+ = conference.conference_invitees.count
+ %td
+ %span.hidden-phone
+ %ul
+ - if conference.open_for_anybody
+ %li= t('conferences.index.open_for_anybody')
+ - if conference.announce_new_member_by_name
+ %li= t('conferences.index.announce_new_member_by_name')
+ - if conference.announce_left_member_by_name
+ %li= t('conferences.index.announce_left_member_by_name')
=render :partial => 'shared/index_view_edit_destroy_part', :locals => {:parent => parent, :child => conference} \ No newline at end of file