debian-mirror-gitlab/app/views/layouts/project.html.haml

26 lines
1 KiB
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
- nav "project"
2015-09-11 14:41:01 +05:30
- content_for :scripts_body_top do
2015-10-24 18:46:33 +05:30
- project = @target_project || @project
- if @project_wiki && @page
2016-09-13 17:45:13 +05:30
- preview_markdown_path = namespace_project_wiki_preview_markdown_path(project.namespace, project, @page.slug)
2016-06-02 11:05:42 +05:30
- else
2016-09-13 17:45:13 +05:30
- preview_markdown_path = preview_markdown_namespace_project_path(project.namespace, project)
2015-09-11 14:41:01 +05:30
- if current_user
:javascript
2015-10-24 18:46:33 +05:30
window.project_uploads_path = "#{namespace_project_uploads_path project.namespace,project}";
2016-09-13 17:45:13 +05:30
window.preview_markdown_path = "#{preview_markdown_path}";
2015-09-11 14:41:01 +05:30
2016-06-02 11:05:42 +05:30
- content_for :header_content do
.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
2015-09-11 14:41:01 +05:30
= render template: "layouts/application"