Revamp all form submissions with Flask-WTF forms

- Rename blueprint route 'main.user' to 'main.view_user' for clarity
- Rename 'forms.py' to 'route_forms.py'
This commit is contained in:
Xevion
2022-03-29 02:00:43 -05:00
parent 4968868d3a
commit 2e8688f59b
8 changed files with 36 additions and 28 deletions

View File

@@ -9,7 +9,7 @@
<div class="user-box-top">
<span class="user-box-username">
<a href="{{ url_for('main.user', username=user.username) }}">{{ user.name }}</a>
<a href="{{ url_for('main.view_user', username=user.username) }}">{{ user.name }}</a>
</span>
{% with seen_text = user.get_last_seen() %}
{% if seen_text == 'Online now!' %}