Add header for ci graphs and check that it is enabled

Signed-off-by: NDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
上级 ea583955
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 @@ 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'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册