| 1 |
{% extends "base.html" %} |
| 2 |
|
| 3 |
{% block content_title %}Message from {{ person.username }}{% endblock %} |
| 4 |
|
| 5 |
{% block content %} |
| 6 |
{% if user %} |
| 7 |
{% if person.username != user.username %} |
| 8 |
{% if user|is_following(person) %} |
| 9 |
<form action="{{ url_for('user_unfollow', username=person.username) }}" method="post"> |
| 10 |
<input type="submit" value="- Un-follow" /> |
| 11 |
</form> |
| 12 |
{% else %} |
| 13 |
<form action="{{ url_for('user_follow', username=person.username) }}" method="post"> |
| 14 |
<input type="submit" value="+ Follow" /> |
| 15 |
</form> |
| 16 |
{% endif %} |
| 17 |
{% endif %} |
| 18 |
{% else %} |
| 19 |
<p><a href="{{ url_for('auth.login', next=request.path) }}">Log-in to follow</a></p> |
| 20 |
{% endif %} |
| 21 |
<ul> |
| 22 |
{% for message in message_list %} |
| 23 |
<li>{% include "includes/message.html" %}</li> |
| 24 |
{% endfor %} |
| 25 |
</ul> |
| 26 |
{% include "includes/pagination.html" %} |
| 27 |
{% endblock %} |