Fix display of volunteer events

This commit is contained in:
Michael Ball 2020-07-27 00:23:56 -07:00
parent d1b2ad3528
commit 13d78c2609
3 changed files with 13 additions and 12 deletions

View file

@ -70,9 +70,6 @@
%span{ title: event.state.humanize, class: "fa #{status_icon(event)}" }
%td.col-md-7{style: "padding:20px 8px 20px 8px;"}
- if event.volunteers.include?(current_user)
%strong You are volunteer host for:
%br
= link_to event.title, conference_program_proposal_path(@conference.short_title, event.id)
%br
%small.text-muted
@ -117,12 +114,15 @@
= link_to 'Edit', edit_conference_program_proposal_path(@conference.short_title, event.id),
class: 'btn btn-default', id: "edit_proposal_#{event.id}"
- if @volunteer_events.any?
%h2
Volunteer Events
%small
Thanks for being a host at #{@conference.title}
= render 'volunteers_table', events: @volunteer_events
- if @volunteer_events.any?
.row
.col-md-12
%h2
Volunteer Duties
%small
Thanks for being a host at #{@conference.title}
= render 'volunteers_table', events: @volunteer_events
.row
.col-md-12
- if can? :create, @event