20 lines
796 B
Plaintext
20 lines
796 B
Plaintext
- @events.each do |event|
|
|
.wll.event_feed
|
|
- if event.push?
|
|
- if event.new_branch?
|
|
User pushed new branch
|
|
- else
|
|
= image_tag gravatar_icon(event.pusher_email), :class => "avatar"
|
|
#{event.pusher_name} pushed to
|
|
= link_to project_commits_path(event.project, :ref => event.branch_name) do
|
|
%strong= event.branch_name
|
|
%span.cgray
|
|
= time_ago_in_words(event.created_at)
|
|
ago.
|
|
- if event.commits.count > 1
|
|
= link_to compare_project_commits_path(event.project, :from => event.commits.last, :to => event.commits.first) do
|
|
Compare #{event.commits.last.id[0..8]}...#{event.commits.first.id[0..8]}
|
|
- @project = event.project
|
|
%ul.unstyled
|
|
= render event.commits
|