sibu 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/sibu/images_controller.rb +1 -1
- data/app/views/sibu/images/_edit_form.html.erb +14 -12
- 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: 405cd4af1f8845dfe4b6231e130430052ffac0c4
|
4
|
+
data.tar.gz: 4a482f965d0b363a14ab74e4e4abee76ebb6fd17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6da521391429cc8abfad5c2e2d807506d0a47d0b7a764caa3036cc75cc5fbfa6a9ba0e045f095c3a366dced3fbd629f925440d599b1a55ce925fc4efa54363b8
|
7
|
+
data.tar.gz: 15de774f8eb8b486cc37d4a3c63ef6ab8f73b3469e87ea58450716436dab9737e6cff4bd8ad4b214ee47b923bdc9e114d448c3b1ad353b020d9757e430ee0afd
|
@@ -1,17 +1,19 @@
|
|
1
1
|
<div class="sibu_image_preview">
|
2
2
|
<%= image_tag @image.file_url(:medium) %>
|
3
3
|
</div>
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
4
|
+
<% if @image.user_id %>
|
5
|
+
<%= form_for(@image) do |f| %>
|
6
|
+
<div class="sibu_field">
|
7
|
+
<%= f.label :alt, "Légende / texte alternatif" %>
|
8
|
+
<div>
|
9
|
+
<%= f.text_field :alt %><br/>
|
10
|
+
<small>Renseignez un texte décrivant l'image</small>
|
11
|
+
</div>
|
10
12
|
</div>
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
<%= f.hidden_field :user_id %>
|
14
|
+
<div class="sibu_actions">
|
15
|
+
<%= f.submit 'Mettre à jour' %>
|
16
|
+
<%= link_to 'Supprimer', image_path(@image.id), method: :delete, data: {confirm: "Supprimer l'image ?", disable_with: "Suppression en cours..."} %>
|
17
|
+
</div>
|
18
|
+
<% end %>
|
17
19
|
<% end %>
|
data/lib/sibu/version.rb
CHANGED