aboutsummaryrefslogtreecommitdiff
path: root/templates/dev_status
diff options
context:
space:
mode:
authorBobby <[email protected]>2022-12-31 11:17:59 -0500
committerBobby <[email protected]>2022-12-31 11:17:59 -0500
commitf7f323657ac2b52ce5a6b3d49ca6a0cdb3320938 (patch)
tree34c54db15f09b99b573488c74271e345b5de740b /templates/dev_status
parent5c5493387bbcd6d0b025d395df77ae48af65508e (diff)
downloadthatcomputerscientist-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.html22
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="#">&laquo;</a></td>
- <td class="page page-disabled" style="margin-right: 15px;"><a class="page-disabled" href="#">&lsaquo;</a></td>
+ <td><a class="disabled">&laquo;</a></td>
+ <td style="margin-right: 15px;"><a class="disabled">&lsaquo;</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">&laquo;</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 }}">&lsaquo;</a></td>
+ <td><a href="{% url 'dev_status:home'%}?search={{ search }}&items={{ items }}&filter={{ filter }}&sort={{ sort }}&direction={{ direction }}&page=1">&laquo;</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 }}">&lsaquo;</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="#">&rsaquo;</a></td>
- <td class="page page-disabled"><a class="page-disabled" href="#">&raquo;</a></td>
+ <td style="margin-left: 15px;"><a class="disabled">&rsaquo;</a></td>
+ <td><a class="disabled">&raquo;</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 }}">&rsaquo;</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 }}">&raquo;</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 }}">&rsaquo;</a></td>
+ <td><a href="{% url 'dev_status:home'%}?search={{ search }}&items={{ items }}&filter={{ filter }}&sort={{ sort }}&direction={{ direction }}&page={{ num_pages }}">&raquo;</a></td>
{% endif %}
</tr>
</table>