mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-30 17:11:40 +00:00
9 lines
253 B
Elixir
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 %>
|