From f2656f925e5f47ef6ce58dc014556b34f2d83f6a Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Wed, 30 Mar 2022 22:26:39 +0100 Subject: [PATCH] Uniqify counts for containing ways and relations on browse pages Fixes #3519 --- app/views/browse/_node.html.erb | 4 ++-- app/views/browse/_relation.html.erb | 2 +- app/views/browse/_way.html.erb | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) 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 %>