Use gettext for sensitive media warning.
This commit is contained in:
parent
2d1897e8a7
commit
e944a2213d
|
@ -6,6 +6,7 @@ defmodule Pleroma.Web.StaticFE.StaticFEView do
|
||||||
use Pleroma.Web, :view
|
use Pleroma.Web, :view
|
||||||
|
|
||||||
alias Pleroma.User
|
alias Pleroma.User
|
||||||
|
alias Pleroma.Web.Gettext
|
||||||
alias Pleroma.Web.MediaProxy
|
alias Pleroma.Web.MediaProxy
|
||||||
alias Pleroma.Formatter
|
alias Pleroma.Formatter
|
||||||
alias Pleroma.Web.Metadata.Utils
|
alias Pleroma.Web.Metadata.Utils
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
<%= for %{"name" => name, "url" => [url | _]} <- @data.attachment do %>
|
<%= for %{"name" => name, "url" => [url | _]} <- @data.attachment do %>
|
||||||
<%= if @data.sensitive do %>
|
<%= if @data.sensitive do %>
|
||||||
<details class="nsfw">
|
<details class="nsfw">
|
||||||
<summary>sensitive media</summary>
|
<summary><%= Gettext.gettext("sensitive media") %></summary>
|
||||||
<div>
|
<div>
|
||||||
<%= render("_attachment.html", %{name: name, url: url["href"],
|
<%= render("_attachment.html", %{name: name, url: url["href"],
|
||||||
mediaType: fetch_media_type(url)}) %>
|
mediaType: fetch_media_type(url)}) %>
|
||||||
|
|
Loading…
Reference in New Issue