akkoma/lib/pleroma/web/templates/embed/_attachment.html.eex
2020-03-20 21:46:26 +04:00

9 lines
253 B
Elixir

<%= 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 %>