Nicer arrows on pagination

master
Nick Sergeant 2012-02-23 14:26:57 -05:00
parent 677013dad8
commit 33cd45480c
3 changed files with 17 additions and 4 deletions

1
snipt/fabfile.py vendored
View File

@ -42,6 +42,7 @@ def deployapp(m):
pass
local('hg push')
local('git push -f heroku')
local('heroku restart')
def deploy(m):
staticfiles()

View File

@ -795,6 +795,18 @@ div.pagination {
a {
color: #3BAAF3;
}
&.next {
a {
line-height: 33px;
padding-bottom: 1px;
}
}
&.prev {
a {
line-height: 33px;
padding-bottom: 1px;
}
}
}
}
}

View File

@ -4,11 +4,11 @@
<ul>
{% if page_obj.has_previous %}
<li class="prev">
<a id="prev-page" href="?page={{ page_obj.previous_page_number }}{{ getvars }}">&laquo;</a>
<a id="prev-page" href="?page={{ page_obj.previous_page_number }}{{ getvars }}">&larr;</a>
</li>
{% else %}
<li class="disabled prev">
<a href="#">&laquo;</a>
<a href="#">&larr;</a>
</li>
{% endif %}
{% for page in pages %}
@ -30,11 +30,11 @@
{% endfor %}
{% if page_obj.has_next %}
<li class="next">
<a id="next-page" href="?page={{ page_obj.next_page_number }}{{ getvars }}">&raquo;</a>
<a id="next-page" href="?page={{ page_obj.next_page_number }}{{ getvars }}">&rarr;</a>
</li>
{% else %}
<li class="disabled next">
<a href="#">&raquo;</a>
<a href="#">&rarr;</a>
</li>
{% endif %}
</ul>