Skip to content

Commit

Permalink
Merge pull request #385 from jovandeginste/details
Browse files Browse the repository at this point in the history
Always show workout details in lists
  • Loading branch information
jovandeginste authored Jan 6, 2025
2 parents aacd657 + 17c0f1d commit 96bb1d7
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 19 deletions.
5 changes: 2 additions & 3 deletions views/workouts/list_details.templ
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ templ ListDetails(w *database.Workout) {
<div class="workouts_list_details flex flex-wrap gap-1">
if w.Type.IsLocation() {
<div
class="hidden 2xl:table-cell"
title={ i18n.T(ctx, "Location") + ": " + w.Address() }
>
@helpers.IconFor("location")
Expand All @@ -27,14 +26,14 @@ templ ListDetails(w *database.Workout) {
</div>
}
if w.Type.IsDuration() {
<div class="hidden sm:table-cell font-mono" title={ i18n.T(ctx, "Duration") }>
<div class="font-mono" title={ i18n.T(ctx, "Duration") }>
@helpers.IconFor("duration")
{ helpers.HumanDuration(w.TotalDuration()) }
</div>
}
if w.Type.IsDistance()&& w.Type.IsDuration() {
<div
class="hidden xl:table-cell font-mono"
class="font-mono"
title={ i18n.T(ctx, "Average speed") }
>
@helpers.IconFor("speed")
Expand Down
32 changes: 16 additions & 16 deletions views/workouts/list_details_templ.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 96bb1d7

Please sign in to comment.