2016-11-03 12:29:30 +05:30
|
|
|
- @gfm_form = true
|
2017-09-10 17:25:29 +05:30
|
|
|
- current_text ||= nil
|
|
|
|
- supports_autocomplete = local_assigns.fetch(:supports_autocomplete, true)
|
|
|
|
- supports_quick_actions = local_assigns.fetch(:supports_quick_actions, false)
|
2020-03-13 15:44:24 +05:30
|
|
|
- qa_selector = local_assigns.fetch(:qa_selector, '')
|
2016-06-02 11:05:42 +05:30
|
|
|
.zen-backdrop
|
|
|
|
- classes << ' js-gfm-input js-autosize markdown-area'
|
|
|
|
- if defined?(f) && f
|
2017-09-10 17:25:29 +05:30
|
|
|
= f.text_area attr,
|
|
|
|
class: classes,
|
|
|
|
placeholder: placeholder,
|
2019-07-31 22:56:46 +05:30
|
|
|
dir: 'auto',
|
2017-09-10 17:25:29 +05:30
|
|
|
data: { supports_quick_actions: supports_quick_actions,
|
2020-03-13 15:44:24 +05:30
|
|
|
supports_autocomplete: supports_autocomplete,
|
|
|
|
qa_selector: qa_selector }
|
2016-06-02 11:05:42 +05:30
|
|
|
- else
|
2020-07-28 23:09:34 +05:30
|
|
|
= text_area_tag attr, current_text, data: { qa_selector: qa_selector }, class: classes, placeholder: placeholder
|
2020-10-24 23:57:45 +05:30
|
|
|
%a.zen-control.zen-control-leave.js-zen-leave.gl-text-gray-500{ href: "#" }
|
2020-11-24 15:15:51 +05:30
|
|
|
= sprite_icon('minimize')
|