static-fe overhaul (#236)
[akkoma] / lib / pleroma / web / templates / static_fe / static_fe / _attachment.html.eex
1 <a class="attachment" href="<%= @url %>" alt=<%= @name %>" title="<%= @name %>">
2 <%= if @nsfw do %>
3 <div class="nsfw-banner">
4 <div><%= gettext("Hover to show content") %></div>
5 </div>
6 <% end %>
7 <%= case @mediaType do %>
8 <% "audio" -> %>
9 <audio class="u-audio" src="<%= @url %>" controls="controls"></audio>
10 <% "video" -> %>
11 <video class="u-video" src="<%= @url %>" controls="controls"></video>
12 <% _ -> %>
13 <img class="u-photo" src="<%= @url %>">
14 <% end %>
15 </a>