diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-07-28 16:39:41 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-08-08 11:05:52 +0300 |
commit | 1b5e2303debf00784603d6bd9d87d613de3c8091 (patch) | |
tree | c9b1664fa5a31ab6e22a6c270da5f1bb15aaa71f /lib/gitlab/badge | |
parent | 503c44ee2a66e3e160a9ca9c02aba14a8aa7e310 (diff) |
Use new badge template to render build status badge
Diffstat (limited to 'lib/gitlab/badge')
-rw-r--r-- | lib/gitlab/badge/build.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/gitlab/badge/build.rb b/lib/gitlab/badge/build.rb index 7bc6f285ce1..c94ef3e9678 100644 --- a/lib/gitlab/badge/build.rb +++ b/lib/gitlab/badge/build.rb @@ -21,6 +21,10 @@ module Gitlab Build::Metadata.new(@project, @ref) end + def template + Build::Template.new(status) + end + def type 'image/svg+xml' end |