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-12-12 11:02:29 +01:00
|
|
|
= render "layouts/head_panel", title: project_title(@project)
|
2013-02-28 10:06:52 +01:00
|
|
|
= render "layouts/flash"
|
2012-11-30 17:26:17 +01:00
|
|
|
- if can?(current_user, :download_code, @project)
|
|
|
|
= render 'shared/no_ssh'
|
2013-01-21 14:05:18 +01:00
|
|
|
|
2012-02-12 16:48:17 +01:00
|
|
|
.container
|
2012-09-26 23:00:52 +02:00
|
|
|
%ul.main_menu
|
2013-03-14 18:28:29 +01:00
|
|
|
= nav_link(path: 'projects#show', html_options: {class: "home"}) do
|
2013-01-31 10:22:06 +01:00
|
|
|
= link_to project_path(@project), title: "Project" do
|
|
|
|
%i.icon-home
|
2012-01-28 00:49:14 +01:00
|
|
|
|
2013-04-01 20:16:52 +02:00
|
|
|
- unless @project.empty_repo?
|
2012-09-26 23:00:52 +02:00
|
|
|
- if can? current_user, :download_code, @project
|
|
|
|
= nav_link(controller: %w(tree blob blame)) do
|
2013-01-03 20:09:18 +01:00
|
|
|
= link_to 'Files', project_tree_path(@project, @ref || @repository.root_ref)
|
2012-09-26 23:00:52 +02:00
|
|
|
= nav_link(controller: %w(commit commits compare repositories protected_branches)) do
|
2013-01-03 20:09:18 +01:00
|
|
|
= link_to "Commits", project_commits_path(@project, @ref || @repository.root_ref)
|
2013-01-29 09:25:17 +01:00
|
|
|
= nav_link(controller: %w(graph)) do
|
|
|
|
= link_to "Network", project_graph_path(@project, @ref || @repository.root_ref)
|
2012-09-26 23:00:52 +02:00
|
|
|
|
2013-03-14 18:28:29 +01:00
|
|
|
- if @project.issues_enabled
|
2012-09-26 23:00:52 +02:00
|
|
|
= nav_link(controller: %w(issues milestones labels)) do
|
2013-02-19 14:06:40 +01:00
|
|
|
= link_to url_for_project_issues do
|
2012-09-26 23:00:52 +02:00
|
|
|
Issues
|
2013-02-19 14:06:40 +01:00
|
|
|
- if @project.used_default_issues_tracker?
|
|
|
|
%span.count.issue_counter= @project.issues.opened.count
|
2012-09-26 23:00:52 +02:00
|
|
|
|
|
|
|
- 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
|
|
|
|
|
2013-03-18 21:43:14 +01:00
|
|
|
- if @project.wiki_enabled
|
|
|
|
= nav_link(controller: :wikis) do
|
|
|
|
= link_to 'Wiki', project_wiki_path(@project, :home)
|
|
|
|
|
|
|
|
- if @project.wall_enabled
|
2013-03-19 12:28:29 +01:00
|
|
|
= nav_link(controller: :walls) do
|
2013-03-19 11:35:42 +01:00
|
|
|
= link_to 'Wall', project_wall_path(@project)
|
2012-09-26 23:00:52 +02:00
|
|
|
|
2013-03-18 22:33:41 +01:00
|
|
|
- if @project.snippets_enabled
|
|
|
|
= nav_link(controller: :snippets) do
|
|
|
|
= link_to 'Snippets', project_snippets_path(@project)
|
|
|
|
|
2013-03-14 18:28:29 +01:00
|
|
|
- if can? current_user, :admin_project, @project
|
|
|
|
= nav_link(html_options: {class: "#{project_tab_class}"}) do
|
|
|
|
= link_to edit_project_path(@project), class: "stat-tab tab " do
|
|
|
|
Settings
|
2013-03-18 21:43:14 +01:00
|
|
|
|
2012-09-26 23:00:52 +02:00
|
|
|
.content= yield
|