gitlabhq/app/views/commits/_commit.html.haml
2012-10-27 18:27:47 +02:00

22 lines
750 B
Plaintext

%li.commit
.browse_code_link_holder
%p
%strong= link_to "Browse Code »", project_tree_path(@project, commit), class: "right"
%p
= link_to commit.short_id(8), project_commit_path(@project, commit), class: "commit_short_id"
%strong= commit.author_link avatar: true, size: 24
%span.dash –
= link_to_gfm truncate(commit.title, length: 50), project_commit_path(@project, commit.id), class: "row_title"
%span.committed_ago
= time_ago_in_words(commit.committed_date)
ago
 
%span.notes_count
- notes = @project.commit_notes(commit) + @project.commit_line_notes(commit)
- if notes.any?
%span.btn.small.disabled.grouped
%i.icon-comment
= notes.count