@AntonKhorev commented on this pull request.
> @@ -24,7 +26,15 @@
</tr>
</thead>
<% @notes.each do |note| -%>
- <tr<% if note.author == @user %> class="table-primary"<% end %>>
+ <% opened_by_user = note.author == @user %>
+ <% closed_by_user = note.comments.last&.author == @user &&
note.comments.last&.event == "closed" %>
Moved logic to `note_list_row_class` helper.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/5269#discussion_r1975697888
You are receiving this because you are subscribed to this thread.
Message ID:
<openstreetmap/openstreetmap-website/pull/5269/review/2651245...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev