about summary refs log tree commit diff
path: root/app/views/user_mailer/warning.text.erb
blob: 31d7308aea545f18e970b7224e613f1da5bcc4da (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
<%= 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.get_in_touch', instance: @instance %>