diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-06-02 14:56:50 +0200 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-06-05 12:07:13 +0200 |
commit | 4ae67fcaefe7ca66e06933a18368e592d8ebc260 (patch) | |
tree | 7d3b171dae75ab143cc2111caa6959cd832e6c7d /app/views/layouts/project.html.haml | |
parent | 1f78aeba40f76f6a2f6b44327367282838301a3f (diff) | |
download | gitlab-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.haml | 8 |
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" |