2016-01-05 14:54:59 -05:00
|
|
|
- page_title @project.name_with_namespace
|
2016-01-06 07:02:51 -05:00
|
|
|
- page_description @project.description unless page_description
|
2016-01-05 14:54:59 -05:00
|
|
|
- header_title project_title(@project) unless header_title
|
|
|
|
- sidebar "project" unless sidebar
|
2015-04-30 13:06:18 -04:00
|
|
|
|
2015-06-09 06:01:18 -04:00
|
|
|
- content_for :scripts_body_top do
|
2015-09-17 10:50:20 -04:00
|
|
|
- project = @target_project || @project
|
2015-06-09 06:01:18 -04:00
|
|
|
- if current_user
|
2015-06-02 08:56:50 -04:00
|
|
|
:javascript
|
2015-09-17 10:50:20 -04:00
|
|
|
window.project_uploads_path = "#{namespace_project_uploads_path project.namespace,project}";
|
|
|
|
window.markdown_preview_path = "#{markdown_preview_namespace_project_path(project.namespace, project)}";
|
2015-06-02 08:56:50 -04:00
|
|
|
|
|
|
|
- content_for :scripts_body do
|
2015-05-01 04:39:11 -04:00
|
|
|
= render "layouts/init_auto_complete" if current_user
|
|
|
|
|
|
|
|
= render template: "layouts/application"
|