mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-26 03:21:05 +00:00
Adds breadcrumbs
This commit is contained in:
parent
ed127f4e07
commit
5c10bdab7c
2 changed files with 18 additions and 2 deletions
|
@ -18,7 +18,23 @@
|
|||
{% block panel %}{% endblock %}
|
||||
</section>
|
||||
|
||||
<footer class="modal-card-foot is-flex is-justify-content-flex-end">
|
||||
<footer class="modal-card-foot is-flex is-justify-content-space-between">
|
||||
<nav class="breadcrumb mb-0" aria-label="breadcrumbs">
|
||||
<ul>
|
||||
{% url 'get-started-profile' as url %}
|
||||
<li {% if request.path in url %}class="is-active"{% endif %}>
|
||||
<a {% if request.path in url %}aria-current="page"{% endif %} href="{{ url }}">{% trans "Create profile" %}</a>
|
||||
</li>
|
||||
{% url 'get-started-books' as url %}
|
||||
<li {% if request.path in url %}class="is-active"{% endif %}>
|
||||
<a {% if request.path in url %}aria-current="page"{% endif %} href="{{ url }}">{% trans "Add books" %}</a>
|
||||
</li>
|
||||
{% url 'get-started-users' as url %}
|
||||
<li {% if request.path in url %}class="is-active"{% endif %}>
|
||||
<a {% if request.path in url %}aria-current="page"{% endif %} href="{{ url }}">{% trans "Find friends" %}</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
{% if next %}
|
||||
<a href="{% url next %}" class="button">
|
||||
<span>{% trans "Skip this step" %}</span>
|
||||
|
|
|
@ -111,7 +111,7 @@ urlpatterns = [
|
|||
re_path(r"^directory/?", views.Directory.as_view(), name="directory"),
|
||||
# Get started
|
||||
re_path(
|
||||
r"^get-started/?$",
|
||||
r"^get-started/profile/?$",
|
||||
views.GetStartedProfile.as_view(),
|
||||
name="get-started-profile",
|
||||
),
|
||||
|
|
Loading…
Reference in a new issue