summaryrefslogtreecommitdiff
path: root/app/views/layouts/project.html.haml
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-06-02 14:56:50 +0200
committerDouwe Maan <douwe@gitlab.com>2015-06-05 12:07:13 +0200
commit4ae67fcaefe7ca66e06933a18368e592d8ebc260 (patch)
tree7d3b171dae75ab143cc2111caa6959cd832e6c7d /app/views/layouts/project.html.haml
parent1f78aeba40f76f6a2f6b44327367282838301a3f (diff)
downloadgitlab-ce-4ae67fcaefe7ca66e06933a18368e592d8ebc260.tar.gz
Show warning when a comment will add 10 or more people to the discussion.
Diffstat (limited to 'app/views/layouts/project.html.haml')
-rw-r--r--app/views/layouts/project.html.haml8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/views/layouts/project.html.haml b/app/views/layouts/project.html.haml
index 4aeb9d397d2..03c7ba8c73f 100644
--- a/app/views/layouts/project.html.haml
+++ b/app/views/layouts/project.html.haml
@@ -2,7 +2,13 @@
- header_title project_title(@project)
- sidebar "project" unless sidebar
-- content_for :embedded_scripts do
+- content_for :scripts_head do
+ -if current_user
+ :javascript
+ window.project_uploads_path = "#{namespace_project_uploads_path @project.namespace, @project}";
+ window.markdown_preview_path = "#{markdown_preview_namespace_project_path(@project.namespace, @project)}";
+
+- content_for :scripts_body do
= render "layouts/init_auto_complete" if current_user
= render template: "layouts/application"