mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -05:00
18 lines
578 B
Text
18 lines
578 B
Text
<h2 class='text-3xl font-bold mt-10'>
|
|
<%= link_to year, "/stats/#{year}", class: "underline hover:no-underline text-#{header_colors.sample}" %>
|
|
<%= link_to '[Map]', points_url(year_timespan(year)), class: 'underline hover:no-underline' %>
|
|
</h2>
|
|
<div class='my-10'>
|
|
<%= column_chart(
|
|
Stat.year_distance(year),
|
|
height: '200px',
|
|
suffix: ' km',
|
|
xtitle: 'Days',
|
|
ytitle: 'Distance'
|
|
) %>
|
|
</div>
|
|
<div class="mt-5 grid grid-cols-1 sm:grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 p-4">
|
|
<% stats.each do |stat| %>
|
|
<%= render stat %>
|
|
<% end %>
|
|
</div>
|