Improving production logs, removing n+1 on media attachments in atom,

adding attachments display to static views
This commit is contained in:
Eugen Rochko
2016-09-08 01:24:26 +02:00
parent 87576e1ab1
commit 0f4bc56719
7 changed files with 45 additions and 3 deletions

View File

@ -38,6 +38,10 @@
.content= content_for_status(proper_status(status))
%ul.media-attachments
- status.media_attachments.each do |media|
%li.transparent-background= link_to '', media.file.url, style: "background-image: url(#{media.file.url(:small)})", target: '_blank'
- if include_threads
- status.descendants.with_includes.with_counters.each do |status|
= render partial: 'status', locals: { status: status, is_successor: true }