summaryrefslogtreecommitdiff
path: root/app/views/projects/wikis
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-02-13 14:14:27 +0100
committerDouwe Maan <douwe@gitlab.com>2015-02-17 17:58:08 +0100
commit080449f8af56e1aa0d80c921d0bc6ea4a61f1c38 (patch)
tree5dca4caab2ce265abd6062d97e6b269a3523290c /app/views/projects/wikis
parent529188e4788991961796b1b6131389072ee61efb (diff)
downloadgitlab-ce-080449f8af56e1aa0d80c921d0bc6ea4a61f1c38.tar.gz
Make sure Markdown previews always use the same styling as the eventual destination.
Diffstat (limited to 'app/views/projects/wikis')
-rw-r--r--app/views/projects/wikis/_form.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/wikis/_form.html.haml b/app/views/projects/wikis/_form.html.haml
index 111484c8316..84731e43e95 100644
--- a/app/views/projects/wikis/_form.html.haml
+++ b/app/views/projects/wikis/_form.html.haml
@@ -22,7 +22,7 @@
.form-group.wiki-content
= f.label :content, class: 'control-label'
.col-sm-10
- = render layout: 'projects/md_preview' do
+ = render layout: 'projects/md_preview', locals: { preview_class: "wiki" } do
= render 'projects/zen', f: f, attr: :content, classes: 'description form-control'
.col-sm-12.hint
.pull-left Wiki content is parsed with #{link_to "GitLab Flavored Markdown", help_page_path("markdown", "markdown"), target: '_blank'}