about summary refs log tree commit diff
path: root/app/views/user_mailer/warning.text.erb
blob: 1f410f4414d15f3ca3cf3dfd0a8b3e75dc8c7f66 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<%= t "user_mailer.warning.title.#{@warning.action}" %>

===

<% unless @warning.none_action? %>
<%= t "user_mailer.warning.explanation.#{@warning.action}", instance: @instance %>

<% end %>
<% if @warning.text.present? %>
<%= @warning.text %>

<% end %>
<% if @warning.report && !@warning.report.other? %>
**<%= t('user_mailer.warning.reason') %>** <%= t("user_mailer.warning.categories.#{@warning.report.category}") %>

<% if @warning.report.violation? && @warning.report.rule_ids.present? %>
<% @warning.report.rules.each do |rule| %>
- <%= rule.text %>
<% end %>

<% end %>
<% end %>
<% if !@statuses.empty? %>
<%= t('user_mailer.warning.statuses') %>

<% @statuses.each do |status| %>

<%= render 'notification_mailer/status', status: status %>
---
<% end %>
<% else %>
---
<% end %>

<%= t 'user_mailer.warning.appeal_description', instance: @instance %>
<%= disputes_strike_url(@warning) %>