transferred Code Ocean from original repository to GitHub
This commit is contained in:
14
app/views/shared/_modal.html.slim
Normal file
14
app/views/shared/_modal.html.slim
Normal file
@@ -0,0 +1,14 @@
|
||||
.fade.modal aria-hidden=true aria-labelledby='modal-title' id=id role='dialog' tabindex=-1
|
||||
.modal-dialog class=local_assigns[:classes]
|
||||
.modal-content
|
||||
.modal-header
|
||||
button.close data-dismiss='modal' type='button'
|
||||
span aria-hidden=true ×
|
||||
span.sr-only Close
|
||||
h4#modal-title.modal-title = title
|
||||
.modal-body
|
||||
- if local_assigns.has_key?(:body)
|
||||
= body
|
||||
- else
|
||||
= render(layout: false, locals: (local_assigns[:template_variables] || {}).merge(modal: true), template: template)
|
||||
.modal-footer
|
Reference in New Issue
Block a user