2011-10-28 14:07:58 +02:00
|
|
|
!!!
|
|
|
|
%html
|
|
|
|
%head
|
|
|
|
%title
|
|
|
|
GitLab #{" - #{@project.name}" if @project && !@project.new_record?}
|
|
|
|
= stylesheet_link_tag "application"
|
|
|
|
= javascript_include_tag "application"
|
2011-11-16 06:38:53 +01:00
|
|
|
- if current_page?(tree_project_ref_path(@project, @project.root_ref)) || current_page?(project_commits_path(@project))
|
2011-11-15 08:25:26 +01: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 10:29:58 +01:00
|
|
|
- if request.path == project_issues_path(@project)
|
2011-11-15 08:25:26 +01:00
|
|
|
= auto_discovery_link_tag(:atom, project_issues_url(@project, :atom, :private_token => current_user.private_token), :title => "#{@project.name} issues")
|
2011-10-28 14:07:58 +02:00
|
|
|
= csrf_meta_tags
|
|
|
|
= javascript_tag do
|
|
|
|
REQ_URI = "#{request.env["REQUEST_URI"]}";
|
|
|
|
REQ_REFFER = "#{request.env["HTTP_REFERER"]}";
|
2011-11-03 23:37:02 +01:00
|
|
|
%body{ :class => body_class('project-page'), :id => yield(:boyd_id)}
|
2011-11-21 08:26:10 +01:00
|
|
|
= render :partial => "layouts/flash"
|
2011-10-28 14:07:58 +02:00
|
|
|
#container
|
|
|
|
= render :partial => "layouts/head_panel"
|
2011-12-12 18:22:01 +01:00
|
|
|
= render :partial => "layouts/middle_panel" if @project && !@project.new_record?
|
2011-10-28 14:07:58 +02:00
|
|
|
.project-container
|
2011-11-01 10:22:16 +01:00
|
|
|
.project-sidebar
|
|
|
|
.fixed
|
2011-11-06 21:53:36 +01:00
|
|
|
%aside
|
2011-11-12 14:18:56 +01:00
|
|
|
= link_to "Activities", project_path(@project), :class => current_page?(:controller => "projects", :action => "show", :id => @project) ? "current" : nil
|
2011-11-16 06:38:53 +01:00
|
|
|
= link_to "Tree", tree_project_ref_path(@project, @project.root_ref), :class => current_page?(:controller => "refs", :action => "tree", :project_id => @project, :id => @ref || @project.root_ref ) ? "current" : nil
|
2011-11-06 21:53:36 +01:00
|
|
|
= link_to "Commits", project_commits_path(@project), :class => current_page?(:controller => "commits", :action => "index", :project_id => @project) ? "current" : nil
|
2011-11-13 12:58:45 +01:00
|
|
|
= link_to "Network graph", graph_project_path(@project), :class => current_page?(:controller => "projects", :action => "graph", :id => @project) ? "current" : nil
|
2011-11-06 21:53:36 +01:00
|
|
|
= link_to team_project_path(@project), :class => (current_page?(:controller => "projects", :action => "team", :id => @project) || controller.controller_name == "team_members") ? "current" : nil do
|
|
|
|
Team
|
|
|
|
- if @project.users_projects.count > 0
|
|
|
|
%span{ :class => "number" }= @project.users_projects.count
|
2011-11-08 22:02:57 +01:00
|
|
|
= link_to project_issues_filter_path(@project), :class => (controller.controller_name == "issues") ? "current" : nil do
|
2011-11-06 21:53:36 +01:00
|
|
|
Issues
|
2011-11-28 22:34:24 +01:00
|
|
|
- if @project.issues.open_for(current_user).count > 0
|
|
|
|
%span{ :class => "number" }= @project.issues.open_for(current_user).count
|
2011-11-06 21:53:36 +01:00
|
|
|
= link_to wall_project_path(@project), :class => current_page?(:controller => "projects", :action => "wall", :id => @project) ? "current" : nil do
|
|
|
|
Wall
|
2011-11-25 22:44:02 +01:00
|
|
|
- if @project.common_notes.today.count > 0
|
2011-11-18 07:52:13 +01:00
|
|
|
%span{ :class => "number" }= @project.common_notes.today.count
|
2011-11-28 08:39:43 +01:00
|
|
|
= link_to project_merge_requests_path(@project), :class => (controller.controller_name == "merge_requests") ? "current" : nil do
|
|
|
|
Merge Requests
|
|
|
|
- if @project.merge_requests.opened.count > 0
|
|
|
|
%span{ :class => "number" }= @project.merge_requests.opened.count
|
2011-11-06 21:53:36 +01:00
|
|
|
= link_to project_snippets_path(@project), :class => (controller.controller_name == "snippets") ? "current" : nil do
|
|
|
|
Snippets
|
2011-11-25 22:44:02 +01:00
|
|
|
- if @project.snippets.non_expired.count > 0
|
2011-11-06 21:53:36 +01:00
|
|
|
%span{ :class => "number" }= @project.snippets.non_expired.count
|
2011-10-28 14:07:58 +02:00
|
|
|
|
2011-11-22 13:50:47 +01:00
|
|
|
- if can? current_user, :admin_project, @project
|
2011-12-07 22:56:57 +01:00
|
|
|
= link_to "Admin", edit_project_path(@project), :class => (current_page?(edit_project_path(@project))) ? "current" : nil
|
2011-11-22 13:50:47 +01:00
|
|
|
|
2011-11-08 22:19:42 +01:00
|
|
|
.medium-tags{:style => 'padding: 10px 0 0 10px; width: 210px;'}= tag_list @project
|
2011-10-28 14:07:58 +02:00
|
|
|
|
|
|
|
.project-content
|
|
|
|
= yield
|