BigW Consortium Gitlab

_event_push.atom.haml 490 Bytes
Newer Older
1
%div{xmlns: "http://www.w3.org/1999/xhtml"}
2 3
  - event.commits.first(15).each do |commit|
    %p
4
      %strong= commit[:author][:name]
5
      = link_to "(##{truncate_sha(commit[:id])})", project_commit_path(event.project, id: commit[:id])
6 7
      %i
        at
8
        = commit[:timestamp].to_time.to_s(:short)
9
    %blockquote= markdown(escape_once(commit[:message]))
10 11 12 13 14
  - if event.commits_count > 15
    %p
      %i
        \... and
        = pluralize(event.commits_count - 15, "more commit")