]> Raphaƫl G. Git Repositories - blogbundle/blobdiff - Resources/views/keyword/index.html.twig
Use prev and next links
[blogbundle] / Resources / views / keyword / index.html.twig
index b1a6ce4c6a8b2c6fe25a52019830e48bceeac802..dae4b708c34f2eb8f4205162e71b4a990e228f70 100644 (file)
                                </article>
                        {% endfor %}
                </section>
-               {% if keywords_prev is defined or keywords_next is defined %}
+               {% if head.prev is defined or head.next is defined %}
                        <footer>
                                <nav class="pager">
-                                       {% if keywords_prev is defined %}
-                                               <a href="{{ keywords_prev }}" rel="prev">&lt; {% trans %}Previous keywords{% endtrans %}</a>
+                                       {% if head.prev is defined %}
+                                               <a href="{{ head.prev }}" rel="prev">&lt; {% trans %}Previous keywords{% endtrans %}</a>
                                        {% endif %}
-                                       {% if keywords_next is defined %}
-                                               <a href="{{ keywords_next }}" rel="next">{% trans %}Next keywords{% endtrans %} &gt;</a>
+                                       {% if head.next is defined %}
+                                               <a href="{{ head.next }}" rel="next">{% trans %}Next keywords{% endtrans %} &gt;</a>
                                        {% endif %}
                                </nav>
                        </footer>