Drop Organization Feature

This commit is contained in:
Henne Vogelsang 2024-06-07 16:19:29 +02:00
parent dc1a6a4363
commit 275be8c80a
No known key found for this signature in database
GPG key ID: 97DDB66BDAF8D4D6
28 changed files with 22 additions and 402 deletions

View file

@ -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

View file

@ -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'

View file

@ -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