2015-09-11 14:41:01 +05:30
|
|
|
%ul.nav.nav-sidebar
|
|
|
|
- if @project.group
|
2015-04-26 12:48:37 +05:30
|
|
|
= nav_link do
|
2015-12-23 02:04:40 +05:30
|
|
|
= link_to group_path(@project.group), title: 'Go to group', class: 'back-link' do
|
2015-09-11 14:41:01 +05:30
|
|
|
= icon('caret-square-o-left fw')
|
2015-04-26 12:48:37 +05:30
|
|
|
%span
|
2015-11-26 14:37:03 +05:30
|
|
|
Go to group
|
2015-09-11 14:41:01 +05:30
|
|
|
- else
|
|
|
|
= nav_link do
|
2015-12-23 02:04:40 +05:30
|
|
|
= link_to root_path, title: 'Go to dashboard', class: 'back-link' do
|
2015-09-11 14:41:01 +05:30
|
|
|
= icon('caret-square-o-left fw')
|
|
|
|
%span
|
2015-11-26 14:37:03 +05:30
|
|
|
Go to dashboard
|
2015-04-26 12:48:37 +05:30
|
|
|
|
2015-09-11 14:41:01 +05:30
|
|
|
%li.separate-item
|
2015-04-26 12:48:37 +05:30
|
|
|
|
2015-09-11 14:41:01 +05:30
|
|
|
= nav_link(path: 'projects#show', html_options: {class: 'home'}) do
|
2015-12-23 02:04:40 +05:30
|
|
|
= link_to project_path(@project), title: 'Project', class: 'shortcuts-project' do
|
2015-09-11 14:41:01 +05:30
|
|
|
= icon('home fw')
|
|
|
|
%span
|
|
|
|
Project
|
|
|
|
= nav_link(path: 'projects#activity') do
|
2015-12-23 02:04:40 +05:30
|
|
|
= link_to activity_project_path(@project), title: 'Activity', class: 'shortcuts-project-activity' do
|
2015-09-11 14:41:01 +05:30
|
|
|
= icon('dashboard fw')
|
|
|
|
%span
|
|
|
|
Activity
|
|
|
|
- if project_nav_tab? :files
|
2016-01-14 18:37:52 +05:30
|
|
|
= nav_link(controller: %w(tree blob blame edit_tree new_tree find_file)) do
|
2015-12-23 02:04:40 +05:30
|
|
|
= link_to project_files_path(@project), title: 'Files', class: 'shortcuts-tree' do
|
2015-09-11 14:41:01 +05:30
|
|
|
= icon('files-o fw')
|
|
|
|
%span
|
|
|
|
Files
|
2015-04-26 12:48:37 +05:30
|
|
|
|
2015-09-11 14:41:01 +05:30
|
|
|
- if project_nav_tab? :commits
|
2015-12-23 02:04:40 +05:30
|
|
|
= nav_link(controller: %w(commit commits compare repositories tags branches releases network)) do
|
|
|
|
= link_to project_commits_path(@project), title: 'Commits', class: 'shortcuts-commits' do
|
2015-09-11 14:41:01 +05:30
|
|
|
= icon('history fw')
|
2015-04-26 12:48:37 +05:30
|
|
|
%span
|
2015-09-11 14:41:01 +05:30
|
|
|
Commits
|
2015-04-26 12:48:37 +05:30
|
|
|
|
2015-10-24 18:46:33 +05:30
|
|
|
- if project_nav_tab? :builds
|
|
|
|
= nav_link(controller: %w(builds)) do
|
2015-12-23 02:04:40 +05:30
|
|
|
= link_to project_builds_path(@project), title: 'Builds', class: 'shortcuts-builds' do
|
2015-10-24 18:46:33 +05:30
|
|
|
= icon('cubes fw')
|
|
|
|
%span
|
|
|
|
Builds
|
2016-01-14 18:37:52 +05:30
|
|
|
%span.count.builds_counter= number_with_delimiter(@project.builds.running_or_pending.count(:all))
|
2015-04-26 12:48:37 +05:30
|
|
|
|
2015-09-11 14:41:01 +05:30
|
|
|
- if project_nav_tab? :graphs
|
|
|
|
= nav_link(controller: %w(graphs)) do
|
2015-12-23 02:04:40 +05:30
|
|
|
= link_to namespace_project_graph_path(@project.namespace, @project, current_ref), title: 'Graphs', class: 'shortcuts-graphs' do
|
2015-09-11 14:41:01 +05:30
|
|
|
= icon('area-chart fw')
|
|
|
|
%span
|
|
|
|
Graphs
|
2015-04-26 12:48:37 +05:30
|
|
|
|
2015-09-11 14:41:01 +05:30
|
|
|
- if project_nav_tab? :milestones
|
|
|
|
= nav_link(controller: :milestones) do
|
2015-12-23 02:04:40 +05:30
|
|
|
= link_to namespace_project_milestones_path(@project.namespace, @project), title: 'Milestones' do
|
2015-09-11 14:41:01 +05:30
|
|
|
= icon('clock-o fw')
|
|
|
|
%span
|
|
|
|
Milestones
|
2015-04-26 12:48:37 +05:30
|
|
|
|
2015-09-11 14:41:01 +05:30
|
|
|
- if project_nav_tab? :issues
|
|
|
|
= nav_link(controller: :issues) do
|
2015-12-23 02:04:40 +05:30
|
|
|
= link_to url_for_project_issues(@project, only_path: true), title: 'Issues', class: 'shortcuts-issues' do
|
2015-09-11 14:41:01 +05:30
|
|
|
= icon('exclamation-circle fw')
|
|
|
|
%span
|
|
|
|
Issues
|
|
|
|
- if @project.default_issues_tracker?
|
2016-01-14 18:37:52 +05:30
|
|
|
%span.count.issue_counter= number_with_delimiter(@project.issues.opened.count)
|
2015-04-26 12:48:37 +05:30
|
|
|
|
2015-09-11 14:41:01 +05:30
|
|
|
- if project_nav_tab? :merge_requests
|
|
|
|
= nav_link(controller: :merge_requests) do
|
2015-12-23 02:04:40 +05:30
|
|
|
= link_to namespace_project_merge_requests_path(@project.namespace, @project), title: 'Merge Requests', class: 'shortcuts-merge_requests' do
|
2015-09-11 14:41:01 +05:30
|
|
|
= icon('tasks fw')
|
|
|
|
%span
|
|
|
|
Merge Requests
|
2016-01-14 18:37:52 +05:30
|
|
|
%span.count.merge_counter= number_with_delimiter(@project.merge_requests.opened.count)
|
2015-04-26 12:48:37 +05:30
|
|
|
|
2015-09-11 14:41:01 +05:30
|
|
|
- if project_nav_tab? :settings
|
|
|
|
= nav_link(controller: [:project_members, :teams]) do
|
2015-12-23 02:04:40 +05:30
|
|
|
= link_to namespace_project_project_members_path(@project.namespace, @project), title: 'Members', class: 'team-tab tab' do
|
2015-09-11 14:41:01 +05:30
|
|
|
= icon('users fw')
|
|
|
|
%span
|
|
|
|
Members
|
2015-04-26 12:48:37 +05:30
|
|
|
|
2015-09-11 14:41:01 +05:30
|
|
|
- if project_nav_tab? :labels
|
|
|
|
= nav_link(controller: :labels) do
|
2015-12-23 02:04:40 +05:30
|
|
|
= link_to namespace_project_labels_path(@project.namespace, @project), title: 'Labels' do
|
2015-09-11 14:41:01 +05:30
|
|
|
= icon('tags fw')
|
|
|
|
%span
|
|
|
|
Labels
|
2015-04-26 12:48:37 +05:30
|
|
|
|
2015-09-11 14:41:01 +05:30
|
|
|
- if project_nav_tab? :wiki
|
|
|
|
= nav_link(controller: :wikis) do
|
2015-12-23 02:04:40 +05:30
|
|
|
= link_to get_project_wiki_path(@project), title: 'Wiki', class: 'shortcuts-wiki' do
|
2015-09-11 14:41:01 +05:30
|
|
|
= icon('book fw')
|
|
|
|
%span
|
|
|
|
Wiki
|
2015-04-26 12:48:37 +05:30
|
|
|
|
2015-09-11 14:41:01 +05:30
|
|
|
- if project_nav_tab? :snippets
|
|
|
|
= nav_link(controller: :snippets) do
|
2015-12-23 02:04:40 +05:30
|
|
|
= link_to namespace_project_snippets_path(@project.namespace, @project), title: 'Snippets', class: 'shortcuts-snippets' do
|
2015-09-25 12:07:36 +05:30
|
|
|
= icon('clipboard fw')
|
2015-09-11 14:41:01 +05:30
|
|
|
%span
|
|
|
|
Snippets
|
2015-04-26 12:48:37 +05:30
|
|
|
|
2015-09-11 14:41:01 +05:30
|
|
|
- if project_nav_tab? :settings
|
|
|
|
= nav_link(html_options: {class: "#{project_tab_class} separate-item"}) do
|
2015-12-23 02:04:40 +05:30
|
|
|
= link_to edit_project_path(@project), title: 'Settings' do
|
2015-09-11 14:41:01 +05:30
|
|
|
= icon('cogs fw')
|
|
|
|
%span
|
|
|
|
Settings
|
2015-12-23 02:04:40 +05:30
|
|
|
|
|
|
|
-# Global shortcut to network page for compatibility
|
|
|
|
- if project_nav_tab? :network
|
|
|
|
%li.hidden
|
|
|
|
= link_to namespace_project_network_path(@project.namespace, @project, current_ref), title: 'Network', class: 'shortcuts-network' do
|
|
|
|
Network
|