blob: 86704187c74a428b757c18784bb500353241726e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
%table{:class => 'table table-striped'}
%thead
%tr
%th= t('conferences.index.name')
- 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
%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
%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
- parent = conference.conferenceable
%tr
%td= conference.name
- if !conferences.respond_to?('where') || conferences.where(:start => nil).where(:end => nil).count != conferences.count
%td
- if conference.start
= l conference.start, :format => :long
- else
= '-'
%td
- if conference.end
= l conference.end, :format => :long
- else
= '-'
%td
- if conference.phone_numbers.any?
= render 'phone_numbers/listing', :phone_numbers => conference.phone_numbers.order(:number)
- if !conferences.respond_to?('where') || conferences.where(:pin => '').count != conferences.count
%td
- if !conference.pin.blank?
= conference.pin
- else
= '-'
%td
%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}
|