Commit b66a8203 authored by Phil Hughes's avatar Phil Hughes

Moved loading GFM source into zen.html.haml

parent 9c5638fb
......@@ -10,5 +10,4 @@
= render "layouts/header/default", title: header_title
= render 'layouts/page', sidebar: sidebar, nav: nav
= render "layouts/init_auto_complete" if current_user && @load_gfm
= yield :scripts_body
- @load_gfm = !(@target_project || @project).nil?
- supports_slash_commands = local_assigns.fetch(:supports_slash_commands, false)
.zen-backdrop
- classes << ' js-gfm-input js-autosize markdown-area'
......@@ -8,3 +7,6 @@
= text_area_tag attr, nil, class: classes, placeholder: placeholder
%a.zen-control.zen-control-leave.js-zen-leave{ href: "#" }
= icon('compress')
- content_for :scripts_body do
= render "layouts/init_auto_complete" if current_user && (@target_project || @project)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment