Commit dd8d0a65 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix procfile and attachment in event nore

parent d64090b8
web: bundle exec unicorn_rails -p $PORT web: bundle exec unicorn_rails -p $PORT
worker: bundle exec sidekiq -q post_receive,mailer,system_hook,project_web_hook,common,default,gitolite worker: bundle exec sidekiq -q post_receive,mailer,system_hook,project_web_hook,common,default,gitlab_shell
...@@ -25,9 +25,10 @@ ...@@ -25,9 +25,10 @@
%span.event-note %span.event-note
= markdown truncate(event.target.note, length: 70) = markdown truncate(event.target.note, length: 70)
- note = event.target - note = event.target
= link_to note.attachment.url, target: "_blank", class: 'note-file-attach' do - if note.attachment.url
- if note.attachment.image? = link_to note.attachment.url, target: "_blank", class: 'note-file-attach' do
= image_tag note.attachment.url, class: 'note-image-attach' - if note.attachment.image?
- else = image_tag note.attachment.url, class: 'note-image-attach'
%i.icon-paper-clip - else
= note.attachment_identifier %i.icon-paper-clip
= note.attachment_identifier
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment