Include code of conduct on conference
This commit is contained in:
parent
217ec1a46f
commit
95196c7f80
5 changed files with 47 additions and 1 deletions
20
app/views/conferences/_code_of_conduct.haml
Normal file
20
app/views/conferences/_code_of_conduct.haml
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
= content_for :splash_nav do
|
||||
%li
|
||||
= link_to 'Code of Conduct', '#',
|
||||
data: { toggle: 'modal', target: '#modal-code-of-conduct'}
|
||||
|
||||
- content_for :modals do
|
||||
- cache [organization, '#CoC-modal'] do
|
||||
.modal.fade{ id: "modal-code-of-conduct" }
|
||||
.modal-dialog
|
||||
.modal-content
|
||||
.modal-header
|
||||
%button.close{ data: { dismiss: 'modal' } }
|
||||
%i.fa.fa-close
|
||||
%h3.modal-title Code of Conduct
|
||||
.modal-body
|
||||
= markdown organization.code_of_conduct
|
||||
.modal-footer
|
||||
= link_to 'permalink',
|
||||
[:code_of_conduct, organization],
|
||||
target: '_blank'
|
||||
Loading…
Add table
Add a link
Reference in a new issue