2021-03-21 23:37:52 +00:00
|
|
|
{% extends 'layout.html' %}
|
|
|
|
{% load i18n %}
|
|
|
|
|
|
|
|
{% block title %}{% trans "Directory" %}{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<header class="block">
|
|
|
|
<h1 class="title">
|
|
|
|
{% trans "Directory" %}
|
|
|
|
</h1>
|
|
|
|
</header>
|
2021-03-25 15:39:45 +00:00
|
|
|
|
|
|
|
{% if not request.user.discoverable %}
|
2021-08-09 01:40:47 +00:00
|
|
|
<div class="box has-text-centered content" data-hide="hide_join_directory"><div class="columns">
|
2021-03-25 23:32:15 +00:00
|
|
|
<div class="column">
|
2021-03-25 15:39:45 +00:00
|
|
|
<p>
|
2021-03-25 17:24:22 +00:00
|
|
|
{% trans "Make your profile discoverable to other BookWyrm users." %}
|
2021-03-25 15:39:45 +00:00
|
|
|
</p>
|
|
|
|
<form name="directory" method="POST" action="{% url 'directory' %}">
|
|
|
|
{% csrf_token %}
|
2021-12-01 09:07:52 +00:00
|
|
|
<button class="button is-primary" type="submit">{% trans "Join Directory" %}</button>
|
2021-03-25 15:39:45 +00:00
|
|
|
<p class="help">
|
2021-06-14 22:33:03 +00:00
|
|
|
{% url 'prefs-profile' as path %}
|
|
|
|
{% blocktrans with path=path %}You can opt-out at any time in your <a href="{{ path }}">profile settings.</a>{% endblocktrans %}
|
2021-03-25 15:39:45 +00:00
|
|
|
</p>
|
|
|
|
</form>
|
2021-03-25 23:32:15 +00:00
|
|
|
</div>
|
|
|
|
<div class="column is-narrow">
|
|
|
|
{% trans "Dismiss message" as button_text %}
|
2021-08-09 01:40:47 +00:00
|
|
|
<button type="button" class="delete set-display" data-id="hide_join_directory" data-value="true">
|
2021-12-01 09:07:52 +00:00
|
|
|
<span>{% trans "Dismiss message" %}</span>
|
2021-03-25 23:32:15 +00:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div></div>
|
2021-03-25 15:39:45 +00:00
|
|
|
{% endif %}
|
|
|
|
|
2021-03-29 17:39:13 +00:00
|
|
|
{% include 'directory/filters.html' %}
|
2021-03-25 17:58:00 +00:00
|
|
|
|
2021-03-21 23:37:52 +00:00
|
|
|
<div class="columns is-multiline">
|
|
|
|
{% for user in users %}
|
|
|
|
<div class="column is-one-third">
|
2021-05-01 02:19:10 +00:00
|
|
|
{% include 'directory/user_card.html' %}
|
2021-03-21 23:37:52 +00:00
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div>
|
|
|
|
{% include 'snippets/pagination.html' with page=users path="/directory" %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|