summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-03-10 18:05:41 +0000
committerPhil Hughes <me@iamphill.com>2016-03-10 18:05:55 +0000
commit145143ac7fd0ecd9d94d2f0bd9cc48426d5ac829 (patch)
treea7ea0d03eaa8f4b9e5ebb3085b2d8f3cb0532f59 /app/helpers
parentbc19acab2543f959a1fca4c83faf5c1975b7bb90 (diff)
downloadgitlab-ce-145143ac7fd0ecd9d94d2f0bd9cc48426d5ac829.tar.gz
Changed named argument
Set position to auto left so that if it is off-screen it goes to the right
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/ci_status_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/ci_status_helper.rb b/app/helpers/ci_status_helper.rb
index 10456189e21..f20779f2fbb 100644
--- a/app/helpers/ci_status_helper.rb
+++ b/app/helpers/ci_status_helper.rb
@@ -42,12 +42,12 @@ module CiStatusHelper
icon(icon_name + ' fw')
end
- def render_ci_status(ci_commit, placement: 'left')
+ def render_ci_status(ci_commit, tooltip_placement: 'auto left')
link_to ci_status_icon(ci_commit),
ci_status_path(ci_commit),
class: "ci-status-link ci-status-icon-#{ci_commit.status.dasherize}",
title: "Build #{ci_status_label(ci_commit)}",
- data: { toggle: 'tooltip', placement: placement }
+ data: { toggle: 'tooltip', placement: tooltip_placement }
end
def no_runners_for_project?(project)