Include code of conduct on conference

This commit is contained in:
James Mason 2018-03-16 12:49:00 -07:00 committed by Ana María Martínez Gómez
parent 217ec1a46f
commit 95196c7f80
5 changed files with 47 additions and 1 deletions

View file

@ -1,4 +1,4 @@
.row
.row{ id: "conference-#{conference.id}" }
.col-md-12
.well
.row
@ -23,6 +23,10 @@
= link_to "View Conference", conference_path(conference.short_title), class: 'btn btn-default'
- if conference.program and conference.program.schedule_public
= link_to "Schedule", conference_schedule_path(conference.short_title), class: 'btn btn-default'
- unless conference.code_of_conduct.blank?
= link_to "Code of Conduct",
[:code_of_conduct, conference.organization],
class: 'btn btn-default'
- if conference.registration_open?
- if conference.user_registered?(current_user)
= link_to "My Registration", conference_conference_registration_path(conference.short_title), class: 'btn btn-default'