Просмотр исходного кода

Display content warning in mail notification emails (#6832)

master
ThibG 6 лет назад
committed by Eugen Rochko
Родитель
Сommit
6b76a6212d
2 измененных файлов: 10 добавлений и 0 удалений
  1. +5
    -0
      app/views/notification_mailer/_status.html.haml
  2. +5
    -0
      app/views/notification_mailer/_status.text.erb

+ 5
- 0
app/views/notification_mailer/_status.html.haml Просмотреть файл

@@ -24,6 +24,11 @@
%bdi= display_name(status.account)
= "@#{status.account.acct}"

- if status.spoiler_text?
%div{ dir: rtl_status?(status) ? 'rtl' : 'ltr' }
%p
= Formatter.instance.format_spoiler(status)

%div{ dir: rtl_status?(status) ? 'rtl' : 'ltr' }
= Formatter.instance.format(status)



+ 5
- 0
app/views/notification_mailer/_status.text.erb Просмотреть файл

@@ -1,3 +1,8 @@
<% if status.spoiler_text? %>
<%= raw status.spoiler_text %>
----

<% end %>
<%= raw Formatter.instance.plaintext(status) %>

<%= raw t('application_mailer.view')%> <%= web_url("statuses/#{status.id}") %>

Загрузка…
Отмена
Сохранить