diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-02-13 14:14:27 +0100 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-02-17 17:58:08 +0100 |
commit | 080449f8af56e1aa0d80c921d0bc6ea4a61f1c38 (patch) | |
tree | 5dca4caab2ce265abd6062d97e6b269a3523290c /app/views/projects/wikis | |
parent | 529188e4788991961796b1b6131389072ee61efb (diff) | |
download | gitlab-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.haml | 2 |
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'} |