BigW Consortium Gitlab

_zen.html.haml 661 Bytes
Newer Older
1
- @gfm_form = true
2
- current_text ||= nil
3
- supports_autocomplete = local_assigns.fetch(:supports_autocomplete, true)
4
- supports_quick_actions = local_assigns.fetch(:supports_quick_actions, false)
5 6 7
.zen-backdrop
  - classes << ' js-gfm-input js-autosize markdown-area'
  - if defined?(f) && f
8 9 10 11 12
    = f.text_area attr,
      class: classes,
      placeholder: placeholder,
      data: { supports_quick_actions: supports_quick_actions,
        supports_autocomplete: supports_autocomplete }
13
  - else
14
    = text_area_tag attr, current_text, class: classes, placeholder: placeholder
15
  %a.zen-control.zen-control-leave.js-zen-leave{ href: "#" }
16
    = icon('compress')