Skip to content
Snippets Groups Projects
Commit 8e0b58d7 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

render note with attachment for event

parent ab191963
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -52,6 +52,15 @@
padding-left: 5px;
display: inline-block;
color: #555;
.note-file-attach {
margin-left: -25px;
float: left;
.note-image-attach {
margin-left: 0px;
max-width: 200px;
}
}
}
.event-note-icon {
color: #777;
Loading
Loading
Loading
Loading
@@ -273,6 +273,7 @@ ul.notes {
}
 
 
.note-form-actions {
background: #F9F9F9;
height: 45px;
Loading
Loading
Loading
Loading
@@ -24,3 +24,10 @@
%i.icon-comment-alt.event-note-icon
%span.event-note
= markdown truncate(event.target.note, length: 70)
- note = event.target
= link_to note.attachment.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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment