aboutsummaryrefslogtreecommitdiff
path: root/web/views.go
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2026-08-21 19:30:50 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2026-08-21 19:30:50 +0200
commited9516cbcb3c5254980a9e1dba7d8fa5ea230b35 (patch)
tree36d70fc6e76a74c30d0e3b166fd3c00f88363700 /web/views.go
parent72cc720e91e531fda3da073a8231951e0cccb696 (diff)
Add distance filter to analytics and go fix to the check gate
Diffstat (limited to 'web/views.go')
-rw-r--r--web/views.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/web/views.go b/web/views.go
index 9771a4d..7a5a461 100644
--- a/web/views.go
+++ b/web/views.go
@@ -28,6 +28,7 @@ type RidesPageData struct {
type AnalyticsPageData struct {
Points []AnalyticsPoint
+ Filter RideFilterView
}
type AnalyticsPoint struct {
@@ -427,6 +428,10 @@ func formatClimbCount(count int) string {
return fmt.Sprintf("%d", count)
}
+func formatRideCount(count int) string {
+ return fmt.Sprintf("%d", count)
+}
+
func formatProfileDistance(distanceKm float64) string {
return fmt.Sprintf("%.1f km", distanceKm)
}