mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -05:00
22 lines
767 B
Text
22 lines
767 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 text-#{header_colors.sample}" 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>
|
|
<%= column_chart(
|
|
stat.daily_distance,
|
|
height: '100px',
|
|
suffix: ' km',
|
|
xtitle: 'Days',
|
|
ytitle: 'Distance'
|
|
) %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|