Read about our upcoming Code of Conduct on this issue

Unverified Commit 9c4307e2 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Show CI status on commit page


Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent b086dcf0bfd6
......@@ -22,6 +22,8 @@ def show
commit_id: @commit.id
}
@ci_commit = project.ci_commit(commit.sha)
respond_to do |format|
format.html
format.diff { render text: @commit.to_diff }
......
......@@ -38,6 +38,13 @@
- @commit.parents.each do |parent|
= link_to parent.short_id, namespace_project_commit_path(@project.namespace, @project, parent)
- if @ci_commit
.pull-right
= link_to ci_status_path(@ci_commit), class: "ci-status ci-#{@ci_commit.status}" do
= ci_status_icon(@ci_commit)
build:
= @ci_commit.status
.commit-info-row.branches
%i.fa.fa-spinner.fa-spin
......
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