project.html.haml 1.2 KB
Newer Older
gitlabhq's avatar
gitlabhq committed
1 2 3
!!!
%html
  %head
4
    %meta{:charset => "utf-8"}
gitlabhq's avatar
gitlabhq committed
5 6
    %title
      GitLab #{" - #{@project.name}" if @project && !@project.new_record?}
Dmitriy Zaporozhets's avatar
Dmitriy Zaporozhets committed
7
    = favicon_link_tag 'favicon.ico'
gitlabhq's avatar
gitlabhq committed
8 9
    = stylesheet_link_tag    "application"
    = javascript_include_tag "application"
gitlabhq's avatar
gitlabhq committed
10
    - if current_page?(tree_project_ref_path(@project, @project.root_ref)) || current_page?(project_commits_path(@project))
11
      = auto_discovery_link_tag(:atom, project_commits_url(@project, :atom, :ref => @ref, :private_token => current_user.private_token), :title => "Recent commits to #{@project.name}:#{@ref}")
Nihad Abbasov's avatar
Nihad Abbasov committed
12
    - if request.path == project_issues_path(@project)
13
      = auto_discovery_link_tag(:atom, project_issues_url(@project, :atom, :private_token => current_user.private_token), :title => "#{@project.name} issues")
gitlabhq's avatar
gitlabhq committed
14 15 16 17
    = csrf_meta_tags
    = javascript_tag do
      REQ_URI = "#{request.env["REQUEST_URI"]}";
      REQ_REFFER = "#{request.env["HTTP_REFERER"]}";
18
  %body{ :class => body_class('project-page'), :id => yield(:boyd_id)}
19
    = render :partial => "layouts/flash"
gitlabhq's avatar
gitlabhq committed
20 21 22
    #container
      = render :partial => "layouts/head_panel"
      .project-container
23
        = render :partial => "layouts/project_side"
gitlabhq's avatar
gitlabhq committed
24 25
        .project-content
          = yield