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
|
|
|
|
2018-04-12 16:11:22 -04:00
|
|
|
.form-group.row.detail-page-description
|
2018-04-11 15:36:17 -04:00
|
|
|
= form.label :description, 'Description', class: 'col-form-label'
|
2016-11-15 12:28:14 -05:00
|
|
|
.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,
|
2017-12-15 11:59:35 -05:00
|
|
|
classes: 'note-textarea qa-issuable-form-description',
|
2016-11-15 12:28:14 -05:00
|
|
|
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
|