Make show-password-js work for change password too
[mediagoblin.git] / mediagoblin / templates / mediagoblin / utils / pagination.html
index 23d4946363a3e6c465e1ca8cb0fd59e0410a5072..caa79fccece5104ef1d4256e9068e09b5ff3f05a 100644 (file)
@@ -1,5 +1,6 @@
-{# GNU MediaGoblin -- federated, autonomous media hosting
-# Copyright (C) 2011 Free Software Foundation, Inc
+{#
+# GNU MediaGoblin -- federated, autonomous media hosting
+# Copyright (C) 2011 MediaGoblin contributors.  See AUTHORS.
 #
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU Affero General Public License as published by
@@ -20,7 +21,7 @@
   {# only display if {{pagination}} is defined #}
   {% if pagination and pagination.pages > 1 %}
     {% if not base_url %}
-      {% set base_url = request.path_info %}
+      {% set base_url = request.full_path %}
     {% endif %}
 
     {% if preserve_get_params %}
     <div class="pagination">
       <p>
         {% if pagination.has_prev %}
-          <a href="{{ pagination.get_page_url_explicit(
-                          base_url, get_params,
-                          pagination.page - 1) }}"><img class="pagination_arrow" src="/mgoblin_static/images/pagination_left.png" alt="Previous page" />Newer</a>
+          {% set prev_url = pagination.get_page_url_explicit(
+                   base_url, get_params,
+                   pagination.page - 1) %}
+          <a href="{{ prev_url }}">{% trans %}← Newer{% endtrans %}</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>
+          {% set next_url = pagination.get_page_url_explicit(
+                   base_url, get_params,
+                   pagination.page + 1) %}
+          <a href="{{ next_url }}">{% trans %}Older →{% endtrans %}</a>
         {% endif %}
         <br />
-        Go to page: 
+        {% trans %}Go to page:{% endtrans %}
         {%- for page in pagination.iter_pages() %}
           {% if page %}
             {% if page != pagination.page %}