X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=lib%2Fpleroma%2Fweb%2Ftemplates%2Fstatic_fe%2Fstatic_fe%2F_attachment.html.eex;h=f5bbe9a0764ada72dc0d7fb5d8dbfec02b1d754d;hb=8a4437d2bee6ae5f07935a8a6471e8c8dac7f3b1;hp=7e04e9550f20593fe3bfac5c24d25b85c15271c3;hpb=22554ac5ca056c2db627fc2daa5ffc8710be5c89;p=akkoma diff --git a/lib/pleroma/web/templates/static_fe/static_fe/_attachment.html.eex b/lib/pleroma/web/templates/static_fe/static_fe/_attachment.html.eex index 7e04e9550..f5bbe9a07 100644 --- a/lib/pleroma/web/templates/static_fe/static_fe/_attachment.html.eex +++ b/lib/pleroma/web/templates/static_fe/static_fe/_attachment.html.eex @@ -1,8 +1,15 @@ -<%= case @mediaType do %> -<% "audio" -> %> - -<% "video" -> %> - -<% _ -> %> - -<% end %> +" title="<%= @name %>"> + <%= if @nsfw do %> + + <%= gettext("Hover to show content") %> + + <% end %> + <%= case @mediaType do %> + <% "audio" -> %> + + <% "video" -> %> + + <% _ -> %> + + <% end %> +