Integrate CI navigation more tightly with project
This commit is contained in:
parent
591f2e1df2
commit
da6d9607d1
6 changed files with 22 additions and 34 deletions
|
@ -1,9 +1,9 @@
|
|||
%ul.nav.nav-sidebar
|
||||
= nav_link do
|
||||
= link_to ci_root_path, title: 'Back to dashboard', data: {placement: 'right'}, class: 'back-link' do
|
||||
= link_to admin_root_path, title: 'Back to dashboard', data: {placement: 'right'}, class: 'back-link' do
|
||||
= icon('caret-square-o-left fw')
|
||||
%span
|
||||
Back to Dashboard
|
||||
Back to Admin
|
||||
|
||||
%li.separate-item
|
||||
= nav_link path: 'projects#index' do
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
%ul.nav.nav-sidebar
|
||||
= nav_link do
|
||||
= link_to root_path, title: 'Back to dashboard', data: {placement: 'right'}, class: 'back-link' do
|
||||
= icon('caret-square-o-left fw')
|
||||
%span
|
||||
Back to GitLab
|
||||
%li.separate-item
|
||||
= nav_link path: 'projects#index' do
|
||||
= link_to ci_root_path do
|
||||
%i.fa.fa-home
|
||||
%span
|
||||
Projects
|
||||
- if current_user && current_user.is_admin?
|
||||
%li
|
||||
= link_to ci_admin_projects_path do
|
||||
%i.fa.fa-cogs
|
||||
%span
|
||||
Admin
|
||||
%li
|
||||
= link_to ci_help_path do
|
||||
%i.fa.fa-info
|
||||
%span
|
||||
Help
|
||||
|
|
@ -8,4 +8,4 @@
|
|||
- else
|
||||
= render "layouts/header/public", title: header_title
|
||||
|
||||
= render 'layouts/ci/page', sidebar: 'nav_dashboard'
|
||||
= render 'layouts/ci/page'
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
= icon('dashboard fw')
|
||||
%span
|
||||
Overview
|
||||
= nav_link(controller: :projects) do
|
||||
= nav_link(controller: [:admin, :projects]) do
|
||||
= link_to admin_namespaces_projects_path, title: 'Projects', data: {placement: 'right'} do
|
||||
= icon('cube fw')
|
||||
%span
|
||||
|
@ -24,6 +24,11 @@
|
|||
= icon('key fw')
|
||||
%span
|
||||
Deploy Keys
|
||||
= nav_link do
|
||||
= link_to ci_admin_projects_path, title: 'Continuous Integration', data: {placement: 'right'} do
|
||||
= icon('building fw')
|
||||
%span
|
||||
Continuous Integration
|
||||
= nav_link(controller: :logs) do
|
||||
= link_to admin_logs_path, title: 'Logs', data: {placement: 'right'} do
|
||||
= icon('file-text fw')
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
%ul.nav.nav-sidebar
|
||||
= nav_link(path: ['root#index', 'projects#trending', 'projects#starred', 'projects#index'], html_options: {class: 'home'}) do
|
||||
= nav_link(path: ['root#index', 'projects#trending', 'projects#starred', 'dashboard/projects#index'], html_options: {class: 'home'}) do
|
||||
= link_to root_path, title: 'Projects', data: {placement: 'right'} do
|
||||
= icon('home fw')
|
||||
%span
|
||||
|
@ -31,6 +31,11 @@
|
|||
%span
|
||||
Merge Requests
|
||||
%span.count= current_user.assigned_merge_requests.opened.count
|
||||
= nav_link(controller: [:ci, :projects]) do
|
||||
= link_to ci_root_path, title: 'Continuous Integration', data: {placement: 'right'} do
|
||||
= icon('building fw')
|
||||
%span
|
||||
Continuous Integration
|
||||
= nav_link(controller: :snippets) do
|
||||
= link_to dashboard_snippets_path, title: 'Your snippets', data: {placement: 'right'} do
|
||||
= icon('clipboard fw')
|
||||
|
@ -46,8 +51,3 @@
|
|||
= icon('user fw')
|
||||
%span
|
||||
Profile Settings
|
||||
= nav_link(controller: :ci) do
|
||||
= link_to ci_root_path, title: 'Continuous Integration', data: {placement: 'right'} do
|
||||
= icon('building fw')
|
||||
%span
|
||||
CI
|
||||
|
|
|
@ -76,6 +76,13 @@
|
|||
Merge Requests
|
||||
%span.count.merge_counter= @project.merge_requests.opened.count
|
||||
|
||||
- if @project.gitlab_ci?
|
||||
= nav_link(controller: [:ci, :project]) do
|
||||
= link_to ci_project_path(@project.gitlab_ci_project), title: 'Continuous Integration', data: {placement: 'right'} do
|
||||
= icon('building fw')
|
||||
%span
|
||||
Continuous Integration
|
||||
|
||||
- if project_nav_tab? :settings
|
||||
= nav_link(controller: [:project_members, :teams]) do
|
||||
= link_to namespace_project_project_members_path(@project.namespace, @project), title: 'Members', class: 'team-tab tab', data: {placement: 'right'} do
|
||||
|
|
Loading…
Reference in a new issue