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-05-01 11:39:11 +0300
committerDouwe Maan <douwe@gitlab.com>2015-05-01 11:39:16 +0300
commit92fd3ccee05acdfd5e498734ed287458a8dd21a3 (patch)
treea794a8017636ce7f50a7f4ef4201395894a5451e /app/controllers/help_controller.rb
parentae09c2a6db0d15caedc080c319add147c79fd02a (diff)
Add helpers for header title and sidebar, and move setting those from controllers to layouts.
Diffstat (limited to 'app/controllers/help_controller.rb')
-rw-r--r--app/controllers/help_controller.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/app/controllers/help_controller.rb b/app/controllers/help_controller.rb
index 2842151e3bd..8a45dc8860d 100644
--- a/app/controllers/help_controller.rb
+++ b/app/controllers/help_controller.rb
@@ -1,5 +1,5 @@
class HelpController < ApplicationController
- before_action :set_title
+ layout 'help'
def index
end
@@ -46,11 +46,6 @@ class HelpController < ApplicationController
private
- def set_title
- @title = "Help"
- @title_url = help_path
- end
-
def path_params
params.require(:category)
params.require(:file)