Drop Organization Feature
This commit is contained in:
parent
dc1a6a4363
commit
275be8c80a
28 changed files with 22 additions and 402 deletions
|
|
@ -4,7 +4,7 @@
|
|||
data: { toggle: 'modal', target: '#modal-code-of-conduct'}
|
||||
|
||||
- content_for :modals do
|
||||
- cache [organization, '#CoC-modal'] do
|
||||
- cache '#CoC-modal' do
|
||||
.modal.fade{ id: "modal-code-of-conduct" }
|
||||
.modal-dialog
|
||||
.modal-content
|
||||
|
|
@ -13,8 +13,6 @@
|
|||
%i.fa-solid.fa-xmark
|
||||
%h3.modal-title Code of Conduct
|
||||
.modal-body
|
||||
= markdown organization.code_of_conduct
|
||||
= markdown conference.code_of_conduct
|
||||
.modal-footer
|
||||
= link_to 'permalink',
|
||||
[:code_of_conduct, organization],
|
||||
target: '_blank'
|
||||
= link_to 'permalink', :code_of_conduct
|
||||
|
|
|
|||
|
|
@ -27,9 +27,7 @@
|
|||
- 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'
|
||||
= link_to "Code of Conduct", :code_of_conduct, 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'
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
|
||||
#splash
|
||||
- if @conference.code_of_conduct.present?
|
||||
= render 'code_of_conduct', organization: @conference.organization
|
||||
= render 'code_of_conduct'
|
||||
|
||||
-# header/description
|
||||
= render 'header', conference: @conference, venue: @conference.venue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue