<%= "#{@distance} km" if @distance %>
<% @years.each do |year| %>

<%= year %>

<% (1..12).to_a.each_slice(3) do |months| %> <% months.each do |month_number| %> <% if is_past?(year, month_number) && points_exist?(year, month_number) %> <%= link_to Date::ABBR_MONTHNAMES[month_number], points_url(timespan(month_number, year)), class: 'btn btn-default' %> <% else %>
<%= Date::ABBR_MONTHNAMES[month_number] %>
<% end %> <% end %> <% end %>
<% end %>
<% if REVERSE_GEOCODING_ENABLED && @countries_and_cities&.any? %>
<% @countries_and_cities.each do |country| %>

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

<% end %> <% end %>