Skip to content
Snippets Groups Projects
Unverified Commit d8593fd0 authored by Sébastien Gaya's avatar Sébastien Gaya Committed by GitHub
Browse files

Merge pull request #959 from noesya/fix/file-preview

Fix preview bloc fichiers
parents 8aeb4e5b 0b16e248
No related branches found
No related tags found
No related merge requests found
......@@ -25,17 +25,14 @@ end
<% @block.template.elements.each do |element| %>
<% next unless element.blob %>
<li>
<figure>
<figure>
<a href="<%= element.blob.url %>" target="_blank" title="<%= element.title %>"><%= element.title %></a>
<% if document.file.attached? %>
<% file = document.file %>
<figcaption>
<abbr title=""><%= file.filename.extension.upcase %></abbr>
- <abbr title=""><%= number_to_human_size file.byte_size %></abbr>
<abbr title=""><%= element.blob.filename.extension.upcase %></abbr>
- <abbr title=""><%= number_to_human_size element.blob.byte_size %></abbr>
</figcaption>
<% end %>
</a>
</figure>
</a>
</li>
<% end %>
</ul>
......
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