_commit.html.haml 812 字节
Newer Older
A
Annabel Dunstone Gray 已提交
1 2 3 4
.table-mobile-content
  .branch-commit
    - if deployment.ref
      %span.icon-container
5
        = deployment.tag? ? icon('tag') : sprite_icon('fork', css_class: 'sprite')
A
Annabel Dunstone Gray 已提交
6 7 8
      = link_to deployment.ref, project_ref_path(@project, deployment.ref), class: "ref-name"
    .icon-container.commit-icon
      = custom_icon("icon_commit")
9
    = link_to deployment.short_sha, project_commit_path(@project, deployment.sha), class: "commit-sha mr-0"
K
Kamil Trzcinski 已提交
10

A
Annabel Dunstone Gray 已提交
11 12 13 14
    %p.commit-title.flex-truncate-parent
      %span.flex-truncate-child
        - if commit_title = deployment.commit_title
          = author_avatar(deployment.commit, size: 20)
15
          = link_to_markdown commit_title, project_commit_path(@project, deployment.sha), class: "commit-row-message"
A
Annabel Dunstone Gray 已提交
16
        - else
17
          = _("Can't find HEAD commit for this branch")