Skip to content

Commit

Permalink
Fix error in warning e-mail template (mastodon#11698)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargron authored and hiyuki2578 committed Oct 2, 2019
1 parent 5bcbaa8 commit 7a55c77
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/views/user_mailer/warning.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@
- unless @warning.text.blank?
= Formatter.instance.linkify(@warning.text)

- unless @statuses.empty?
- unless @statuses&.empty?
%p
%strong= t('user_mailer.warning.statuses')

- unless @statuses.empty?
- unless @statuses&.empty?
- @statuses.each_with_index do |status, i|
= render 'notification_mailer/status', status: status, i: i + 1, highlighted: true

Expand Down
2 changes: 1 addition & 1 deletion app/views/user_mailer/warning.text.erb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<% end %>
<%= @warning.text %>
<% unless @statuses.empty? %>
<% unless @statuses&.empty? %>
<%= t('user_mailer.warning.statuses') %>
<% @statuses.each do |status| %>
Expand Down

0 comments on commit 7a55c77

Please sign in to comment.