<%= sidebar_distance(@distance) %> <%= sidebar_points(@points) %>
<% @years.each do |year| %>

<%= year %>

<% (1..12).to_a.each_slice(3) do |months| %> <% months.each do |month_number| %> <% if past?(year, month_number) && points_exist?(year, month_number, current_user) %> <%= link_to Date::ABBR_MONTHNAMES[month_number], map_url(timespan(month_number, year).merge(import_id: params[:import_id])), 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

<% @countries_and_cities.each do |country| %> <% next if country[:cities].empty? %>

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

<% end %> <% end %>