Set head panel title of help section.
This commit is contained in:
parent
610ed70f77
commit
8c4b6d426d
3 changed files with 8 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
- page_title "Help"
|
||||
%div
|
||||
%h1
|
||||
GitLab
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue