Commit 64bcdb9e authored by Yorick Peterse's avatar Yorick Peterse

Move default brand title to a method

This moves the default brand title in AppearancesHelper#brand_title to a
separate method, allowing EE to redefine it without having to redefine
the entire #brand_title method.
parent b4146c70
......@@ -2,7 +2,12 @@
module AppearancesHelper
def brand_title
current_appearance&.title.presence || 'GitLab Community Edition'
current_appearance&.title.presence || default_brand_title
end
def default_brand_title
# This resides in a separate method so that EE can easily redefine it.
'GitLab Community Edition'
end
def brand_image
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment