gitlab-org--gitlab-foss/app/views/layouts/project.html.haml

47 lines
2.6 KiB
Plaintext
Raw Normal View History

2011-10-28 12:07:58 +00:00
!!!
%html
%head
%title
GitLab #{" - #{@project.name}" if @project && !@project.new_record?}
2011-12-28 07:18:50 +00:00
= favicon_link_tag 'favicon.ico'
2011-10-28 12:07:58 +00:00
= stylesheet_link_tag "application"
= javascript_include_tag "application"
2011-11-16 05:38:53 +00:00
- if current_page?(tree_project_ref_path(@project, @project.root_ref)) || current_page?(project_commits_path(@project))
2011-11-15 07:25:26 +00:00
= 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}")
2011-11-11 09:29:58 +00:00
- if request.path == project_issues_path(@project)
2011-11-15 07:25:26 +00:00
= auto_discovery_link_tag(:atom, project_issues_url(@project, :atom, :private_token => current_user.private_token), :title => "#{@project.name} issues")
2011-10-28 12:07:58 +00:00
= csrf_meta_tags
= javascript_tag do
REQ_URI = "#{request.env["REQUEST_URI"]}";
REQ_REFFER = "#{request.env["HTTP_REFERER"]}";
2011-11-03 22:37:02 +00:00
%body{ :class => body_class('project-page'), :id => yield(:boyd_id)}
= render :partial => "layouts/flash"
2011-10-28 12:07:58 +00:00
#container
= render :partial => "layouts/head_panel"
2012-01-12 07:04:57 +00:00
-#= render :partial => "layouts/middle_panel" if @project && !@project.new_record?
2011-10-28 12:07:58 +00:00
.project-container
2011-11-01 09:22:16 +00:00
.project-sidebar
.fixed
2011-11-06 20:53:36 +00:00
%aside
2012-01-12 07:04:57 +00:00
= link_to project_path(@project), :class => project_tab_class do
2012-01-12 07:28:57 +00:00
Project
2012-01-12 07:04:57 +00:00
2012-01-17 23:19:57 +00:00
- if @project.repo_exists?
= link_to "Repository", project_repository_path(@project), :class => repository_tab_class
= link_to "Tree", tree_project_ref_path(@project, @ref || @project.root_ref), :class => tree_tab_class
2012-01-17 23:19:57 +00:00
= link_to "Commits", project_commits_path(@project), :class => (controller.controller_name == "commits") ? "current" : nil
= link_to "Network", graph_project_path(@project), :class => current_page?(:controller => "projects", :action => "graph", :id => @project) ? "current" : nil
= link_to project_issues_filter_path(@project), :class => (controller.controller_name == "issues") ? "current" : nil do
Issues
= link_to wall_project_path(@project), :class => current_page?(:controller => "projects", :action => "wall", :id => @project) ? "current" : nil do
Wall
- if @project.common_notes.today.count > 0
%span{ :class => "number" }= @project.common_notes.today.count
= link_to project_merge_requests_path(@project), :class => (controller.controller_name == "merge_requests") ? "current" : nil do
Requests
2011-10-28 12:07:58 +00:00
2011-11-22 12:50:47 +00:00
2011-10-28 12:07:58 +00:00
.project-content
= yield