calendar-social/calsocial/templates/profile-details.html
Gergely Polonkai 6657cc1c91 [Bugfix] Fix user follow
* The link didn’t have a closing tag
* The whole mechanism didn’t work

I probably submitted a previous patch…
2018-07-09 17:17:01 +02:00

28 lines
578 B
HTML

{% extends 'base.html' %}
{% block content %}
<h1>
{{ 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 %}</a>
{% endif %}
<h2>
{% trans %}Follows{% endtrans %}
</h2>
{% for followed in profile.followed_list %}
{{ followed }}
{% endfor %}
<h2>
{% trans %}Followers{% endtrans %}
</h2>
{% for follower in profile.follower_list %}
{{ follower }}
{% endfor %}
{% endblock content %}