mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-11 17:51:39 -05:00
15 lines
575 B
Text
15 lines
575 B
Text
<div id="<%= dom_id stat %>" class="card w-full bg-base-200 shadow-xl">
|
|
<div class="card-body">
|
|
<h2 class="card-title">
|
|
<%= link_to points_url(month_timespan(stat)), class: 'underline hover:no-underline' do %>
|
|
<%= "#{Date::MONTHNAMES[stat.month]} of #{stat.year}" %>
|
|
<% end %>
|
|
</h2>
|
|
<p><%= stat.distance %>km</p>
|
|
<% if REVERSE_GEOCODING_ENABLED %>
|
|
<div class="card-actions justify-end">
|
|
<%= stat.toponyms.count %> countries, <%= stat.toponyms.sum { _1['cities'].count } %> cities
|
|
</div>
|
|
<% end %>
|
|
</div>
|
|
</div>
|