diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-05-06 22:54:05 +0100 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2017-05-06 22:54:43 +0100 |
commit | b46d38aef4948c0a428c4334adc8aa221923decd (patch) | |
tree | 6751b22bbe7f57c21c62ad1ead41991c10965d94 | |
parent | 8f64091a9550f9073889752bb975d96e074fd734 (diff) | |
download | gitlab-ce-b46d38aef4948c0a428c4334adc8aa221923decd.tar.gz |
Move file loading to the top of the file
-rw-r--r-- | app/views/projects/pipelines/_with_tabs.html.haml | 8 |
1 files changed, 4 insertions, 4 deletions
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 |