Updates get started users template

This commit is contained in:
Mouse Reeve
2021-04-01 09:30:15 -07:00
parent 5c10bdab7c
commit 776f1768d9
4 changed files with 20 additions and 2 deletions

View File

@@ -5,6 +5,23 @@
<div class="block">
<h2 class="title is-4">{% trans "Who to follow" %}</h2>
<p class="subtitle is-6">You can follow users on other BookWyrm instances and federated services like Mastodon.</p>
<form class="field has-addons" method="get" action="{% url 'get-started-users' %}">
<div class="control">
<input type="text" name="query" value="{{ request.GET.query }}" class="input" placeholder="{% trans 'Search for a user' %}" aria-label="{% trans 'Search for a user' %}">
{% if request.GET.query and not user_results %}
<p class="help">{% trans "Sorry, no users were found" %}</p>
{% endif %}
</div>
<div class="control">
<button class="button" type="submit">
<span class="icon icon-search" title="{% trans 'Search' %}">
<span class="is-sr-only">{% trans "Search" %}</span>
</span>
</button>
</div>
</form>
{% include 'feed/suggested_users.html' with suggested_users=suggested_users %}
</div>
{% endblock %}