Commit 2759b13a authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Remove CI dashboard

With CI status integrated at GitLab projects page there is no reason to keep it
Signed-off-by: default avatarDmitriy Zaporozhets <>
parent 353d426e
......@@ -8,6 +8,7 @@ v 8.1.0 (unreleased)
- Add first and last to pagination (Zeger-Jan van de Weg)
- Show CI status on commit page
- Show CI status on Your projects page and Starred projects page
- Remove "Continuous Integration" page from dashboard
v 8.0.2 (unreleased)
- Skip check_initd_configured_correctly on omnibus installs
module Ci
class ProjectsController < Ci::ApplicationController
before_action :authenticate_user!, except: [:build, :badge, :index, :show]
before_action :authenticate_user!, except: [:build, :badge, :show]
before_action :authenticate_public_page!, only: :show
before_action :project, only: [:build, :show, :badge, :edit, :update, :destroy, :toggle_shared_runners, :dumped_yaml]
before_action :authorize_access_project!, except: [:build, :badge, :index, :show, :new, :disabled]
before_action :authorize_access_project!, except: [:build, :badge, :show, :new, :disabled]
before_action :authorize_manage_project!, only: [:edit, :update, :destroy, :toggle_shared_runners, :dumped_yaml]
before_action :authenticate_token!, only: [:build]
before_action :no_cache, only: [:badge]
......@@ -15,18 +15,6 @@ module Ci
def disabled
def index
@projects = Ci::Project.all
if current_user
@projects = @projects.where(gitlab_id: current_user.authorized_projects.pluck(:id))
@projects =[:search]) if params[:search].present?
@projects = @projects.includes(:last_commit).order('ci_commits.created_at DESC')
@projects =[:page]).per(40)
def show
@ref = params[:ref]
- last_commit = project.last_commit
= link_to [:ci, project] do
- if last_commit
= ci_status_with_icon(last_commit.status)
= commit_link(last_commit)
- if project.last_commit_date
= time_ago_in_words project.last_commit_date
- else
No builds yet
- if project.public
- else
= project.commits.count
= content_for :title do
Public projects
- if @projects.present?
%th Name
%th Last commit
%th Access
%th Commits
= render @projects
= paginate @projects
- else
%h4 No public projects yet
= form_tag ci_root_path, method: :get, class: 'ci-search-form' do |f|
= search_field_tag "search", params[:search], placeholder: "Search", class: "search-input form-control"
- if current_user
= render "search"
%th Project Name
%th Last commit
%th Access
%th Commits
= render @projects
= paginate @projects, theme: 'gitlab'
- else
= render 'public'
= nav_link do
= link_to ci_root_path, title: 'Back to CI projects', data: {placement: 'right'}, class: 'back-link' do
= link_to project_path(@project.gl_project), title: 'Back to project', data: {placement: 'right'}, class: 'back-link' do
= icon('caret-square-o-left fw')
%span= 'Back to CI projects'
Back to project
= nav_link path: ['projects#show', 'commits#show', 'builds#show'] do
= link_to ci_project_path(@project) do
......@@ -2,10 +2,11 @@
= render "layouts/broadcast"
= link_to ci_root_path, class: 'home', title: 'Dashboard', id: 'js-shortcuts-home', data: {toggle: 'tooltip', placement: 'bottom'} do
= link_to root_path, class: 'home', title: 'Dashboard', id: 'js-shortcuts-home', data: {toggle: 'tooltip', placement: 'bottom'} do
= brand_header_logo
%h3 GitLab CI
%h3 GitLab
- if defined?(sidebar) && sidebar
= render "layouts/ci/#{sidebar}"
- elsif current_user
......@@ -31,11 +31,6 @@
Merge Requests
%span.count= current_user.assigned_merge_requests.opened.count
= nav_link(path: ['ci/projects#index', 'ci/projects#disabled']) do
= link_to ci_projects_path, title: 'Continuous Integration', data: {placement: 'right'} do
= icon('building fw')
Continuous Integration
= nav_link(controller: :snippets) do
= link_to dashboard_snippets_path, title: 'Your snippets', data: {placement: 'right'} do
= icon('clipboard fw')
......@@ -9,16 +9,6 @@ describe "Projects" do << [user, :master]
describe "GET /ci/projects", js: true do
before do
visit ci_projects_path
it { expect(page).to have_content "GitLab / gitlab-shell" }
it { expect(page).to have_selector ".search input#search" }
describe "GET /ci/projects/:id" do
before do
visit ci_project_path(@project)
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment