Set head panel title of help section.

This commit is contained in:
Douwe Maan 2015-04-30 21:28:07 +02:00
parent 610ed70f77
commit 8c4b6d426d
3 changed files with 8 additions and 2 deletions

View file

@ -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)

View file

@ -1,4 +1,3 @@
- page_title "Help"
%div
%h1
GitLab

View file

@ -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)