diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-11-19 15:37:20 +0100 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-11-19 15:37:20 +0100 |
commit | 97842cea7409d80a3bf22f3ab8993a2ce3b02195 (patch) | |
tree | d1932d75d53a98912a91d53cc1ee779025b30101 /app/views/projects/_zen.html.haml | |
parent | 347f136229b19994f2e52b936dc6136cde0c9133 (diff) | |
download | gitlab-ce-97842cea7409d80a3bf22f3ab8993a2ce3b02195.tar.gz |
Fix 'Attach a file' link in new tag formnew-tag-textarea
Diffstat (limited to 'app/views/projects/_zen.html.haml')
-rw-r--r-- | app/views/projects/_zen.html.haml | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/app/views/projects/_zen.html.haml b/app/views/projects/_zen.html.haml index 63ebfc9381f..7e6301abde8 100644 --- a/app/views/projects/_zen.html.haml +++ b/app/views/projects/_zen.html.haml @@ -2,9 +2,12 @@ %input#zen-toggle-comment.zen-toggle-comment(tabindex="-1" type="checkbox") .zen-backdrop - classes << ' js-gfm-input markdown-area' - = f.text_area attr, class: classes, placeholder: '' + - if defined?(f) && f + = f.text_area attr, class: classes, placeholder: '' + - else + = text_area_tag attr, nil, class: classes, placeholder: '' %a.zen-enter-link(tabindex="-1" href="#") - %i.fa.fa-expand + = icon('expand') Edit in fullscreen %a.zen-leave-link(href="#") - %i.fa.fa-compress + = icon('compress') |