Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix procfile and attachment in event nore

  • Loading branch information...
commit dd8d0a659d947df0dcaaae2960aa1567a8740b11 1 parent d64090b
@randx randx authored
Showing with 8 additions and 7 deletions.
  1. +1 −1  Procfile
  2. +7 −6 app/views/events/event/_note.html.haml
View
2  Procfile
@@ -1,2 +1,2 @@
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
View
13 app/views/events/event/_note.html.haml
@@ -25,9 +25,10 @@
%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
+ - if note.attachment.url
+ = 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
Please sign in to comment.
Something went wrong with that request. Please try again.