Hid page links when there is just one page.

This commit is contained in:
2023-08-19 23:41:46 -04:00
parent 43b74c1521
commit eeeaa9260a
2 changed files with 6 additions and 0 deletions

View File

@@ -16,6 +16,10 @@
height: 75vh; height: 75vh;
} }
.fc {
width: fit-content;
}
/**************************************************************************** /****************************************************************************
* Content. * * Content. *
****************************************************************************/ ****************************************************************************/

View File

@@ -17,9 +17,11 @@
</h1> </h1>
</div> </div>
<div class="centered-container"> <div class="centered-container">
{% if num_pages > 1 %}
<div class="mb-2"> <div class="mb-2">
{% for page in pages %}<a href="./?page={{page}}">{{page}}</a>{% if not forloop.last %}<span> </span>{% endif %}{% endfor %} {% for page in pages %}<a href="./?page={{page}}">{{page}}</a>{% if not forloop.last %}<span> </span>{% endif %}{% endfor %}
</div> </div>
{% endif %}
<table class="fc mauto"> <table class="fc mauto">
<tr> <tr>
{% if page != 1 %} {% if page != 1 %}