Skip to content

Commit

Permalink
AO3-6548 Fix reviewdog warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
EchoEkhi committed Oct 30, 2023
1 parent 912836d commit d132495
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion app/views/comment_mailer/comment_notification.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<i><b><%= style_link(@comment.ultimate_parent.commentable_name.html_safe, polymorphic_url(@comment.ultimate_parent, :only_path => false)) %></b></i>:
<% end %>

<%= style_quote(raw @comment.sanitized_content) %>
<%= style_quote(raw(@comment.sanitized_content)) %>

<%= render 'comment_notification_footer' %>

Expand Down
10 changes: 5 additions & 5 deletions app/views/comment_mailer/comment_reply_notification.html.erb
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
<% content_for :message do %>

<%= commenter_pseud_or_name_link(@comment) %> replied to your comment on

<% if @comment.ultimate_parent.is_a?(Tag) %>
the tag
<%= style_link(@comment.ultimate_parent.commentable_name, {:controller => :tags, :action => :show, :id => @comment.ultimate_parent.to_param, :only_path => false}) %>:
<% else %>
<i><b><%= style_link(@comment.ultimate_parent.commentable_name.html_safe, polymorphic_url(@comment.ultimate_parent, :only_path => false)) %></b></i>:
<% end %>

<p>
You wrote:
<%= style_quote(raw @your_comment.sanitized_content) %>
</p>

<p>
<%= commenter_pseud_or_name_link(@comment) %> responded:
<%= style_quote(raw @comment.sanitized_content) %>
<%= style_quote(raw(@comment.sanitized_content)) %>
</p>

<%= render 'comment_notification_footer' %>

<% end %>
4 changes: 2 additions & 2 deletions app/views/comment_mailer/edited_comment_notification.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<% content_for :message do %>

<%= commenter_pseud_or_name_link(@comment) %> edited the following comment on

<% if @comment.ultimate_parent.is_a?(Tag) %>
the tag
<%= style_link(@comment.ultimate_parent.commentable_name, {:controller => :tags, :action => :show, :id => @comment.ultimate_parent.to_param, :only_path => false}) %>:
Expand All @@ -10,7 +10,7 @@
<% end %>

<p>
<%= style_quote(raw @comment.sanitized_content) %>
<%= style_quote(raw(@comment.sanitized_content)) %>
</p>

<%= render 'comment_notification_footer' %>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
<% content_for :message do %>

<%= commenter_pseud_or_name_link(@comment) %> edited their reply to your comment on

<% if @comment.ultimate_parent.is_a?(Tag) %>
the tag
<%= style_link(@comment.ultimate_parent.commentable_name, {:controller => :tags, :action => :show, :id => @comment.ultimate_parent.to_param, :only_path => false}) %>:
<% else %>
<i><b><%= style_link(@comment.ultimate_parent.commentable_name.html_safe, polymorphic_url(@comment.ultimate_parent, :only_path => false)) %></b></i>:
<% end %>

<p>
You wrote:
<%= style_quote(raw @your_comment.sanitized_content) %>
</p>

<p>
<%= commenter_pseud_or_name_link(@comment) %> edited their response to:
<%= style_quote(raw @comment.sanitized_content) %>
<%= style_quote(raw(@comment.sanitized_content)) %>
</p>

<%= render 'comment_notification_footer' %>

<% end %>

0 comments on commit d132495

Please sign in to comment.