Change pagination styling; add 2 images
authorJef van Schendel <jefvanschendel@gmail.com>
Thu, 7 Jul 2011 18:04:30 +0000 (20:04 +0200)
committerJef van Schendel <jefvanschendel@gmail.com>
Thu, 7 Jul 2011 18:04:30 +0000 (20:04 +0200)
mediagoblin/static/css/base.css
mediagoblin/static/images/pagination_left.png [new file with mode: 0644]
mediagoblin/static/images/pagination_right.png [new file with mode: 0644]
mediagoblin/templates/mediagoblin/utils/pagination.html

index 09f08445bac154e650b77839cc963b14aba89056..18a60f5088c1f5848173f0d17a1e993f03a7275e 100644 (file)
@@ -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 (file)
index 0000000..56a2659
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 (file)
index 0000000..84f8abb
Binary files /dev/null and b/mediagoblin/static/images/pagination_right.png differ
index aae50d22d9eb748d3ba5a79c04a8d5c0540aaa44..23d4946363a3e6c465e1ca8cb0fd59e0410a5072 100644 (file)
         {% if pagination.has_prev %}
           <a href="{{ pagination.get_page_url_explicit(
                           base_url, get_params,
-                          pagination.page - 1) }}">&laquo; Prev</a>
+                          pagination.page - 1) }}"><img class="pagination_arrow" src="/mgoblin_static/images/pagination_left.png" alt="Previous page" />Newer</a>
         {% endif %}
-  
+        {% if pagination.has_next %}
+          <a href="{{ pagination.get_page_url_explicit(
+                          base_url, get_params,
+                          pagination.page + 1) }}">Older<img class="pagination_arrow" src="/mgoblin_static/images/pagination_right.png" alt="Next page" />
+          </a>
+        {% endif %}
+        <br />
+        Go to page: 
         {%- for page in pagination.iter_pages() %}
           {% if page %}
             {% if page != pagination.page %}
             <span class="ellipsis">…</span>
           {% endif %}
         {%- endfor %}
-  
-        {% if pagination.has_next %}
-          <a href="{{ pagination.get_page_url_explicit(
-                          base_url, get_params,
-                          pagination.page + 1) }}">Next &raquo;</a>
-        {% endif %}
        </p>
      </div>
   {% endif %}