app.kluk.fr/app/views/charte/_photo.html.erb
Christophe Robillard ad251e7558 use charte from www
2026-09-29 06:34:43 +02:00

10 lines
545 B
Text
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<%# Photo arrondie avec légende facultative. Toujours un alt descriptif, et width/height
pour éviter les sauts de mise en page (format du site : 1200 × 900).
render "charte/photo", src: "croisiere.jpg", alt: "…", width: 1200, height: 900, legende: "…" %>
<%# locals: (src:, alt:, width: nil, height: nil, legende: nil) -%>
<figure class="photo">
<%= image_tag src, alt: alt, width: width, height: height, loading: "lazy", decoding: "async" %>
<% if legende %>
<figcaption><%= legende %></figcaption>
<% end %>
</figure>