From: Tom Hughes Date: Wed, 30 Mar 2022 21:26:39 +0000 (+0100) Subject: Uniqify counts for containing ways and relations on browse pages X-Git-Tag: live~1244 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/f2656f925e5f47ef6ce58dc014556b34f2d83f6a Uniqify counts for containing ways and relations on browse pages Fixes #3519 --- diff --git a/app/views/browse/_node.html.erb b/app/views/browse/_node.html.erb index 77d3a5c16..152223ae7 100644 --- a/app/views/browse/_node.html.erb +++ b/app/views/browse/_node.html.erb @@ -14,7 +14,7 @@

<%= t "browse.part_of" %>

<% unless node.ways.empty? %>
> - <%= t "browse.part_of_ways", :count => node.ways.count %> + <%= t "browse.part_of_ways", :count => node.ways.uniq.count %>