Skip to content

Commit ac07ad5

Browse files
OumphTrim
andauthored
Update app/views/moderation/images/index.html.haml
Co-authored-by: Adrien Dorsaz <[email protected]>
1 parent 4a98d06 commit ac07ad5

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

app/views/moderation/images/index.html.haml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22

33
- if @images.any?
44
%p Images externes les plus récentes
5-
- @images.each do |image|
6-
.image
7-
= image.to_html.html_safe
8-
- if image.blocked
9-
= "⛔ Bloquée" if image.blocked
10-
- else
11-
= button_to "Bloquer", moderation_image_path(image.encoded_link), method: :delete, data: { confirm: "Confirmez‑vous vouloir bloquer cette image ?" }
5+
%ul
6+
- @images.each do |image|
7+
%li.image
8+
- if image.blocked
9+
%pre #{image.link.html_safe}
10+
= "⛔ Bloquée"
11+
- else
12+
= image.to_html.html_safe
13+
= button_to "Bloquer", moderation_image_path(image.encoded_link), method: :delete, data: { confirm: "Confirmez‑vous vouloir bloquer cette image ?" }
1214
- else
1315
%p Aucune image externe actuellement

0 commit comments

Comments
 (0)