debian-mirror-gitlab/app/views/projects/pipelines/_with_tabs.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
3.1 KiB
Text
Raw Normal View History

2020-10-24 23:57:45 +05:30
- return if pipeline_has_errors
2019-12-26 22:10:19 +05:30
2017-08-17 22:00:37 +05:30
.tabs-holder
2018-11-08 19:23:39 +05:30
%ul.pipelines-tabs.nav-links.no-top.no-bottom.mobile-separator.nav.nav-tabs
2017-08-17 22:00:37 +05:30
%li.js-pipeline-tab-link
2020-04-08 14:13:33 +05:30
= link_to project_pipeline_path(@project, @pipeline), data: { target: '#js-tab-pipeline', action: 'pipelines', toggle: 'tab' }, class: 'pipeline-tab' do
2019-07-07 11:18:12 +05:30
= _('Pipeline')
2021-03-11 19:13:27 +05:30
%li.js-dag-tab-link
= link_to dag_project_pipeline_path(@project, @pipeline), data: { target: '#js-tab-dag', action: 'dag', toggle: 'tab' }, class: 'dag-tab' do
= _('Needs')
2020-06-23 00:09:42 +05:30
%li.js-builds-tab-link
= link_to builds_project_pipeline_path(@project, @pipeline), data: { target: '#js-tab-builds', action: 'builds', toggle: 'tab' }, class: 'builds-tab' do
= _('Jobs')
2022-01-26 12:08:38 +05:30
= gl_badge_tag @pipeline.total_size, { size: :sm }, { class: 'js-builds-counter' }
2018-10-15 14:42:47 +05:30
- if @pipeline.failed_builds.present?
2017-08-17 22:00:37 +05:30
%li.js-failures-tab-link
2018-03-27 19:54:05 +05:30
= link_to failures_project_pipeline_path(@project, @pipeline), data: { target: '#js-tab-failures', action: 'failures', toggle: 'tab' }, class: 'failures-tab' do
2019-07-07 11:18:12 +05:30
= _('Failed Jobs')
2022-01-26 12:08:38 +05:30
= gl_badge_tag @pipeline.failed_builds.count, { size: :sm }, { class: 'js-failures-counter' }
2020-10-24 23:57:45 +05:30
%li.js-tests-tab-link
= link_to test_report_project_pipeline_path(@project, @pipeline), data: { target: '#js-tab-tests', action: 'test_report', toggle: 'tab' }, class: 'test-tab' do
= s_('TestReports|Tests')
2022-01-26 12:08:38 +05:30
= gl_badge_tag @pipeline.test_report_summary.total[:count], { size: :sm }, { class: 'js-test-report-badge-counter' }
2018-11-18 11:00:15 +05:30
= render_if_exists "projects/pipelines/tabs_holder", pipeline: @pipeline, project: @project
2017-08-17 22:00:37 +05:30
.tab-content
2021-02-22 17:27:13 +05:30
#js-tab-pipeline.tab-pane.gl-w-full
2017-09-10 17:25:29 +05:30
#js-pipeline-graph-vue
2017-08-17 22:00:37 +05:30
#js-tab-builds.tab-pane
2021-04-29 21:17:54 +05:30
- if stages.present?
2022-05-07 20:08:51 +05:30
#js-pipeline-jobs-vue{ data: { full_path: @project.full_path, pipeline_iid: @pipeline.iid } }
2017-08-17 22:00:37 +05:30
2018-10-15 14:42:47 +05:30
- if @pipeline.failed_builds.present?
2022-07-16 23:28:13 +05:30
#js-tab-failures.tab-pane
2022-07-23 23:45:48 +05:30
#js-pipeline-failed-jobs-vue{ data: { full_path: @project.full_path, pipeline_iid: @pipeline.iid, failed_jobs_summary_data: prepare_failed_jobs_summary_data(@pipeline.failed_builds) } }
2019-12-26 22:10:19 +05:30
2021-03-11 19:13:27 +05:30
#js-tab-dag.tab-pane
2021-09-30 23:02:18 +05:30
#js-pipeline-dag-vue{ data: { pipeline_project_path: @project.full_path, pipeline_iid: @pipeline.iid, empty_svg_path: image_path('illustrations/empty-state/empty-dag-md.svg'), about_dag_doc_path: help_page_path('ci/directed_acyclic_graph/index.md'), dag_doc_path: help_page_path('ci/yaml/index.md', anchor: 'needs')} }
2020-05-24 23:13:21 +05:30
2019-12-26 22:10:19 +05:30
#js-tab-tests.tab-pane
2020-10-24 23:57:45 +05:30
#js-pipeline-tests-detail{ data: { summary_endpoint: summary_project_pipeline_tests_path(@project, @pipeline, format: :json),
2021-03-11 19:13:27 +05:30
suite_endpoint: project_pipeline_test_path(@project, @pipeline, suite_name: 'suite', format: :json),
2021-06-08 01:23:25 +05:30
blob_path: project_blob_path(@project, @pipeline.sha),
2022-10-11 01:57:18 +05:30
has_test_report: @pipeline.complete_and_has_reports?(Ci::JobArtifact.of_report_type(:test)).to_s,
2022-07-23 23:45:48 +05:30
empty_state_image_path: image_path('illustrations/empty-state/empty-test-cases-lg.svg'),
artifacts_expired_image_path: image_path('illustrations/pipeline.svg') } }
2018-11-18 11:00:15 +05:30
= render_if_exists "projects/pipelines/tabs_content", pipeline: @pipeline, project: @project