[openstreetmap/openstreetmap-website] Replace submitted note table colors with created/resolved (PR #5269)
Anton Khorev
notifications at github.com
Fri Feb 28 16:32:48 UTC 2025
@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/2651245105 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250228/c9dcad62/attachment.htm>
More information about the rails-dev
mailing list