Skip to content
Snippets Groups Projects
Unverified Commit 64e12d58 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Add header for ci graphs and check that it is enabled

parent ea583955
No related branches found
No related tags found
No related merge requests found
class Projects::ApplicationController < ApplicationController
before_action :project
before_action :repository
before_action :ci_enabled, only: :ci
layout 'project'
 
def authenticate_user!
Loading
Loading
@@ -25,4 +26,10 @@ class Projects::ApplicationController < ApplicationController
)
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'
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment