schema change; added flask-login

This commit is contained in:
Yusur 2019-10-12 19:22:10 +02:00
parent 3f867b4027
commit a646c96b86
8 changed files with 100 additions and 74 deletions

View file

@ -8,7 +8,7 @@
-
<strong>{{ user.following()|count }}</strong> following
</p>
{% if current_user %}
{% if not current_user.is_anonymous %}
{% if user.username != current_user.username %}
{% if current_user|is_following(user) %}
<form action="{{ url_for('user_unfollow', username=user.username) }}" method="post">
@ -20,6 +20,9 @@
</form>
{% endif %}
<p><a href="/create/?preload=%2B{{ user.username }}">Mention this user in a message</a></p>
{% else %}
<!-- here should go the "edit profile" button -->
<a href="/create/">Create a status</a>
{% endif %}
{% endif %}
<ul>