+ @@ -510,6 +513,28 @@ document.querySelector('#visibilityBadge i').className = `bi bi-${visIcon}`; document.getElementById('visibilityBadge').className = `ms-2 visibility-${activity.visibility.toLowerCase()}`; + // Race badge and styling + const raceBadge = document.getElementById('raceBadge'); + const activityTypeSpan = document.getElementById('activityType'); + const activityContent = document.getElementById('activityContent'); + const metricsCard = document.querySelector('#activityContent .card.border'); + + if (activity.race === true) { + raceBadge.style.display = 'inline-block'; + activityTypeSpan.classList.add('race-activity'); + activityContent.classList.add('race-detail'); + if (metricsCard) { + metricsCard.classList.add('race-metrics'); + } + } else { + raceBadge.style.display = 'none'; + activityTypeSpan.classList.remove('race-activity'); + activityContent.classList.remove('race-detail'); + if (metricsCard) { + metricsCard.classList.remove('race-metrics'); + } + } + // Indoor badge const indoorBadge = document.getElementById('indoorBadge'); if (activity.indoor === true) { diff --git a/src/main/resources/templates/activities/edit.html b/src/main/resources/templates/activities/edit.html index 2640203..a73ac72 100644 --- a/src/main/resources/templates/activities/edit.html +++ b/src/main/resources/templates/activities/edit.html @@ -105,6 +105,19 @@
- + ${activity.activityType} + ${activity.race + ? ` + Race + ` + : '' + } ${activity.indoor ? ` Indoor diff --git a/src/main/resources/templates/activities/upload.html b/src/main/resources/templates/activities/upload.html index 4e49063..c355aa3 100644 --- a/src/main/resources/templates/activities/upload.html +++ b/src/main/resources/templates/activities/upload.html @@ -131,6 +131,19 @@
© 2024 FitPub. Open Source Software.
+© 2026 FitPub. Open Source Software.
Last updated: January 2026
++ I built FitPub primarily for myself to track my fitness activities and share them on the Fediverse. + I'm making it available for others to use, but please understand what you're getting into. +
+ ++ This is a hobby project. I make no guarantees that: +
++ By using FitPub, you acknowledge and accept that: +
++ I respect your privacy, but remember: +
++ Please be a decent human being: +
++ FitPub federates with other ActivityPub-compatible services: +
++ FitPub is open source software. You can: +
++ I may update these terms occasionally. I'll try to notify users of significant changes, + but let's be honest - you probably won't read them anyway. +
+ ++ FitPub is a passion project that I'm sharing with the community. It's free to use, + but comes with no warranties or guarantees. If you need enterprise-grade reliability + and support, this probably isn't the right service for you. But if you're okay with + a scrappy, independent fitness tracking platform that federates with the open web, + then welcome aboard! +
+ +