gitlabhq/app/views/events/event/_note.html.haml

36 lines
1.1 KiB
Text
Raw Normal View History

.event-title
%span.author_name= link_to_author event
%span.event_label commented on
- if event.note_target
- if event.note_commit?
= event.note_target_type
= 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
%strong
#{event.note_target_type} ##{truncate event.note_target_id}
- elsif event.wall_note?
2013-03-19 13:39:32 +01:00
= link_to 'wall', project_wall_path(event.project)
- else
%strong (deleted)
at
- if event.project
= link_to_project event.project
- else
= event.project_name
.event-body
2013-03-04 21:00:51 +01:00
.event-note
.md
%i.icon-comment-alt.event-note-icon
= sanitize(markdown(truncate(event.target.note, length: 150)), tags: %w(a img b pre p))
2013-02-11 14:47:01 +01:00
- note = event.target
- if note.attachment.url
2013-02-11 20:31:19 +01:00
= link_to note.attachment.secure_url, target: "_blank", class: 'note-file-attach' do
- if note.attachment.image?
= image_tag note.attachment.url, class: 'note-image-attach'
- else
%i.icon-paper-clip
= note.attachment_identifier