Limit page availability to earliest completed readthrough / shelving
This commit is contained in:
parent
8de2bca2c5
commit
357eddf16e
2 changed files with 54 additions and 10 deletions
|
@ -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 %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue