Show images preview in notes. Show line additions/deletions for commit

This commit is contained in:
Dmitriy Zaporozhets 2013-01-04 22:13:32 +02:00
parent ef5b36eaaf
commit 14d0ef8f37
4 changed files with 15 additions and 43 deletions

View file

@ -34,6 +34,8 @@
= preserve do
= markdown(note.note)
- if note.attachment.url
- if note.attachment.image?
= image_tag note.attachment.url, class: 'thumbnail span4'
.right
%div.file
= link_to note.attachment_identifier, note.attachment.url, target: "_blank"