1
0

warning.text.erb 898 B

123456789101112131415161718192021222324252627282930313233343536
  1. <%= t "user_mailer.warning.title.#{@warning.action}" %>
  2. ===
  3. <% unless @warning.none_action? %>
  4. <%= t "user_mailer.warning.explanation.#{@warning.action}", instance: @instance %>
  5. <% end %>
  6. <% if @warning.text.present? %>
  7. <%= @warning.text %>
  8. <% end %>
  9. <% if @warning.report && !@warning.report.other? %>
  10. **<%= t('user_mailer.warning.reason') %>** <%= t("user_mailer.warning.categories.#{@warning.report.category}") %>
  11. <% if @warning.report.violation? && @warning.report.rule_ids.present? %>
  12. <% @warning.report.rules.each do |rule| %>
  13. - <%= rule.text %>
  14. <% end %>
  15. <% end %>
  16. <% end %>
  17. <% if !@statuses.empty? %>
  18. <%= t('user_mailer.warning.statuses') %>
  19. <% @statuses.each do |status| %>
  20. <%= render 'notification_mailer/status', status: status %>
  21. ---
  22. <% end %>
  23. <% else %>
  24. ---
  25. <% end %>
  26. <%= t 'user_mailer.warning.appeal_description', instance: @instance %>
  27. <%= disputes_strike_url(@warning) %>