Rename some templates and convert remaining js to hyperscript

This commit is contained in:
Peter Stockings
2023-10-20 20:04:07 +11:00
parent 996e47d2b4
commit dc13b05420
6 changed files with 17 additions and 23 deletions

2
app.py
View File

@@ -330,7 +330,7 @@ def render_users_and_workouts():
users_data = [generate_user_data(user, get_workouts_for_user_view_data(
user)) for user in users]
template_name = 'users_and_workouts_wrapper.html' if htmx else 'users_and_workouts.html'
template_name = 'users_and_workouts_list.html' if htmx else 'overview.html'
return render_template(template_name, users=users_data, bikes=Bike.query.all())