Rename some templates and convert remaining js to hyperscript
This commit is contained in:
2
app.py
2
app.py
@@ -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())
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user