sibu 0.2.8 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/sibu/document.rb +4 -0
- data/app/views/sibu/documents/index.html.erb +2 -2
- data/lib/sibu/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d4de3f8c930710c6b999e42d26de51430104679
|
4
|
+
data.tar.gz: 9e185ac0d6619ebfee78ce1865bd289d3f743835
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61fb2779438814e31070d05365dcae11b054cdfd57dd78287ad239dd2a5e6e2404dada3a22bcbd496dcbf009020f22bdbe6a7c705991c65103836efded0c9d1d
|
7
|
+
data.tar.gz: 7ff856bee09b60257f62151032efd7c2bce2e1eacd9e893d5070dfcb745239c93dc33642aae5db64537900d554ca6320ee1935d1b85a7f2009cac1e481218e9f
|
data/app/models/sibu/document.rb
CHANGED
@@ -16,13 +16,13 @@
|
|
16
16
|
<tbody>
|
17
17
|
<% @documents.each do |doc| %>
|
18
18
|
<tr>
|
19
|
-
<td><%= doc.
|
19
|
+
<td><%= doc.file_name %></td>
|
20
20
|
<td><%= doc.metadata[:size] > (1024 * 1024) ? "#{doc.metadata[:size] / (1024 * 1024)} Mo" : "#{doc.metadata[:size] / 1024} Ko" %></td>
|
21
21
|
<td><%= l doc.updated_at %></td>
|
22
22
|
<td><%= doc.file_url %></td>
|
23
23
|
<td>
|
24
24
|
<%= link_to 'Voir', doc.file_url, target: '_blank' %> |
|
25
|
-
<%= link_to 'Supprimer', document_path(doc), method: :delete, data: {confirm: "Supprimer le document \"#{doc.
|
25
|
+
<%= link_to 'Supprimer', document_path(doc), method: :delete, data: {confirm: "Supprimer le document \"#{doc.file_name}\" ?"} %>
|
26
26
|
</td>
|
27
27
|
</tr>
|
28
28
|
<% end %>
|
data/lib/sibu/version.rb
CHANGED