summaryrefslogtreecommitdiff
path: root/app/views/projects/_md_preview.html.haml
diff options
context:
space:
mode:
authorJacob Schatz <jschatz1@gmail.com>2016-05-27 17:30:01 -0400
committerPhil Hughes <me@iamphill.com>2016-06-17 11:52:22 +0100
commit7717cb727fba74fcb9eee11559f9e97558795707 (patch)
tree213a5fbab0227234f888833325dc7dc7cb155333 /app/views/projects/_md_preview.html.haml
parent07d6edc15ba3db1f76b1b87c51d507f4dc654e1c (diff)
downloadgitlab-ce-7717cb727fba74fcb9eee11559f9e97558795707.tar.gz
Move buttons to upper right.
Diffstat (limited to 'app/views/projects/_md_preview.html.haml')
-rw-r--r--app/views/projects/_md_preview.html.haml25
1 files changed, 23 insertions, 2 deletions
diff --git a/app/views/projects/_md_preview.html.haml b/app/views/projects/_md_preview.html.haml
index 28a28282fd3..9c242828c12 100644
--- a/app/views/projects/_md_preview.html.haml
+++ b/app/views/projects/_md_preview.html.haml
@@ -14,8 +14,29 @@
%span This is a confidential issue. Your comment will not be visible to the public.
%li.pull-right
- %button.zen-control.zen-control-full.js-zen-enter{ type: 'button', tabindex: -1 }
- Go full screen
+
+ %a.btn.btn-xs.js-md{ 'data-md-tag' => '**' }
+ =icon('bold fw')
+ %a.btn.btn-xs.js-md{ 'data-md-tag' => '*' }
+ =icon('italic fw')
+ %a.btn.btn-xs.js-md{ 'data-md-tag' => '`' }
+ =icon('code fw')
+ %a.btn.btn-xs.js-md.js-list{ 'data-md-tag' => '* ', 'data-md-prepend' => true }
+ =icon('list-ul fw')
+ %a.btn.btn-xs.js-md.js-list.hidden-xs{ 'data-md-tag' => '1. ', 'data-md-prepend' => true }
+ =icon('list-ol fw')
+ %a.btn.btn-xs.js-md.js-list.hidden-xs{ 'data-md-tag' => '* [ ] ', 'data-md-prepend' => true }
+ =icon('check-square-o fw')
+ %a.btn.btn-xs.js-md.js-list.hidden-xs{ 'data-md-tag' => '> ', 'data-md-prepend' => true }
+ =icon('quote-right fw')
+
+ %a.btn.btn-xs.js-md.js-list.hidden-xs{ 'data-md-tag' => '!', 'data-md-prepend' => true }
+ =icon('tasks fw')
+ %a.btn.btn-xs.js-md.js-list.hidden-xs{ 'data-md-tag' => '#', 'data-md-prepend' => true }
+ =icon('exclamation-circle fw')
+
+ %a.btn.btn-xs.js-zen-enter.hidden-xs
+ =icon('arrows-alt fw')
.md-write-holder
= yield