diff options
| author | Bobby <[email protected]> | 2022-12-31 11:17:59 -0500 |
|---|---|---|
| committer | Bobby <[email protected]> | 2022-12-31 11:17:59 -0500 |
| commit | f7f323657ac2b52ce5a6b3d49ca6a0cdb3320938 (patch) | |
| tree | 34c54db15f09b99b573488c74271e345b5de740b /templates/dev_status | |
| parent | 5c5493387bbcd6d0b025d395df77ae48af65508e (diff) | |
| download | thatcomputerscientist-f7f323657ac2b52ce5a6b3d49ca6a0cdb3320938.tar.xz thatcomputerscientist-f7f323657ac2b52ce5a6b3d49ca6a0cdb3320938.zip | |
Some fixes and removed over engineered things, KISS baby
Diffstat (limited to 'templates/dev_status')
| -rw-r--r-- | templates/dev_status/home.html | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/templates/dev_status/home.html b/templates/dev_status/home.html index 2b3e34d0..6c494fe5 100644 --- a/templates/dev_status/home.html +++ b/templates/dev_status/home.html @@ -65,26 +65,24 @@ </div> <div class="pagination"> <center> - <table style="margin: 0 auto; border-spacing: 5px; border-collapse: separate;"> + <table id="pagination"> <tr> {% if page == 1 %} - <td class="page page-disabled"><a class="page-disabled" href="#">«</a></td> - <td class="page page-disabled" style="margin-right: 15px;"><a class="page-disabled" href="#">‹</a></td> + <td><a class="disabled">«</a></td> + <td style="margin-right: 15px;"><a class="disabled">‹</a></td> {% else %} - <td class="page"><a style="color: #8693e1;" href="{% url 'dev_status:home'%}?search={{ search }}&items={{ items }}&filter={{ filter }}&sort={{ sort }}&direction={{ direction }}&page=1">«</a></td> - <td class="page" style="margin-right: 15px; color: #8693e1;"><a href="{% url 'dev_status:home'%}?search={{ search }}&items={{ items }}&filter={{ filter }}&sort={{ sort }}&direction={{ direction }}&page={{ page|add:-1 }}">‹</a></td> + <td><a href="{% url 'dev_status:home'%}?search={{ search }}&items={{ items }}&filter={{ filter }}&sort={{ sort }}&direction={{ direction }}&page=1">«</a></td> + <td style="margin-right: 15px;"><a href="{% url 'dev_status:home'%}?search={{ search }}&items={{ items }}&filter={{ filter }}&sort={{ sort }}&direction={{ direction }}&page={{ page|add:-1 }}">‹</a></td> {% endif %} - <td class="page-separator"> </td> {% for i in num_pages|times %} - <td class="page {% if i == page %}page-active{% endif %}"><a {% if i == page %}style="color: white;" {% endif %} href="{% url 'dev_status:home'%}?search={{ search }}&items={{ items }}&filter={{ filter }}&sort={{ sort }}&direction={{ direction }}&page={{ i }}">{{ i }}</a></td> + <td><a {% if i == page %}class="active"{% endif %} href="{% url 'dev_status:home'%}?search={{ search }}&items={{ items }}&filter={{ filter }}&sort={{ sort }}&direction={{ direction }}&page={{ i }}">{{ i }}</a></td> {% endfor %} - <td class="page-separator"> </td> {% if page == num_pages %} - <td class="page page-disabled" style="margin-left: 15px;"><a class="page-disabled" href="#">›</a></td> - <td class="page page-disabled"><a class="page-disabled" href="#">»</a></td> + <td style="margin-left: 15px;"><a class="disabled">›</a></td> + <td><a class="disabled">»</a></td> {% else %} - <td class="page" style="margin-left: 15px;"><a style="color: #8693e1;" href="{% url 'dev_status:home'%}?search={{ search }}&items={{ items }}&filter={{ filter }}&sort={{ sort }}&direction={{ direction }}&page={{ page|add:1 }}">›</a></td> - <td class="page"><a style="color: #8693e1;" href="{% url 'dev_status:home'%}?search={{ search }}&items={{ items }}&filter={{ filter }}&sort={{ sort }}&direction={{ direction }}&page={{ num_pages }}">»</a></td> + <td style="margin-left: 15px;"><a href="{% url 'dev_status:home'%}?search={{ search }}&items={{ items }}&filter={{ filter }}&sort={{ sort }}&direction={{ direction }}&page={{ page|add:1 }}">›</a></td> + <td><a href="{% url 'dev_status:home'%}?search={{ search }}&items={{ items }}&filter={{ filter }}&sort={{ sort }}&direction={{ direction }}&page={{ num_pages }}">»</a></td> {% endif %} </tr> </table> |
