Uses layout for followers/following page
This commit is contained in:
29
bookwyrm/templates/user/relationships/layout.html
Normal file
29
bookwyrm/templates/user/relationships/layout.html
Normal file
@ -0,0 +1,29 @@
|
||||
{% extends 'user/layout.html' %}
|
||||
{% load i18n %}
|
||||
{% load bookwyrm_tags %}
|
||||
|
||||
{% block panel %}
|
||||
<div class="block">
|
||||
{% for follow in follow_list %}
|
||||
<div class="block columns">
|
||||
<div class="column">
|
||||
<a href="{{ follower.local_path }}">
|
||||
{% include 'snippets/avatar.html' with user=follow %}
|
||||
{{ follow.display_name }}
|
||||
</a>
|
||||
({{ follow.username }})
|
||||
</div>
|
||||
<div class="column is-narrow">
|
||||
{% include 'snippets/follow_button.html' with user=follow %}
|
||||
</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
|
||||
{% if not follow_list %}
|
||||
{% block nullstate %}
|
||||
{% endblock %}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% include 'snippets/pagination.html' with page=follow_list path=request.path %}
|
||||
{% endblock %}
|
Reference in New Issue
Block a user