2016-11-16 06:09:09 -05:00
|
|
|
- project = local_assigns.fetch(:project)
|
2017-05-03 11:26:49 -04:00
|
|
|
- model = local_assigns.fetch(:model)
|
|
|
|
|
2016-11-15 12:28:14 -05:00
|
|
|
- form = local_assigns.fetch(:form)
|
2017-05-31 01:50:53 -04:00
|
|
|
- supports_quick_actions = model.new_record?
|
2016-11-16 06:09:09 -05:00
|
|
|
|
2017-05-31 01:50:53 -04:00
|
|
|
- if supports_quick_actions
|
|
|
|
- preview_url = preview_markdown_path(project, quick_actions_target_type: model.class.name)
|
2016-11-16 06:09:09 -05:00
|
|
|
- else
|
|
|
|
- preview_url = preview_markdown_path(project)
|
2016-11-15 12:28:14 -05:00
|
|
|
|
|
|
|
.form-group.detail-page-description
|
|
|
|
= form.label :description, 'Description', class: 'control-label'
|
|
|
|
.col-sm-10
|
|
|
|
|
2016-11-16 06:09:09 -05:00
|
|
|
= render layout: 'projects/md_preview', locals: { url: preview_url, referenced_users: true } do
|
2016-11-15 12:28:14 -05:00
|
|
|
= render 'projects/zen', f: form, attr: :description,
|
|
|
|
classes: 'note-textarea',
|
|
|
|
placeholder: "Write a comment or drag your files here...",
|
2017-05-31 01:50:53 -04:00
|
|
|
supports_quick_actions: supports_quick_actions
|
|
|
|
= render 'shared/notes/hints', supports_quick_actions: supports_quick_actions
|
2016-11-15 12:28:14 -05:00
|
|
|
.clearfix
|
|
|
|
.error-alert
|