moviewyrm/bookwyrm/templates/directory/directory.html

52 lines
1.5 KiB
HTML
Raw Normal View History

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 %}
<div class="box has-text-centered content" data-hide="hide-join-directory"><div class="columns">
<div class="column">
2021-03-25 15:39:45 +00:00
<p>
{% 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 %}
<button class="button is-primary" type="submit">Join Directory</button>
<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>
</div>
<div class="column is-narrow">
{% trans "Dismiss message" as button_text %}
<button type="button" class="delete set-display" data-id="hide-join-directory" data-value="true">
<span>Dismiss message</span>
</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 %}