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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
911 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)
2020-03-13 15:44:24 +05:30
- qa_selector = local_assigns.fetch(:qa_selector, '')
2021-03-08 18:12:59 +05:30
- autofocus = local_assigns.fetch(:autofocus, 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,
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,
2021-03-08 18:12:59 +05:30
qa_selector: qa_selector,
autofocus: autofocus }
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')