summaryrefslogtreecommitdiff
path: root/app/views/projects/deployments/_commit.html.haml
blob: 31fd982c522804dc578df8e025fd5ba2a979cfa3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
.branch-commit
  - if deployment.ref
    .icon-container
      = deployment.tag? ? icon('tag') : icon('code-fork')
    = link_to deployment.ref, project_ref_path(@project, deployment.ref), class: "ref-name"
  .icon-container.commit-icon
    = custom_icon("icon_commit")
  = link_to deployment.short_sha, namespace_project_commit_path(@project.namespace, @project, deployment.sha), class: "commit-sha"

  %p.commit-title
    %span
      - if commit_title = deployment.commit_title
        = author_avatar(deployment.commit, size: 20)
        = link_to_gfm commit_title, namespace_project_commit_path(@project.namespace, @project, deployment.sha), class: "commit-row-message"
      - else
        Cant find HEAD commit for this branch