2016-10-13 07:34:35 +00:00
|
|
|
- @gfm_form = true
|
2017-05-08 02:20:37 +00:00
|
|
|
- current_text ||= nil
|
2017-06-12 19:42:12 +00:00
|
|
|
- supports_autocomplete = local_assigns.fetch(:supports_autocomplete, true)
|
2017-05-31 05:50:53 +00:00
|
|
|
- supports_quick_actions = local_assigns.fetch(:supports_quick_actions, false)
|
2016-03-30 09:00:43 +00:00
|
|
|
.zen-backdrop
|
|
|
|
- classes << ' js-gfm-input js-autosize markdown-area'
|
|
|
|
- if defined?(f) && f
|
2017-06-12 19:42:12 +00:00
|
|
|
= f.text_area attr,
|
|
|
|
class: classes,
|
|
|
|
placeholder: placeholder,
|
|
|
|
data: { supports_quick_actions: supports_quick_actions,
|
|
|
|
supports_autocomplete: supports_autocomplete }
|
2016-03-30 09:00:43 +00:00
|
|
|
- else
|
2017-05-08 02:20:37 +00:00
|
|
|
= text_area_tag attr, current_text, class: classes, placeholder: placeholder
|
2016-05-04 21:04:13 +00:00
|
|
|
%a.zen-control.zen-control-leave.js-zen-leave{ href: "#" }
|
2016-03-30 09:00:43 +00:00
|
|
|
= icon('compress')
|