'disabled' newer/older links cannot be interacted with

This commit is contained in:
Zachary Snow
2018-05-29 10:50:28 -07:00
parent 6df63d4137
commit 3ed17949c3
3 changed files with 6 additions and 4 deletions

View File

@@ -111,7 +111,8 @@ section {
text-decoration: underline; } text-decoration: underline; }
.items a.page.empty { .items a.page.empty {
color: #969499; color: #969499;
text-decoration: none; } text-decoration: none;
cursor: default; }
.item { .item {
padding: 8px 36; padding: 8px 36;

View File

@@ -26,6 +26,7 @@ section {
a.page.empty { a.page.empty {
color: $midgray; color: $midgray;
text-decoration: none; text-decoration: none;
cursor: default;
} }
} }

View File

@@ -10,13 +10,13 @@
Older → Older →
</a> </a>
{% else %} {% else %}
<a class="page empty" href="#">Older &rarr;</a> <a class="page empty">Older &rarr;</a>
{% endif %} {% endif %}
{% if items.has_previous %} {% if items.has_previous %}
<a class="page" href="?{{ pagination_key }}={{ items.previous_page_number }}"> <a class="page" href="?{{ pagination_key }}={{ items.previous_page_number }}">
&larr; Newer &larr; Newer
</a> </a>
{% else %} {% else %}
<a class="page empty" href="#">&larr; Newer</a> <a class="page empty">&larr; Newer</a>
{% endif %} {% endif %}
</div> </div>