2016-10-13 03:34:35 -04:00
|
|
|
- @gfm_form = true
|
2017-05-07 22:20:37 -04:00
|
|
|
- current_text ||= nil
|
2017-06-12 15:42:12 -04:00
|
|
|
- supports_autocomplete = local_assigns.fetch(:supports_autocomplete, true)
|
2017-05-31 01:50:53 -04:00
|
|
|
- supports_quick_actions = local_assigns.fetch(:supports_quick_actions, false)
|
2020-02-18 04:09:24 -05:00
|
|
|
- qa_selector = local_assigns.fetch(:qa_selector, '')
|
2021-01-08 13:10:43 -05:00
|
|
|
- autofocus = local_assigns.fetch(:autofocus, false)
|
2016-03-30 05:00:43 -04:00
|
|
|
.zen-backdrop
|
|
|
|
- classes << ' js-gfm-input js-autosize markdown-area'
|
|
|
|
- if defined?(f) && f
|
2017-06-12 15:42:12 -04:00
|
|
|
= f.text_area attr,
|
|
|
|
class: classes,
|
|
|
|
placeholder: placeholder,
|
2019-04-25 07:40:34 -04:00
|
|
|
dir: 'auto',
|
2017-06-12 15:42:12 -04:00
|
|
|
data: { supports_quick_actions: supports_quick_actions,
|
2020-02-18 04:09:24 -05:00
|
|
|
supports_autocomplete: supports_autocomplete,
|
2021-01-08 13:10:43 -05:00
|
|
|
qa_selector: qa_selector,
|
|
|
|
autofocus: autofocus }
|
2016-03-30 05:00:43 -04:00
|
|
|
- else
|
2020-06-22 05:08:42 -04:00
|
|
|
= text_area_tag attr, current_text, data: { qa_selector: qa_selector }, class: classes, placeholder: placeholder
|
2020-08-17 17:09:56 -04:00
|
|
|
%a.zen-control.zen-control-leave.js-zen-leave.gl-text-gray-500{ href: "#" }
|
2020-08-20 08:10:27 -04:00
|
|
|
= sprite_icon('minimize')
|