summaryrefslogtreecommitdiff
path: root/app/views/projects/_zen.html.haml
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-11-19 15:37:20 +0100
committerDouwe Maan <douwe@gitlab.com>2015-11-19 15:37:20 +0100
commit97842cea7409d80a3bf22f3ab8993a2ce3b02195 (patch)
treed1932d75d53a98912a91d53cc1ee779025b30101 /app/views/projects/_zen.html.haml
parent347f136229b19994f2e52b936dc6136cde0c9133 (diff)
downloadgitlab-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.haml9
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')