debian-mirror-gitlab/app/views/projects/_zen.html.haml

17 lines
661 B
Text
Raw Normal View History

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)
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,
data: { supports_quick_actions: supports_quick_actions,
supports_autocomplete: supports_autocomplete }
2016-06-02 11:05:42 +05:30
- else
2017-09-10 17:25:29 +05:30
= text_area_tag attr, current_text, class: classes, placeholder: placeholder
2016-06-02 11:05:42 +05:30
%a.zen-control.zen-control-leave.js-zen-leave{ href: "#" }
= icon('compress')