BigW Consortium Gitlab

_event_push.atom.haml 566 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]
Vinnie Okada committed
5
      = link_to "(##{truncate_sha(commit[:id])})", namespace_project_commit_path(event.project.namespace, event.project, id: commit[:id])
6 7
      %i
        at
8
        = commit[:timestamp].to_time.to_s(:short)
9
    %blockquote= markdown(escape_once(commit[:message]), pipeline: :atom, project: event.project)
10 11 12 13 14
  - if event.commits_count > 15
    %p
      %i
        \... and
        = pluralize(event.commits_count - 15, "more commit")