2012-02-09 08:59:04 +01:00
|
|
|
!!! 5
|
2012-08-11 00:07:50 +02:00
|
|
|
%html{ lang: "en"}
|
2012-12-12 11:02:29 +01:00
|
|
|
= render "layouts/head", title: @project.name_with_namespace
|
2012-08-11 00:07:50 +02:00
|
|
|
%body{class: "#{app_theme} project"}
|
2012-02-09 08:59:14 +01:00
|
|
|
= render "layouts/flash"
|
2012-12-12 11:02:29 +01:00
|
|
|
= render "layouts/head_panel", title: project_title(@project)
|
2012-11-30 17:26:17 +01:00
|
|
|
- if can?(current_user, :download_code, @project)
|
|
|
|
= render 'shared/no_ssh'
|
2012-02-12 16:48:17 +01:00
|
|
|
.container
|
2012-09-26 23:00:52 +02:00
|
|
|
%ul.main_menu
|
|
|
|
= nav_link(html_options: {class: "home #{project_tab_class}"}) do
|
2012-11-23 19:31:09 +01:00
|
|
|
= link_to @project.path, project_path(@project), title: "Project"
|
2012-01-28 00:49:14 +01:00
|
|
|
|
2012-09-26 23:00:52 +02:00
|
|
|
- if @project.repo_exists?
|
|
|
|
- if can? current_user, :download_code, @project
|
|
|
|
= nav_link(controller: %w(tree blob blame)) do
|
|
|
|
= link_to 'Files', project_tree_path(@project, @ref || @project.root_ref)
|
|
|
|
= nav_link(controller: %w(commit commits compare repositories protected_branches)) do
|
|
|
|
= link_to "Commits", project_commits_path(@project, @ref || @project.root_ref)
|
|
|
|
= nav_link(path: 'projects#graph') do
|
|
|
|
= link_to "Network", graph_project_path(@project)
|
|
|
|
|
|
|
|
- if @project.issues_enabled
|
|
|
|
= nav_link(controller: %w(issues milestones labels)) do
|
|
|
|
= link_to project_issues_filter_path(@project) do
|
|
|
|
Issues
|
|
|
|
%span.count.issue_counter= @project.issues.opened.count
|
|
|
|
|
|
|
|
- if @project.repo_exists? && @project.merge_requests_enabled
|
|
|
|
= nav_link(controller: :merge_requests) do
|
|
|
|
= link_to project_merge_requests_path(@project) do
|
|
|
|
Merge Requests
|
|
|
|
%span.count.merge_counter= @project.merge_requests.opened.count
|
|
|
|
|
|
|
|
- if @project.wall_enabled
|
|
|
|
= nav_link(path: 'projects#wall') do
|
|
|
|
= link_to 'Wall', wall_project_path(@project)
|
|
|
|
|
|
|
|
- if @project.wiki_enabled
|
|
|
|
= nav_link(controller: :wikis) do
|
|
|
|
= link_to 'Wiki', project_wiki_path(@project, :index)
|
|
|
|
|
|
|
|
.content= yield
|