BigW Consortium Gitlab

project.html.haml 1.11 KB
Newer Older
1
- page_title       @project.name_with_namespace
2
- page_description @project.description    unless page_description
3 4
- header_title     project_title(@project) unless header_title
- sidebar          "project"               unless sidebar
5

6
- content_for :scripts_body_top do
7
  - project = @target_project || @project
8 9 10 11
  - if @project_wiki
    - markdown_preview_path = namespace_project_wikis_markdown_preview_path(project.namespace, project)
  - else
    - markdown_preview_path = markdown_preview_namespace_project_path(project.namespace, project)
12
  - if current_user
13
    :javascript
14
      window.project_uploads_path = "#{namespace_project_uploads_path project.namespace,project}";
15
      window.markdown_preview_path = "#{markdown_preview_path}";
16 17

- content_for :scripts_body do
18 19
  = render "layouts/init_auto_complete" if current_user

20
- content_for :header_content do
21 22 23 24 25 26
  .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
27

28
= render template: "layouts/application"