diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-26 12:09:18 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-04-26 12:09:18 +0000 |
commit | 9edf852c3a851d84b85bc94f7a3b41d5ef04dd32 (patch) | |
tree | f79a739a455d5d02758e225582688c0451465aa6 /app/helpers | |
parent | 6f22c85c38b7a896178879172f4c0f82353308f8 (diff) | |
download | gitlab-ce-9edf852c3a851d84b85bc94f7a3b41d5ef04dd32.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/ci/runners_helper.rb | 4 |
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}" |