From: Jef van Schendel Date: Thu, 7 Jul 2011 18:04:30 +0000 (+0200) Subject: Change pagination styling; add 2 images X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0a45fa590395a12dfd529a67a8264aab48099819;p=mediagoblin.git Change pagination styling; add 2 images --- diff --git a/mediagoblin/static/css/base.css b/mediagoblin/static/css/base.css index 09f08445..18a60f50 100644 --- a/mediagoblin/static/css/base.css +++ b/mediagoblin/static/css/base.css @@ -122,6 +122,10 @@ a.mediagoblin_logo:hover { text-align:center; } +.pagination_arrow{ + margin:5px; +} + /* forms */ .form_box { diff --git a/mediagoblin/static/images/pagination_left.png b/mediagoblin/static/images/pagination_left.png new file mode 100644 index 00000000..56a26596 Binary files /dev/null and b/mediagoblin/static/images/pagination_left.png differ diff --git a/mediagoblin/static/images/pagination_right.png b/mediagoblin/static/images/pagination_right.png new file mode 100644 index 00000000..84f8abba Binary files /dev/null and b/mediagoblin/static/images/pagination_right.png differ diff --git a/mediagoblin/templates/mediagoblin/utils/pagination.html b/mediagoblin/templates/mediagoblin/utils/pagination.html index aae50d22..23d49463 100644 --- a/mediagoblin/templates/mediagoblin/utils/pagination.html +++ b/mediagoblin/templates/mediagoblin/utils/pagination.html @@ -34,9 +34,16 @@ {% if pagination.has_prev %} « Prev + pagination.page - 1) }}">Previous pageNewer {% endif %} - + {% if pagination.has_next %} + OlderNext page + + {% endif %} +
+ Go to page: {%- for page in pagination.iter_pages() %} {% if page %} {% if page != pagination.page %} @@ -50,12 +57,6 @@ … {% endif %} {%- endfor %} - - {% if pagination.has_next %} - Next » - {% endif %}

{% endif %}