Skip to content

Commit

Permalink
Merge pull request #386 from jovandeginste/dupl-stats
Browse files Browse the repository at this point in the history
Refactor(template): Remove duplicate footer from statistics page
  • Loading branch information
jovandeginste authored Jan 6, 2025
2 parents 96bb1d7 + 57fa5bc commit 04ff381
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
4 changes: 0 additions & 4 deletions assets/output.css
Original file line number Diff line number Diff line change
Expand Up @@ -3505,10 +3505,6 @@ table {
display: inline;
}

.\32xl\:table-cell {
display: table-cell;
}

.\32xl\:basis-1\/3 {
flex-basis: 33.333333%;
}
Expand Down
1 change: 0 additions & 1 deletion views/user/statistics.templ
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ templ Statistics(u *database.User, since, per string) {
</div>
</div>
</div>
@partials.Footer()
{{ currentUser := helpers.CurrentUser(ctx) }}
{{ stats, _ := currentUser.GetStatisticsFor(since, per) }}
@templ.JSONScript("stats", stats)
Expand Down
12 changes: 2 additions & 10 deletions views/user/statistics_templ.go

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

0 comments on commit 04ff381

Please sign in to comment.