2012-12-14 18:33:33 +01:00
|
|
|
.event-title
|
|
|
|
%span.author_name= link_to_author event
|
2013-01-17 21:53:40 +01:00
|
|
|
%span.event_label commented on
|
2012-12-16 18:52:39 +01:00
|
|
|
- if event.note_target
|
2012-12-14 20:39:55 +01:00
|
|
|
- if event.note_commit?
|
2013-01-17 21:53:40 +01:00
|
|
|
= event.note_target_type
|
2012-12-14 20:39:55 +01:00
|
|
|
= link_to event.note_short_commit_id, project_commit_path(event.project, event.note_commit_id), class: "commit_short_id"
|
|
|
|
- else
|
|
|
|
= link_to [event.project, event.note_target] do
|
2013-01-17 21:53:40 +01:00
|
|
|
%strong
|
|
|
|
#{event.note_target_type} ##{truncate event.note_target_id}
|
2012-12-14 20:39:55 +01:00
|
|
|
|
2012-12-16 18:52:39 +01:00
|
|
|
- elsif event.wall_note?
|
2013-01-17 21:53:40 +01:00
|
|
|
= link_to 'wall', wall_project_path(event.project)
|
2012-12-14 18:33:33 +01:00
|
|
|
- else
|
|
|
|
%strong (deleted)
|
|
|
|
at
|
|
|
|
- if event.project
|
|
|
|
= link_to_project event.project
|
|
|
|
- else
|
|
|
|
= event.project_name
|
|
|
|
|
|
|
|
.event-body
|
2013-01-16 23:03:21 +01:00
|
|
|
%i.icon-comment-alt.event-note-icon
|
2013-01-05 11:12:02 +01:00
|
|
|
%span.event-note
|
2013-01-16 23:03:21 +01:00
|
|
|
= markdown truncate(event.target.note, length: 70)
|