summaryrefslogtreecommitdiff
path: root/app/views/events/_event_push.atom.haml
blob: 42762e04b51a4e7bb2f723400e5794955b558b26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
%div{xmlns: "http://www.w3.org/1999/xhtml"}
  - event.commits.first(15).each do |commit|
    %p
      %strong= commit[:author][:name]
      = link_to "(##{truncate_sha(commit[:id])})", namespace_project_commit_path(event.project.namespace, event.project, id: commit[:id])
      %i
        at
        = commit[:timestamp].to_time.to_s(:short)
    %blockquote= markdown(escape_once(commit[:message]), xhtml: true, reference_only_path: false, project: note.project)
  - if event.commits_count > 15
    %p
      %i
        \... and
        = pluralize(event.commits_count - 15, "more commit")