Follow users

This commit is contained in:
2018-07-09 08:33:04 +02:00
parent 4cbebb9c5a
commit ba1a660b1a
3 changed files with 41 additions and 0 deletions

View File

@@ -5,4 +5,7 @@
{{ profile.name }}
<small>@{{ profile.user.username}}</small>
</h1>
{% if profile.user != current_user %}
<a href="{{ url_for('follow_user', username=profile.user.username) }}">{% trans %}Follow{% endtrans %}
{% endif %}
{% endblock content %}