Limit page availability to earliest completed readthrough / shelving

This commit is contained in:
Joachim
2021-12-22 16:52:42 +01:00
parent 8de2bca2c5
commit 357eddf16e
2 changed files with 54 additions and 10 deletions

View File

@ -14,12 +14,14 @@
{% if user == summary_user %}
<div class="columns">
{% with year=paginated_years|first %}
{% if year %}
<div class="column">
<a href="{% url 'annual-summary' summary_user.localname year %}">
<span class="icon icon-arrow-left" aria-hidden="true"></span>
{{ year }}
</a>
</div>
{% endif %}
{% endwith %}
{% with year=paginated_years|last %}