2016-09-12 11:58:38 +00:00
- admin = local_assigns.fetch(:admin, false)
2016-09-12 07:52:56 +00:00
2016-09-01 08:02:01 +00:00
- if builds.blank?
2021-02-08 09:09:30 +00:00
- if @project
2020-12-02 12:09:46 +00:00
.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.')
2021-06-07 18:10:23 +00:00
= link_to s_('Jobs|Create CI/CD configuration file'), project_ci_pipeline_editor_path(project), class: 'btn gl-button btn-confirm js-empty-state-button'
2020-12-02 12:09:46 +00:00
- else
.nothing-here-block= s_('Jobs|No jobs to show')
2016-09-01 08:02:01 +00:00
- else
.table-holder
2016-10-10 21:31:24 +00:00
%table.table.ci-table.builds-page
2016-09-01 08:02:01 +00:00
%thead
%tr
%th Status
2021-07-30 18:09:08 +00:00
%th Name
2017-01-25 15:51:11 +00:00
%th Job
2016-10-24 20:47:02 +00:00
%th Pipeline
2016-09-01 12:09:58 +00:00
- if admin
2016-08-11 09:02:09 +00:00
%th Project
%th Runner
2016-09-01 08:02:01 +00:00
%th Stage
2021-04-14 00:10:39 +00:00
%th Duration
2016-09-12 07:52:56 +00:00
%th Coverage
2016-09-01 12:27:23 +00:00
%th
2016-09-01 08:02:01 +00:00
2017-03-31 14:30:08 +00:00
= 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-08-11 09:02:09 +00:00
2018-01-11 13:22:52 +00:00
= paginate_collection(builds)