2014-12-25 03:13:45 -05:00
|
|
|
%ul.project-navigation.nav.nav-sidebar
|
2013-04-01 15:30:48 -04:00
|
|
|
= nav_link(path: 'projects#show', html_options: {class: "home"}) do
|
2014-09-08 02:47:26 -04:00
|
|
|
= link_to project_path(@project), title: 'Project', class: 'shortcuts-project' do
|
2014-12-15 13:00:44 -05:00
|
|
|
%i.fa.fa-dashboard
|
2014-12-24 11:34:14 -05:00
|
|
|
%span
|
|
|
|
Project
|
2013-06-13 15:58:27 -04:00
|
|
|
- if project_nav_tab? :files
|
2013-11-05 03:28:49 -05:00
|
|
|
= nav_link(controller: %w(tree blob blame edit_tree new_tree)) do
|
2014-12-15 13:00:44 -05:00
|
|
|
= link_to project_tree_path(@project, @ref || @repository.root_ref), class: 'shortcuts-tree' do
|
|
|
|
%i.fa.fa-files-o
|
2014-12-24 11:34:14 -05:00
|
|
|
%span
|
|
|
|
Files
|
2014-12-15 13:00:44 -05:00
|
|
|
|
2013-06-13 15:58:27 -04:00
|
|
|
|
|
|
|
- if project_nav_tab? :commits
|
2014-05-23 07:25:55 -04:00
|
|
|
= nav_link(controller: %w(commit commits compare repositories tags branches)) do
|
2014-12-15 13:00:44 -05:00
|
|
|
= link_to project_commits_path(@project, @ref || @repository.root_ref), class: 'shortcuts-commits' do
|
|
|
|
%i.fa.fa-history
|
2014-12-24 11:34:14 -05:00
|
|
|
%span
|
|
|
|
Commits
|
2013-06-13 15:58:27 -04:00
|
|
|
|
|
|
|
- if project_nav_tab? :network
|
|
|
|
= nav_link(controller: %w(network)) do
|
2014-12-15 13:00:44 -05:00
|
|
|
= link_to project_network_path(@project, @ref || @repository.root_ref), class: 'shortcuts-network' do
|
|
|
|
%i.fa.fa-code-fork
|
2014-12-24 11:34:14 -05:00
|
|
|
%span
|
|
|
|
Network
|
2013-06-13 15:58:27 -04:00
|
|
|
|
|
|
|
- if project_nav_tab? :graphs
|
|
|
|
= nav_link(controller: %w(graphs)) do
|
2014-12-15 13:00:44 -05:00
|
|
|
= link_to project_graph_path(@project, @ref || @repository.root_ref), class: 'shortcuts-graphs' do
|
|
|
|
%i.fa.fa-area-chart
|
2014-12-24 11:34:14 -05:00
|
|
|
%span
|
|
|
|
Graphs
|
2013-06-13 15:58:27 -04:00
|
|
|
|
|
|
|
- if project_nav_tab? :issues
|
2013-04-01 15:30:48 -04:00
|
|
|
= nav_link(controller: %w(issues milestones labels)) do
|
2014-08-21 04:14:31 -04:00
|
|
|
= link_to url_for_project_issues, class: 'shortcuts-issues' do
|
2014-12-15 13:00:44 -05:00
|
|
|
%i.fa.fa-exclamation-circle
|
2014-12-24 11:34:14 -05:00
|
|
|
%span
|
|
|
|
Issues
|
|
|
|
- if @project.used_default_issues_tracker?
|
|
|
|
%span.count.issue_counter= @project.issues.opened.count
|
2013-04-01 15:30:48 -04:00
|
|
|
|
2013-06-13 15:58:27 -04:00
|
|
|
- if project_nav_tab? :merge_requests
|
2013-04-01 15:30:48 -04:00
|
|
|
= nav_link(controller: :merge_requests) do
|
2014-08-21 04:14:31 -04:00
|
|
|
= link_to project_merge_requests_path(@project), class: 'shortcuts-merge_requests' do
|
2014-12-15 13:00:44 -05:00
|
|
|
%i.fa.fa-tasks
|
2014-12-24 11:34:14 -05:00
|
|
|
%span
|
|
|
|
Merge Requests
|
|
|
|
%span.count.merge_counter= @project.merge_requests.opened.count
|
2013-04-01 15:30:48 -04:00
|
|
|
|
2013-06-13 15:58:27 -04:00
|
|
|
- if project_nav_tab? :wiki
|
2013-04-01 15:30:48 -04:00
|
|
|
= nav_link(controller: :wikis) do
|
2014-12-15 13:00:44 -05:00
|
|
|
= link_to project_wiki_path(@project, :home), class: 'shortcuts-wiki' do
|
|
|
|
%i.fa.fa-book
|
2014-12-24 11:34:14 -05:00
|
|
|
%span
|
|
|
|
Wiki
|
2013-04-01 15:30:48 -04:00
|
|
|
|
2013-06-13 15:58:27 -04:00
|
|
|
- if project_nav_tab? :snippets
|
2013-04-01 15:30:48 -04:00
|
|
|
= nav_link(controller: :snippets) do
|
2014-12-15 13:00:44 -05:00
|
|
|
= link_to project_snippets_path(@project), class: 'shortcuts-snippets' do
|
|
|
|
%i.fa.fa-file-text-o
|
2014-12-24 11:34:14 -05:00
|
|
|
%span
|
|
|
|
Snippets
|
2013-04-01 15:30:48 -04:00
|
|
|
|
2013-06-13 15:58:27 -04:00
|
|
|
- if project_nav_tab? :settings
|
2014-12-12 14:49:51 -05:00
|
|
|
= nav_link(html_options: {class: "#{project_tab_class} separate-item"}) do
|
2014-12-15 10:46:36 -05:00
|
|
|
= link_to edit_project_path(@project), class: "stat-tab tab no-highlight" do
|
2014-12-15 13:00:44 -05:00
|
|
|
%i.fa.fa-cogs
|
2014-12-24 11:34:14 -05:00
|
|
|
%span
|
|
|
|
Settings
|
|
|
|
%i.fa.fa-angle-down
|
2014-12-20 18:11:08 -05:00
|
|
|
|
|
|
|
- if @project_settings_nav
|
2014-12-12 14:49:51 -05:00
|
|
|
= render 'projects/settings_nav'
|