summaryrefslogtreecommitdiff
path: root/app/views/conferences/show.html.haml
blob: fcebb88fb76cc2a33726d401dda191a09525cd8f (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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
- content_for :title, t("conferences.show.page_title")

%table.table.table-striped
  %tbody
    %tr
      %td
        %strong= t('conferences.show.name') + ":"
      %td
        = @conference.name
    - if @conference.start
      %tr
        %td
          %strong= t('conferences.show.start') + ":"
        %td
          = @conference.start
      %tr
        %td
          %strong= t('conferences.show.end') + ":"
        %td
          = @conference.end
    - if !@conference.description.blank?
      %tr
        %td
          %strong= t('conferences.show.description') + ":"
        %td
          = @conference.description
    - if !@conference.pin.blank?
      %tr
        %td
          %strong= t('conferences.show.pin') + ":"
        %td
          = @conference.pin
    %tr
      %td
        %strong= t('conferences.show.open_for_anybody') + ":"
      %td
        = @conference.open_for_anybody
    %tr
      %td
        %strong= t('conferences.show.announce_new_member_by_name') + ":"
      %td
        = @conference.announce_new_member_by_name
    %tr
      %td
        %strong= t('conferences.show.announce_left_member_by_name') + ":"
      %td
        = @conference.announce_left_member_by_name
    - conference_data = @conference.list_conference
    - if conference_data
      %tr
        %td
          %strong= t('conferences.show.identifier') + ":"
        %td
          = conference_data['name']
      %tr
        %td
          %strong= t('conferences.show.member_count') + ":"
        %td
          = conference_data['member_count']
      %tr
        %td
          %strong= t('conferences.show.run_time') + ":"
        %td
          = conference_data['run_time']


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

%h2= t('phone_numbers.index.page_title')
- if @phone_numbers.count > 0
  = render "phone_numbers/index_core", :phone_numbers => @phone_numbers

= render :partial => 'shared/create_link', :locals => {:parent => @conference, :child_class => PhoneNumber}

- members = @conference.list_members(conference_data)
- if members && members.count > 0
  %h2= t("conferences.show.members")
  = render "index_members", :members => members

%h2= t("conference_invitees.index.page_title")
- if @conference.conference_invitees.count > 0
  = render "conference_invitees/index_core", :conference_invitees => @conference.conference_invitees

= render :partial => 'shared/create_link', :locals => {:parent => @conference, :child_class => ConferenceInvitee}