mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-29 21:11:16 +00:00
Updates get started users template
This commit is contained in:
parent
5c10bdab7c
commit
776f1768d9
4 changed files with 20 additions and 2 deletions
|
@ -40,6 +40,8 @@
|
||||||
<span>{% trans "Skip this step" %}</span>
|
<span>{% trans "Skip this step" %}</span>
|
||||||
<span class="icon icon-arrow-right" aria-hidden="true"></span>
|
<span class="icon icon-arrow-right" aria-hidden="true"></span>
|
||||||
</a>
|
</a>
|
||||||
|
{% else %}
|
||||||
|
<a href="/" class="button is-primary">{% trans "Finish" %}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</footer>
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
{% url 'directory' as path %}
|
{% url 'directory' as path %}
|
||||||
<p class="help">{% trans "Your account will show up in the directory, and may be recommended to other BookWyrm users." %}</p>
|
<p class="help">{% trans "Your account will show up in the directory, and may be recommended to other BookWyrm users." %}</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="block"><button class="button is-primary" type="submit">{% trans "Save" %}</button></div>
|
<div class="block"><button class="button is-primary" type="submit">{% trans "Save & continue" %}</button></div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -5,6 +5,23 @@
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<h2 class="title is-4">{% trans "Who to follow" %}</h2>
|
<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 %}
|
{% include 'feed/suggested_users.html' with suggested_users=suggested_users %}
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -114,6 +114,5 @@ class GetStartedUsers(View):
|
||||||
)
|
)
|
||||||
data = {
|
data = {
|
||||||
"suggested_users": suggested_users,
|
"suggested_users": suggested_users,
|
||||||
"next": "get-started-profile",
|
|
||||||
}
|
}
|
||||||
return TemplateResponse(request, "get_started/users.html", data)
|
return TemplateResponse(request, "get_started/users.html", data)
|
||||||
|
|
Loading…
Reference in a new issue