Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorick Peterse <yorickpeterse@gmail.com>2018-12-06 19:14:12 +0300
committerYorick Peterse <yorickpeterse@gmail.com>2018-12-06 19:14:12 +0300
commit64bcdb9ebacc016bfe6e6dc50fc388df227a5938 (patch)
tree1f12b7e3f2d9c7a6f374d45b36bfba35451d3f71 /app/helpers/appearances_helper.rb
parentb4146c7000231f4a8c71598dcf905d40ea95ab4e (diff)
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.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