summaryrefslogtreecommitdiff
path: root/app/views/conferences/_index_core.html.haml
blob: 18ef6b07fb2faccbf094974e052235ab4800e1ef (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
%table.table.table-striped
  %thead
    %tr
      %th= t('conferences.index.name')
      %th
        %span.hidden-phone
          = t('conferences.index.phone_numbers')
      %th
        %span.hidden-phone
          = t('conferences.index.flags')

  %tbody
    - for conference in conferences
      - parent = conference.conferenceable
      %tr
        %td
          %span.hidden-phone
            = conference.name
          %span.visible-phone
            = truncate(conference.name, :length => 8)
        %td
          - if conference.phone_numbers.any?
            = render 'phone_numbers/listing', :phone_numbers => conference.phone_numbers.order(:number)

        %td
          - if !conferences.respond_to?('where') || conferences.where(:pin => '').count != conferences.count
            - if !conference.pin.blank?
              %span.label.label-info
                = "PIN: #{conference.pin}"

          %span.hidden-phone
            - if conference.open_for_anybody
              %span.label
                = t('conferences.index.open_for_anybody')
            - if conference.announce_new_member_by_name
              %span.label
                = t('conferences.index.announce_new_member_by_name')
            - if conference.announce_left_member_by_name
              %span.label
                = t('conferences.index.announce_left_member_by_name')

        =render :partial => 'shared/index_view_edit_destroy_part', :locals => {:parent => parent, :child => conference}