summaryrefslogtreecommitdiff
path: root/app/views/projects/deployments/_deployment.html.haml
blob: e92297a5a6a2d8a9ebcd887c4c428e7bf0cb3a90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
.gl-responsive-table-row.deployment{ role: 'row' }
  .table-section.section-15{ role: 'gridcell' }
    .table-mobile-header{ role: 'rowheader' }= _("Status")
    .table-mobile-content
      = render_deployment_status(deployment)

  .table-section.section-10{ role: 'gridcell' }
    .table-mobile-header{ role: 'rowheader' }= _("ID")
    %strong.table-mobile-content{ data: { testid: 'deployment-id' } } ##{deployment.iid}

  .table-section.section-10{ role: 'gridcell' }
    .table-mobile-header{ role: 'rowheader' }= _("Triggerer")
    .table-mobile-content
      - if deployment.deployed_by
        = user_avatar(user: deployment.deployed_by, size: 26, css_class: "mr-0 float-none")

  .table-section.section-25{ role: 'gridcell' }
    .table-mobile-header{ role: 'rowheader' }= _("Commit")
    = render 'projects/deployments/commit', deployment: deployment

  .table-section.section-10.build-column{ role: 'gridcell' }
    .table-mobile-header{ role: 'rowheader' }= _("Job")
    - if deployment.deployable
      .table-mobile-content
        .flex-truncate-parent
          .flex-truncate-child
            = link_to deployment_path(deployment), class: 'build-link' do
              #{deployment.deployable.name} (##{deployment.deployable.id})
    - else
      = gl_badge_tag s_('Deployment|API'), { variant: :info }, { class: 'gl-cursor-help', data: { toggle: 'tooltip' }, title: s_('Deployment|This deployment was created using the API') }

  .table-section.section-10{ role: 'gridcell' }
    .table-mobile-header{ role: 'rowheader' }= _("Created")
    %span.table-mobile-content.flex-truncate-parent
      %span.flex-truncate-child
        = time_ago_with_tooltip(deployment.created_at)

  .table-section.section-10{ role: 'gridcell' }
    .table-mobile-header{ role: 'rowheader' }= _("Deployed")
    - if deployment.deployed_at
      %span.table-mobile-content.flex-truncate-parent
        %span.flex-truncate-child
          = time_ago_with_tooltip(deployment.deployed_at)

  .table-section.section-10.table-button-footer{ role: 'gridcell' }
    .btn-group.table-action-buttons
      = render 'projects/deployments/actions', deployment: deployment
      = render 'projects/deployments/rollback', deployment: deployment
      = render_if_exists 'projects/deployments/approvals', deployment: deployment