spc-pleroma/lib/pleroma/web/templates/embed/_attachment.html.eex

9 lines
253 B
Elixir
Raw Normal View History

2020-03-20 17:19:34 +00: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 %>