From b46d38aef4948c0a428c4334adc8aa221923decd Mon Sep 17 00:00:00 2001 From: Filipa Lacerda Date: Sat, 6 May 2017 22:54:05 +0100 Subject: Move file loading to the top of the file --- app/views/projects/pipelines/_with_tabs.html.haml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'app') diff --git a/app/views/projects/pipelines/_with_tabs.html.haml b/app/views/projects/pipelines/_with_tabs.html.haml index 1c7d1768aa5..075ddc0025c 100644 --- a/app/views/projects/pipelines/_with_tabs.html.haml +++ b/app/views/projects/pipelines/_with_tabs.html.haml @@ -1,5 +1,9 @@ - failed_builds = @pipeline.statuses.latest.failed +- content_for :page_specific_javascripts do + = page_specific_javascript_bundle_tag('common_vue') + = page_specific_javascript_bundle_tag('pipelines_graph') + .tabs-holder %ul.pipelines-tabs.nav-links.no-top.no-bottom %li.js-pipeline-tab-link @@ -19,10 +23,6 @@ #js-tab-pipeline.tab-pane #js-pipeline-graph-vue{ data: { endpoint: namespace_project_pipeline_path(@project.namespace, @project, @pipeline, format: :json) } } - - content_for :page_specific_javascripts do - = page_specific_javascript_bundle_tag('common_vue') - = page_specific_javascript_bundle_tag('pipelines_graph') - #js-tab-builds.tab-pane - if pipeline.yaml_errors.present? .bs-callout.bs-callout-danger -- cgit v1.2.3