2013-04-05 12:47:12 -04:00
|
|
|
%div{xmlns: "http://www.w3.org/1999/xhtml"}
|
2012-09-24 05:01:44 -04:00
|
|
|
- event.commits.first(15).each do |commit|
|
|
|
|
%p
|
2013-04-05 12:47:12 -04:00
|
|
|
%strong= commit[:author][:name]
|
2015-01-24 13:02:58 -05:00
|
|
|
= link_to "(##{truncate_sha(commit[:id])})", namespace_project_commit_path(event.project.namespace, event.project, id: commit[:id])
|
2012-09-24 05:01:44 -04:00
|
|
|
%i
|
|
|
|
at
|
2013-04-05 12:47:12 -04:00
|
|
|
= commit[:timestamp].to_time.to_s(:short)
|
2016-05-26 07:18:44 -04:00
|
|
|
%blockquote= markdown(escape_once(commit[:message]), pipeline: :atom, project: event.project, author: event.author)
|
2012-09-24 05:01:44 -04:00
|
|
|
- if event.commits_count > 15
|
|
|
|
%p
|
|
|
|
%i
|
|
|
|
\... and
|
|
|
|
= pluralize(event.commits_count - 15, "more commit")
|