mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 01:01:39 -05:00
Show number of cities in each country in the right sidebar
This commit is contained in:
parent
d1454c21a9
commit
f7b4b6d51f
1 changed files with 3 additions and 1 deletions
|
|
@ -2,7 +2,9 @@
|
|||
|
||||
<% if @countries_and_cities&.any? %>
|
||||
<% @countries_and_cities.each do |country| %>
|
||||
<h2 class="text-lg font-semibold"><%= country[:country] %></h2>
|
||||
<h2 class="text-lg font-semibold mt-5">
|
||||
<%= country[:country] %> (<%= country[:cities].count %> cities)
|
||||
</h2>
|
||||
<ul>
|
||||
<% country[:cities].each do |city| %>
|
||||
<li><%= city[:city] %> (<%= Time.at(city[:timestamp]).strftime("%d.%m.%Y") %>)</li>
|
||||
|
|
|
|||
Loading…
Reference in a new issue