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
|
2016-05-16 13:21:12 -04:00
|
|
|
- nav "project"
|
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
|
2016-07-24 23:07:46 -04:00
|
|
|
- if @project_wiki && @page
|
2016-04-13 08:17:42 -04:00
|
|
|
- preview_markdown_path = namespace_project_wiki_preview_markdown_path(project.namespace, project, @page.slug)
|
2016-03-30 14:04:58 -04:00
|
|
|
- else
|
2016-04-13 08:17:42 -04:00
|
|
|
- preview_markdown_path = preview_markdown_namespace_project_path(project.namespace, 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}";
|
2016-04-13 08:17:42 -04:00
|
|
|
window.preview_markdown_path = "#{preview_markdown_path}";
|
2015-06-02 08:56:50 -04:00
|
|
|
|
2016-03-22 07:33:38 -04:00
|
|
|
- content_for :header_content do
|
2016-04-04 05:44:51 -04:00
|
|
|
.js-dropdown-menu-projects
|
|
|
|
.dropdown-menu.dropdown-select.dropdown-menu-projects
|
|
|
|
= dropdown_title("Go to a project")
|
|
|
|
= dropdown_filter("Search your projects")
|
|
|
|
= dropdown_content
|
|
|
|
= dropdown_loading
|
2016-03-22 07:33:38 -04:00
|
|
|
|
2015-05-01 04:39:11 -04:00
|
|
|
= render template: "layouts/application"
|