debian-mirror-gitlab/lib/api/entities/appearance.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
709 B
Ruby
Raw Normal View History

2020-03-09 13:42:32 +05:30
# frozen_string_literal: true
module API
module Entities
class Appearance < Grape::Entity
expose :title
2023-03-04 22:38:38 +05:30
expose :short_title
2020-03-09 13:42:32 +05:30
expose :description
expose :logo do |appearance, options|
appearance.logo.url
end
expose :header_logo do |appearance, options|
appearance.header_logo.url
end
expose :favicon do |appearance, options|
appearance.favicon.url
end
expose :new_project_guidelines
2020-05-24 23:13:21 +05:30
expose :profile_image_guidelines
2020-03-09 13:42:32 +05:30
expose :header_message
expose :footer_message
expose :message_background_color
expose :message_font_color
expose :email_header_and_footer_enabled
end
end
end