diff options
author | Robert Speicher <rspeicher@gmail.com> | 2018-12-06 23:19:14 +0000 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2018-12-06 23:19:14 +0000 |
commit | 415fc1f7e4a6c563ad7472c573fd973006775ac1 (patch) | |
tree | c8839858df6aab832261cc0ae0680e9505a41218 | |
parent | 0f338434b90b6e385c0c1947ff53c143dd7ed6be (diff) | |
parent | 64bcdb9ebacc016bfe6e6dc50fc388df227a5938 (diff) | |
download | gitlab-ce-415fc1f7e4a6c563ad7472c573fd973006775ac1.tar.gz |
Merge branch 'default-brand-title' into 'master'
Move default brand title to a method
See merge request gitlab-org/gitlab-ce!23632
-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 |