Allow a srcset to be specified for banners
This commit is contained in:
parent
d8abf0dc7e
commit
ec89709b5b
1 changed files with 1 additions and 1 deletions
|
@ -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 %>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue