_commit.html.haml 842 字节
Newer Older
1 2
- merge_request = deployment.deployable.try(:merge_request)

K
Kamil Trzcinski 已提交
3 4
%div.branch-commit
  - if deployment.ref
5 6 7 8 9
    .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"
  .icon-container
    = custom_icon("icon_commit")
K
Kamil Trzcinski 已提交
10 11 12 13 14
  = 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
15
        = author_avatar(deployment.commit, size: 20)
K
Kamil Trzcinski 已提交
16 17 18
        = 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