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