gitlab-org--gitlab-foss/app/views/layouts/project.html.haml

17 lines
690 B
Text
Raw Normal View History

- page_title @project.name_with_namespace
- page_description @project.description unless page_description
- header_title project_title(@project) unless header_title
- sidebar "project" unless sidebar
2015-04-30 13:06:18 -04:00
- content_for :scripts_body_top do
- project = @target_project || @project
- 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"