Accept follow requests

This commit is contained in:
Mouse Reeve
2020-01-26 18:49:57 -08:00
parent 6b85d8838f
commit 19f6ebb9a7
6 changed files with 70 additions and 17 deletions

View File

@ -3,7 +3,7 @@
<div id="main">
<div class="user-profile">
<img class="user-pic" src="/static/images/profile.jpg">
<h2>{{ user.username }}</h2>
<h1>{{ user.username }}</h1>
<p>Since {{ user.created_date }}</p>
{% if not is_self %}
{% if not following %}
@ -19,11 +19,22 @@
{% endif %}
{% endif %}
</div>
{% for book in books.all %}
<div class="book">
{{ book.data.title }} by {{ book.authors.first.data.name }}
<div>
<h2>Books</h2>
{% for book in books.all %}
<div class="book">
{{ book.data.title }} by {{ book.authors.first.data.name }}
</div>
{% endfor %}
</div>
<div>
<h2>Followers</h2>
{% for follower in user.followers.all %}
{{ follower.activitypub_id }}
{% endfor %}
</div>
{% endfor %}
</div>
{% endblock %}