diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/comments/index.jinja | 2 | ||||
-rw-r--r-- | templates/macros/pagination.jinja | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/templates/comments/index.jinja b/templates/comments/index.jinja index 217ddb3..ebf1e4e 100644 --- a/templates/comments/index.jinja +++ b/templates/comments/index.jinja @@ -28,5 +28,5 @@ </section> </div> {% endfor %} - {{ pagination.render_pagination(page, 'comments.index') }} + {{ pagination.render_pagination(page) }} </div> diff --git a/templates/macros/pagination.jinja b/templates/macros/pagination.jinja index fdd8993..b53c0eb 100644 --- a/templates/macros/pagination.jinja +++ b/templates/macros/pagination.jinja @@ -1,4 +1,4 @@ -{% macro render_pagination(pagination, endpoint) %} +{% macro render_pagination(pagination) %} <div class=page-items> {{ pagination.first }} - {{ pagination.last }} of {{ pagination.total }} </div> @@ -6,7 +6,7 @@ {% for page in pagination.iter_pages() %} {% if page %} {% if page != pagination.page %} - <a href="{{ url_for(endpoint, page=page) }}">{{ page }}</a> + <a id="page-{{ page }}" href="/">{{ page }}</a> {% else %} <strong>{{ page }}</strong> {% endif %} |