mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-23 00:26:30 +00:00
Use gettext for sensitive media warning.
This commit is contained in:
parent
2d1897e8a7
commit
e944a2213d
2 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@ defmodule Pleroma.Web.StaticFE.StaticFEView do
|
|||
use Pleroma.Web, :view
|
||||
|
||||
alias Pleroma.User
|
||||
alias Pleroma.Web.Gettext
|
||||
alias Pleroma.Web.MediaProxy
|
||||
alias Pleroma.Formatter
|
||||
alias Pleroma.Web.Metadata.Utils
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
<%= for %{"name" => name, "url" => [url | _]} <- @data.attachment do %>
|
||||
<%= if @data.sensitive do %>
|
||||
<details class="nsfw">
|
||||
<summary>sensitive media</summary>
|
||||
<summary><%= Gettext.gettext("sensitive media") %></summary>
|
||||
<div>
|
||||
<%= render("_attachment.html", %{name: name, url: url["href"],
|
||||
mediaType: fetch_media_type(url)}) %>
|
||||
|
|
Loading…
Reference in a new issue