diff options
| author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-10-25 09:14:48 +0000 |
|---|---|---|
| committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-10-25 09:14:48 +0000 |
| commit | 9b937046144f467649c966a2a1979050cd826f3e (patch) | |
| tree | 91dfdbacda5cd4cfeda1db43215d2e47e09246d7 /app/helpers | |
| parent | 3c23b6515fcba75b891763d3033d6c7a3eb4d4a6 (diff) | |
| parent | 5615f2737cb034d3d8de70e1e50f1ba8ca78c34d (diff) | |
| download | gitlab-ce-9b937046144f467649c966a2a1979050cd826f3e.tar.gz | |
Merge branch 'ci-status-mr-index' into 'master'
Ci status for merge requests index page

See merge request !1682
Diffstat (limited to 'app/helpers')
| -rw-r--r-- | app/helpers/ci_status_helper.rb | 9 |
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 |
