summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-04-30 21:28:07 +0200
committerDouwe Maan <douwe@gitlab.com>2015-04-30 21:28:07 +0200
commit8c4b6d426d11de682db601a5ca585c11bcd0cd23 (patch)
tree9c7a564ef4828c9b5a7749040442e2ac7dc58f00
parent610ed70f77dd9a31c63a7b378df5940bcb84300c (diff)
downloadgitlab-ce-8c4b6d426d11de682db601a5ca585c11bcd0cd23.tar.gz
Set head panel title of help section.
-rw-r--r--app/controllers/help_controller.rb7
-rw-r--r--app/views/help/index.html.haml1
-rw-r--r--app/views/help/show.html.haml2
3 files changed, 8 insertions, 2 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)
diff --git a/app/views/help/index.html.haml b/app/views/help/index.html.haml
index 9ebdd373f39..af39dfeac5b 100644
--- a/app/views/help/index.html.haml
+++ b/app/views/help/index.html.haml
@@ -1,4 +1,3 @@
-- page_title "Help"
%div
%h1
GitLab
diff --git a/app/views/help/show.html.haml b/app/views/help/show.html.haml
index bc8e08eeae4..8551496b98a 100644
--- a/app/views/help/show.html.haml
+++ b/app/views/help/show.html.haml
@@ -1,3 +1,3 @@
-- page_title @file.humanize, *@category.split("/").reverse.map(&:humanize), "Help"
+- page_title @file.humanize, *@category.split("/").reverse.map(&:humanize)
.documentation.wiki
= markdown @markdown.gsub('$your_email', current_user.email)