BigW Consortium Gitlab

_deployment.html.haml 1.31 KB
Newer Older
1
.gl-responsive-table-row.deployment{ role: 'row' }
2
  .table-section.section-10{ role: 'gridcell' }
3 4
    .table-mobile-header{ role: 'rowheader' } ID
    %strong.table-mobile-content ##{deployment.iid}
5

6
  .table-section.section-30{ role: 'gridcell' }
7
    .table-mobile-header{ role: 'rowheader' } Commit
8
    = render 'projects/deployments/commit', deployment: deployment
9

10
  .table-section.section-25.build-column{ role: 'gridcell' }
11
    .table-mobile-header{ role: 'rowheader' } Job
12
    - if deployment.deployable
13
      .table-mobile-content
14 15 16 17
        .flex-truncate-parent
          .flex-truncate-child
            = link_to [@project.namespace.becomes(Namespace), @project, deployment.deployable], class: 'build-link' do
              #{deployment.deployable.name} (##{deployment.deployable.id})
18
        - if deployment.user
19 20 21
          %div
            by
            = user_avatar(user: deployment.user, size: 20)
22

23
  .table-section.section-15{ role: 'gridcell' }
24 25
    .table-mobile-header{ role: 'rowheader' } Created
    %span.table-mobile-content= time_ago_with_tooltip(deployment.created_at)
26

27
  .table-section.section-20.table-button-footer{ role: 'gridcell' }
28
    .btn-group.table-action-buttons
29 30
      = render 'projects/deployments/actions', deployment: deployment
      = render 'projects/deployments/rollback', deployment: deployment