diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2018-12-06 17:14:12 +0100 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2018-12-06 17:14:12 +0100 |
commit | 64bcdb9ebacc016bfe6e6dc50fc388df227a5938 (patch) | |
tree | 1f12b7e3f2d9c7a6f374d45b36bfba35451d3f71 /app/helpers/appearances_helper.rb | |
parent | b4146c7000231f4a8c71598dcf905d40ea95ab4e (diff) | |
download | gitlab-ce-64bcdb9ebacc016bfe6e6dc50fc388df227a5938.tar.gz |
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.
Diffstat (limited to 'app/helpers/appearances_helper.rb')
-rw-r--r-- | app/helpers/appearances_helper.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/app/helpers/appearances_helper.rb b/app/helpers/appearances_helper.rb index ed13c5cfdd6..3f69af50f25 100644 --- a/app/helpers/appearances_helper.rb +++ b/app/helpers/appearances_helper.rb @@ -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 |