<% @banners.each do |banner| %>
<%= link_to (banner.url.blank? ? 'javascript: void(0)' : banner.url) do %>
<%= image_tag banner.attachment.url(params[:style]), alt: banner.alt_text, class: params[:image_class] %>
<% end %>
<% end %>
<% if params[:buttons_carousel] %>