From 70c4badf4e1192413fb4d8e95248533ca1e88c9d Mon Sep 17 00:00:00 2001 From: Bryce Johnson Date: Thu, 2 Feb 2017 14:06:43 -0500 Subject: [PATCH] Rename scripts_body_top to project_javascripts. --- app/views/layouts/_head.html.haml | 2 +- app/views/layouts/project.html.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/layouts/_head.html.haml b/app/views/layouts/_head.html.haml index 703c1009d5f..79e96f54936 100644 --- a/app/views/layouts/_head.html.haml +++ b/app/views/layouts/_head.html.haml @@ -33,7 +33,7 @@ - if content_for?(:page_specific_javascripts) = yield :page_specific_javascripts - = yield :scripts_body_top + = yield :project_javascripts = csrf_meta_tags diff --git a/app/views/layouts/project.html.haml b/app/views/layouts/project.html.haml index 277eb71ea73..f5e7ea7710d 100644 --- a/app/views/layouts/project.html.haml +++ b/app/views/layouts/project.html.haml @@ -3,7 +3,7 @@ - header_title project_title(@project) unless header_title - nav "project" -- content_for :scripts_body_top do +- content_for :project_javascripts do - project = @target_project || @project - if @project_wiki && @page - preview_markdown_path = namespace_project_wiki_preview_markdown_path(project.namespace, project, @page.slug)