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:
authorDouwe Maan <douwe@gitlab.com>2015-04-30 22:28:07 +0300
committerDouwe Maan <douwe@gitlab.com>2015-04-30 22:28:07 +0300
commit8c4b6d426d11de682db601a5ca585c11bcd0cd23 (patch)
tree9c7a564ef4828c9b5a7749040442e2ac7dc58f00 /app/controllers/help_controller.rb
parent610ed70f77dd9a31c63a7b378df5940bcb84300c (diff)
Set head panel title of help section.
Diffstat (limited to 'app/controllers/help_controller.rb')
-rw-r--r--app/controllers/help_controller.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/controllers/help_controller.rb b/app/controllers/help_controller.rb
index b405cc7e689..2842151e3bd 100644
--- a/app/controllers/help_controller.rb
+++ b/app/controllers/help_controller.rb
@@ -1,4 +1,6 @@
class HelpController < ApplicationController
+ before_action :set_title
+
def index
end
@@ -44,6 +46,11 @@ class HelpController < ApplicationController
private
+ def set_title
+ @title = "Help"
+ @title_url = help_path
+ end
+
def path_params
params.require(:category)
params.require(:file)