summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2018-12-06 23:19:14 +0000
committerRobert Speicher <rspeicher@gmail.com>2018-12-06 23:19:14 +0000
commit415fc1f7e4a6c563ad7472c573fd973006775ac1 (patch)
treec8839858df6aab832261cc0ae0680e9505a41218 /app/helpers
parent0f338434b90b6e385c0c1947ff53c143dd7ed6be (diff)
parent64bcdb9ebacc016bfe6e6dc50fc388df227a5938 (diff)
downloadgitlab-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
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/appearances_helper.rb7
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