Skip to content
Snippets Groups Projects
Commit 883a8ddf authored by Arnaud Levy's avatar Arnaud Levy
Browse files

Fix #926

parent 2af19850
No related branches found
No related tags found
No related merge requests found
......@@ -27,10 +27,14 @@ end
<li>
<figure>
<a href="<%= element.blob.url %>" target="_blank" title="<%= element.title %>"><%= element.title %></a>
<figcaption>
<abbr title="">TODO : EXTENSION</abbr>
- <abbr title="">TODO : TAILLE FICHIER</abbr>
</figcaption>
<% 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>
</figcaption>
<% end %>
</figure>
</a>
</li>
......
......@@ -13,10 +13,10 @@
<i class="bi bi-file-earmark-text display-1"></i>
<% if document.file.attached? %>
<% file = document.file %>
<span>
<%= file.filename.extension.upcase %> -
<%= number_to_human_size file.byte_size %>
</span>
<span>
<%= file.filename.extension.upcase %>
- <%= number_to_human_size file.byte_size %>
</span>
<% end %>
</div>
<p class="mb-3">
......
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