_commit.html.haml 665 字节
Newer Older
R
randx 已提交
1
%li.commit
D
Dmitriy Zaporozhets 已提交
2
  .commit-row-title
I
Izaak Alpert 已提交
3
    = link_to commit.short_id(8), project_commit_path(project, commit), class: "commit_short_id"
4
     
D
Dmitriy Zaporozhets 已提交
5 6 7
    = link_to_gfm truncate(commit.title, length: 70), project_commit_path(project, commit.id), class: "commit-row-message"
    = link_to "Browse Code »", project_tree_path(project, commit), class: "pull-right"
    .notes_count
I
Izaak Alpert 已提交
8
      - notes = project.notes.for_commit_id(commit.id)
9
      - if notes.any?
D
Dmitriy Zaporozhets 已提交
10
        %span.label.label-gray
11 12
          %i.icon-comment
          = notes.count
D
Dmitriy Zaporozhets 已提交
13 14 15

  .commit-row-info
    = commit_author_link(commit, avatar: true, size: 16)
16
    #{time_ago_with_tooltip(commit.committed_date)} ago