debian-mirror-gitlab/app/views/projects/jobs/_table.html.haml

38 lines
1.3 KiB
Text
Raw Normal View History

2016-09-29 09:46:39 +05:30
- admin = local_assigns.fetch(:admin, false)
- if builds.blank?
2021-02-22 17:27:13 +05:30
- if experiment_enabled?(:jobs_empty_state)
.row.empty-state
.col-12
.svg-content.svg-250
= image_tag('jobs-empty-state.svg')
.col-12
.text-content.gl-text-center
%h4
= s_('Jobs|Use jobs to automate your tasks')
%p
= s_('Jobs|Jobs are the building blocks of a GitLab CI/CD pipeline. Each job has a specific task, like testing code. To set up jobs in a CI/CD pipeline, add a CI/CD configuration file to your project.')
= link_to s_('Jobs|Create CI/CD configuration file'), help_page_path('ci/quick_start/README'), class: 'btn gl-button btn-info js-empty-state-button'
- else
.nothing-here-block= s_('Jobs|No jobs to show')
2016-09-29 09:46:39 +05:30
- else
.table-holder
2016-11-03 12:29:30 +05:30
%table.table.ci-table.builds-page
2016-09-29 09:46:39 +05:30
%thead
%tr
%th Status
2017-08-17 22:00:37 +05:30
%th Job
%th Pipeline
2016-09-29 09:46:39 +05:30
- if admin
%th Project
%th Runner
%th Stage
%th Name
2019-09-04 21:01:54 +05:30
%th Timing
2016-09-29 09:46:39 +05:30
%th Coverage
%th
2017-08-17 22:00:37 +05:30
= render partial: "projects/ci/builds/build", collection: builds, as: :build, locals: { commit_sha: true, ref: true, pipeline_link: true, stage: true, allow_retry: true, admin: admin }
2016-09-29 09:46:39 +05:30
2018-03-17 18:26:18 +05:30
= paginate_collection(builds)