BigW Consortium Gitlab

_commit.html.haml 789 Bytes
Newer Older
1
.branch-commit
2
  - if deployment.ref
3 4 5
    .icon-container
      = deployment.tag? ? icon('tag') : icon('code-fork')
    = link_to deployment.ref, namespace_project_commits_path(@project.namespace, @project, deployment.ref), class: "monospace branch-name"
6
  .icon-container.commit-icon
7
    = custom_icon("icon_commit")
8 9 10 11 12
  = link_to deployment.short_sha, namespace_project_commit_path(@project.namespace, @project, deployment.sha), class: "commit-id monospace"

  %p.commit-title
    %span
      - if commit_title = deployment.commit_title
13
        = author_avatar(deployment.commit, size: 20)
14 15 16
        = 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