akkoma/lib/pleroma/web/templates/embed/_attachment.html.eex

9 lines
253 B
Elixir
Raw Normal View History

2020-03-20 11:19:34 -06:00
<%= case @mediaType do %>
<% "audio" -> %>
<audio src="<%= @url %>" controls="controls"></audio>
<% "video" -> %>
<video src="<%= @url %>" controls="controls"></video>
<% _ -> %>
<img src="<%= @url %>" alt="<%= @name %>" title="<%= @name %>">
<% end %>