Read about our upcoming Code of Conduct on this issue

Unverified Commit 64e12d58 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Add header for ci graphs and check that it is enabled


Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 2c2998e9ad4f
class Projects::ApplicationController < ApplicationController
before_action :project
before_action :repository
before_action :ci_enabled, only: :ci
layout 'project'
def authenticate_user!
......@@ -25,4 +26,10 @@ def require_branch_head
)
end
end
private
def ci_enabled
return render_404 unless @project.gitlab_ci?
end
end
- page_title "Continuous Integration", "Graphs"
= render "header_title"
= render 'head'
#charts.ci-charts
= render 'projects/graphs/ci/builds'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment