forked from mirrors/bookwyrm
Adds breadcrumbs
This commit is contained in:
parent
e77eea9c81
commit
4dae851da0
4 changed files with 39 additions and 12 deletions
|
@ -9,7 +9,7 @@
|
|||
{% if user.is_authenticated %}
|
||||
<div class="column is-one-third">
|
||||
<section class="block">
|
||||
<h2 class="title is-4">{% trans "Your books" %}</h2>
|
||||
<h2 class="title is-4">{% trans "Your Books" %}</h2>
|
||||
{% if not suggested_books %}
|
||||
<p>{% trans "There are no books here right now! Try searching for a book to get started" %}</p>
|
||||
{% else %}
|
||||
|
|
|
@ -7,12 +7,32 @@
|
|||
|
||||
{% block content %}{% spaceless %}
|
||||
<header class="block">
|
||||
{% if job.retry %}
|
||||
<h1 class="title">{% trans "Retry Status" %}</h1>
|
||||
{% else %}
|
||||
<h1 class="title">{% trans "Import Status" %}</h1>
|
||||
{% endif %}
|
||||
<a href="{% url 'import' %}" class="has-text-weight-normal help subtitle is-link">{% trans "Back to imports" %}</a>
|
||||
<h1 class="title">
|
||||
{% block page_title %}
|
||||
{% if job.retry %}
|
||||
{% trans "Retry Status" %}
|
||||
{% else %}
|
||||
{% trans "Import Status" %}
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
</h1>
|
||||
|
||||
<nav class="breadcrumb subtitle" aria-label="breadcrumbs">
|
||||
<ul>
|
||||
<li><a href="{% url 'import' %}">{% trans "Imports" %}</a></li>
|
||||
{% url 'import-status' job.id as path %}
|
||||
<li{% if request.path in path %} class="is-active"{% endif %}>
|
||||
<a href="{{ path }}" {% if request.path in path %}aria-current="page"{% endif %}>
|
||||
{% if job.retry %}
|
||||
{% trans "Retry Status" %}
|
||||
{% else %}
|
||||
{% trans "Import Status" %}
|
||||
{% endif %}
|
||||
</a>
|
||||
</li>
|
||||
{% block breadcrumbs %}{% endblock %}
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
<div class="block">
|
||||
<dl>
|
||||
|
@ -63,11 +83,6 @@
|
|||
</header>
|
||||
|
||||
<div class="block">
|
||||
<h2 class="title is-4">
|
||||
{% block page_title %}
|
||||
{% trans "Your Import" %}
|
||||
{% endblock %}
|
||||
</h2>
|
||||
{% block actions %}{% endblock %}
|
||||
<div class="table-container">
|
||||
<table class="table is-striped">
|
||||
|
|
|
@ -8,6 +8,12 @@
|
|||
{% trans "Review items" %}
|
||||
{% endblock %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
<li class="is-active">
|
||||
<a href="" aria-current="page">{% trans "Review" %}</a>
|
||||
</li>
|
||||
{% endblock %}
|
||||
|
||||
{% block actions %}
|
||||
<div class="block">
|
||||
<div class="notification content">
|
||||
|
|
|
@ -7,6 +7,12 @@
|
|||
{% trans "Failed items" %}
|
||||
{% endblock %}
|
||||
|
||||
{% block breadcrumbs %}
|
||||
<li class="is-active">
|
||||
<a href="" aria-current="page">{% trans "Troubleshooting" %}</a>
|
||||
</li>
|
||||
{% endblock %}
|
||||
|
||||
{% block actions %}
|
||||
<div class="block">
|
||||
<div class="notification content">
|
||||
|
|
Loading…
Reference in a new issue