sibu 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55f88a8944722aa3bd33d953891b63cef8715953
|
4
|
+
data.tar.gz: 3a9ffd847bfbacd5f62d1ce5e4a69b3a227f1e56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1cd49ba86dc257b3ae41427263efa1301145fc76dc3122d5c480abfe7c1b7e58723b370fa00ad49095aaef821835d21df023864cb0dff7513c6ef101863f8b1
|
7
|
+
data.tar.gz: 31d3842e221dc8634b9a5d365999499b0216d72b7dae5b79aa3b74520483b1eb3d49f028641ab229dfdfc7c8095d7e64cf58a5ce2e1ae134005f13f1cf9a1d55
|
@@ -3,7 +3,7 @@ require_dependency "sibu/application_controller"
|
|
3
3
|
module Sibu
|
4
4
|
class DocumentsController < ApplicationController
|
5
5
|
def index
|
6
|
-
@documents = Sibu::Document.for_user(sibu_user)
|
6
|
+
@documents = Sibu::Document.shared + Sibu::Document.for_user(sibu_user)
|
7
7
|
end
|
8
8
|
|
9
9
|
def new
|
data/app/models/sibu/document.rb
CHANGED
@@ -22,7 +22,7 @@
|
|
22
22
|
<td><%= doc.file_url %></td>
|
23
23
|
<td>
|
24
24
|
<%= link_to 'Voir', doc.file_url, target: '_blank' %> |
|
25
|
-
<%= link_to
|
25
|
+
<%= link_to('Supprimer', document_path(doc), method: :delete, data: {confirm: "Supprimer le document \"#{doc.file_name}\" ?"}) if doc.user_id %>
|
26
26
|
</td>
|
27
27
|
</tr>
|
28
28
|
<% end %>
|
data/lib/sibu/version.rb
CHANGED