summaryrefslogtreecommitdiff
path: root/app/views/projects/_zen.html.haml
diff options
context:
space:
mode:
authorCiro Santilli <ciro.santilli@gmail.com>2014-09-20 15:26:14 +0200
committerCiro Santilli <ciro.santilli@gmail.com>2014-09-20 15:32:46 +0200
commitadaec60a5014c0386fa5e9f859d39461e7f6e9fe (patch)
treeb1c262b90e880880e3ddf15a3255a430d41a0e38 /app/views/projects/_zen.html.haml
parentac516abe957d9cf0c1ce7ec80fa47eebf6ace0d4 (diff)
downloadgitlab-ce-adaec60a5014c0386fa5e9f859d39461e7f6e9fe.tar.gz
Factor zen mode.
Diffstat (limited to 'app/views/projects/_zen.html.haml')
-rw-r--r--app/views/projects/_zen.html.haml7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/views/projects/_zen.html.haml b/app/views/projects/_zen.html.haml
new file mode 100644
index 00000000000..2bbc49e8eb5
--- /dev/null
+++ b/app/views/projects/_zen.html.haml
@@ -0,0 +1,7 @@
+.zennable
+ %input#zen-toggle-comment{ tabindex: '-1', type: 'checkbox' }
+ .zen-backdrop
+ - classes << ' js-gfm-input markdown-area'
+ = f.text_area attr, class: classes, placeholder: 'Leave a comment'
+ %label{ for: 'zen-toggle-comment', class: 'expand' } Edit in fullscreen
+ %label{ for: 'zen-toggle-comment', class: 'collapse' }