summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-10-25 09:14:48 +0000
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-10-25 09:14:48 +0000
commit9b937046144f467649c966a2a1979050cd826f3e (patch)
tree91dfdbacda5cd4cfeda1db43215d2e47e09246d7 /app/helpers
parent3c23b6515fcba75b891763d3033d6c7a3eb4d4a6 (diff)
parent5615f2737cb034d3d8de70e1e50f1ba8ca78c34d (diff)
downloadgitlab-ce-9b937046144f467649c966a2a1979050cd826f3e.tar.gz
Merge branch 'ci-status-mr-index' into 'master'
Ci status for merge requests index page ![ci-mr-index](/uploads/1424564c87ac6ff5fb2c4bc260fbebdf/ci-mr-index.png) See merge request !1682
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/ci_status_helper.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/helpers/ci_status_helper.rb b/app/helpers/ci_status_helper.rb
index dbd1e26fa79..ed88df5dd86 100644
--- a/app/helpers/ci_status_helper.rb
+++ b/app/helpers/ci_status_helper.rb
@@ -42,4 +42,13 @@ module CiStatusHelper
icon(icon_name)
end
+
+ def render_ci_status(ci_commit)
+ link_to ci_status_path(ci_commit),
+ class: "c#{ci_status_color(ci_commit)}",
+ title: "Build status: #{ci_commit.status}",
+ data: { toggle: 'tooltip', placement: 'left' } do
+ ci_status_icon(ci_commit)
+ end
+ end
end