Allow a srcset to be specified for banners

This commit is contained in:
Tom Hughes 2023-08-13 09:37:27 +01:00
parent d8abf0dc7e
commit ec89709b5b

View file

@ -1,4 +1,4 @@
<% unless (banner = next_banner()).nil? %>
<%= link_to (image_tag banner[:img], :alt => banner[:alt], :title => banner[:alt]), banner[:link] %>
<%= link_to (image_tag banner[:img], :srcset => banner[:srcset], :alt => banner[:alt], :title => banner[:alt]), banner[:link] %>
<button type="button" class="btn-close position-absolute top-0 end-0 p-4" id="<%= banner_cookie(banner[:id]) %>" aria-label="<%= t("javascripts.close") %>"></button>
<% end %>