diff options
author | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-04-13 13:09:20 +0300 |
---|---|---|
committer | Luke "Jared" Bennett <lbennett@gitlab.com> | 2017-04-13 13:09:20 +0300 |
commit | deb56f21cb5fc7ef9292d4307bc1618af0c1cb29 (patch) | |
tree | 6ab897e9057a9ac8edc690c0f848f3bb99c4490e /app/serializers | |
parent | 9daf4f646b341480cc1b9c8452b41f1b933f98fc (diff) |
[ci skip] Use favicon full path
Diffstat (limited to 'app/serializers')
-rw-r--r-- | app/serializers/status_entity.rb | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/app/serializers/status_entity.rb b/app/serializers/status_entity.rb index dfd9d1584a1..8aa894f9fee 100644 --- a/app/serializers/status_entity.rb +++ b/app/serializers/status_entity.rb @@ -1,8 +1,15 @@ class StatusEntity < Grape::Entity include RequestAwareEntity + include CiStatusHelper - expose :icon, :favicon, :text, :label, :group + format_with(:status_favicon_path) do |favicon_name| + ci_status_favicon_path(favicon_name) + end + + expose :icon, :text, :label, :group expose :has_details?, as: :has_details expose :details_path + + expose :favicon, format_with: :status_favicon_path end |