2014-02-26 03:06:58 -05:00
|
|
|
%li.commit.js-toggle-container
|
|
|
|
.commit-row-title
|
2013-04-25 10:15:33 -04:00
|
|
|
= link_to commit.short_id(8), project_commit_path(project, commit), class: "commit_short_id"
|
2012-11-10 17:08:42 -05:00
|
|
|
|
2014-01-08 05:42:57 -05:00
|
|
|
%span.str-truncated
|
|
|
|
= link_to_gfm commit.title, project_commit_path(project, commit.id), class: "commit-row-message"
|
2014-02-25 08:54:30 -05:00
|
|
|
- if commit.description?
|
2014-02-26 03:13:11 -05:00
|
|
|
%a.text-expander.js-toggle-button ...
|
2014-02-25 08:54:30 -05:00
|
|
|
|
2014-07-08 11:28:02 -04:00
|
|
|
= link_to_browse_code(project, commit)
|
2014-07-08 10:12:06 -04:00
|
|
|
|
2013-09-10 03:17:15 -04:00
|
|
|
.notes_count
|
2014-06-10 02:50:27 -04:00
|
|
|
- if @note_counts
|
|
|
|
- note_count = @note_counts.fetch(commit.id, 0)
|
|
|
|
- else
|
|
|
|
- notes = project.notes.for_commit_id(commit.id)
|
|
|
|
- note_count = notes.count
|
|
|
|
|
|
|
|
- if note_count > 0
|
2013-11-27 04:29:52 -05:00
|
|
|
%span.label.label-gray
|
2014-06-10 02:50:27 -04:00
|
|
|
%i.icon-comment= note_count
|
2013-09-10 03:17:15 -04:00
|
|
|
|
2014-02-25 08:54:30 -05:00
|
|
|
- if commit.description?
|
2014-02-26 03:06:58 -05:00
|
|
|
.commit-row-description.js-toggle-content
|
2014-07-10 04:09:00 -04:00
|
|
|
%pre
|
|
|
|
= commit.description
|
2014-02-25 08:54:30 -05:00
|
|
|
|
2013-09-10 03:17:15 -04:00
|
|
|
.commit-row-info
|
|
|
|
= commit_author_link(commit, avatar: true, size: 16)
|
2013-12-18 09:03:59 -05:00
|
|
|
.committed_ago
|
2013-12-30 07:49:22 -05:00
|
|
|
#{time_ago_with_tooltip(commit.committed_date)}
|