summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/ci/runners_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/helpers/ci/runners_helper.rb b/app/helpers/ci/runners_helper.rb
index 41ef0bd20a8..5012ac29816 100644
--- a/app/helpers/ci/runners_helper.rb
+++ b/app/helpers/ci/runners_helper.rb
@@ -35,6 +35,10 @@ module Ci
end
end
+ def runner_short_name(runner)
+ "##{runner.id} (#{runner.short_sha})"
+ end
+
def runner_link(runner)
display_name = truncate(runner.display_name, length: 15)
id = "\##{runner.id}"