Module: AppearancesHelper

Defined in:
app/helpers/appearances_helper.rb

Instance Method Summary collapse

Instance Method Details

#brand_header_logoObject


26
27
28
29
30
31
32
# File 'app/helpers/appearances_helper.rb', line 26

def 
  if brand_item && brand_item.header_logo?
    image_tag brand_item.
  else
    render 'shared/logo.svg'
  end
end

#brand_imageObject


10
11
12
13
14
15
16
# File 'app/helpers/appearances_helper.rb', line 10

def brand_image
  if brand_item.logo?
    image_tag brand_item.
  else
    nil
  end
end

#brand_itemObject


22
23
24
# File 'app/helpers/appearances_helper.rb', line 22

def brand_item
  @appearance ||= Appearance.first
end

#brand_textObject


18
19
20
# File 'app/helpers/appearances_helper.rb', line 18

def brand_text
  markdown(brand_item.description)
end

#brand_titleObject


2
3
4
5
6
7
8
# File 'app/helpers/appearances_helper.rb', line 2

def brand_title
  if brand_item && brand_item.title
    brand_item.title
  else
    'GitLab Community Edition'
  end
end