Skip to content

Commit

Permalink
use object instead of image
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonyshull committed Jun 7, 2024
1 parent 1da5c26 commit 8e9e223
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions lib/dotcom_web/templates/alert/_item.html.eex
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
<%= if @alert.description do %>
<div class="c-alert-item__bottom c-alert-item__bottom--<%= @alert.priority %>">
<%= if @alert.image_url && @alert.image_alt_text do %>
<div>
<img src="<%= @alert.image_url %>" alt="<%= @alert.image_alt_text %>" class="w-100" />
</div>
<object data="<%= @alert.image_url %>" type="image/png" class="w-100">
<%= @alert.image_alt_text %>
</object>
<% end %>
<div class="c-alert-item__description">
<%= format_alert_description(@alert.description) %>
Expand Down
1 change: 0 additions & 1 deletion lib/dotcom_web/templates/cms/page/_diversions.html.eex
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,4 @@
<%# Sidebar Right %>
<%= if !@sidebar_left && @sidebar_right, do: DotcomWeb.CMSView.render("_sidebar_right.html", page: @page, conn: @conn) %>
</div>

</div>

0 comments on commit 8e9e223

Please sign in to comment.