Tweaking HTML some more
* Add some margin space around the prev/next links * Increase prev/next link font size * Add prev/next text without link when we're on the first/last page * Add useful placeholder text to the "board" search Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
{% block main %}
|
||||
<div id="search">
|
||||
<form action="" method="get">
|
||||
<input type="text" name="board" placeholder="Board" value="{{query['board']}}" />
|
||||
<input type="text" name="board" placeholder="Board (without / - ex. g instead of /g/)" value="{{query['board']}}" />
|
||||
<input type="text" name="reason" placeholder="Reason/rule" value="{{query['reason']}}" />
|
||||
<input type="text" name="name" placeholder="Name" value="{{query['name']}}" />
|
||||
<input type="text" name="trip" placeholder="Trip" value="{{query['trip']}}" />
|
||||
@@ -16,13 +16,19 @@
|
||||
</form>
|
||||
</div>
|
||||
{# pagination #}
|
||||
{% if query['offset'] != 0 %}
|
||||
<a href="{{prev_page}}">Prev</a>
|
||||
{% endif %}
|
||||
|
|
||||
{% if posts|length == config.HTTP_RESULTS_PER_PAGE %}
|
||||
<a href="{{next_page}}">Next</a>
|
||||
{% endif %}
|
||||
<div class="pagecount">
|
||||
{% if query['offset'] != 0 %}
|
||||
<a href="{{prev_page}}">Prev</a>
|
||||
{% else %}
|
||||
Prev
|
||||
{% endif %}
|
||||
|
|
||||
{% if posts|length == config.HTTP_RESULTS_PER_PAGE %}
|
||||
<a href="{{next_page}}">Next</a>
|
||||
{% else %}
|
||||
Next
|
||||
{% endif %}
|
||||
</div>
|
||||
<table id="bans-table">
|
||||
<thead>
|
||||
<tr>
|
||||
@@ -74,11 +80,17 @@
|
||||
{% endfor %}
|
||||
</table>
|
||||
{# pagination #}
|
||||
{% if query['offset'] != 0 %}
|
||||
<a href="{{prev_page}}">Prev</a>
|
||||
{% endif %}
|
||||
|
|
||||
{% if posts|length == config.HTTP_RESULTS_PER_PAGE %}
|
||||
<a href="{{next_page}}">Next</a>
|
||||
{% endif %}
|
||||
<div class="pagecount">
|
||||
{% if query['offset'] != 0 %}
|
||||
<a href="{{prev_page}}">Prev</a>
|
||||
{% else %}
|
||||
Prev
|
||||
{% endif %}
|
||||
|
|
||||
{% if posts|length == config.HTTP_RESULTS_PER_PAGE %}
|
||||
<a href="{{next_page}}">Next</a>
|
||||
{% else %}
|
||||
Next
|
||||
{% endif %}
|
||||
</div>
|
||||
{% endblock main %}
|
||||
|
||||
Reference in New Issue
Block a user