From f7b4b6d51f18516b2b8b2f5c45a3b3ff675007d1 Mon Sep 17 00:00:00 2001 From: Eugene Burmakin Date: Sat, 23 Mar 2024 20:58:22 +0100 Subject: [PATCH] Show number of cities in each country in the right sidebar --- app/views/shared/_right_sidebar.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/shared/_right_sidebar.html.erb b/app/views/shared/_right_sidebar.html.erb index 7f55da2b..494a3862 100644 --- a/app/views/shared/_right_sidebar.html.erb +++ b/app/views/shared/_right_sidebar.html.erb @@ -2,7 +2,9 @@ <% if @countries_and_cities&.any? %> <% @countries_and_cities.each do |country| %> -

<%= country[:country] %>

+

+ <%= country[:country] %> (<%= country[:cities].count %> cities) +