]> Raphaƫl G. Git Repositories - blogbundle/blobdiff - templates/user/index.html.twig
Rename rapsys_blog route to rapsysblog
[blogbundle] / templates / user / index.html.twig
similarity index 80%
rename from Resources/views/user/index.html.twig
rename to templates/user/index.html.twig
index e3049b9e86429cfc4d94c1d10266d2e3691461c8..8fc35b454dff407b8a894761e34926d560dfc486 100644 (file)
@@ -2,7 +2,7 @@
 {% block content %}
        <section id="content">
                <header>
-                       <h1><a href="{{ path('rapsys_blog_user') }}">{{ title }}</a></h1>
+                       <h1><a href="{{ path('rapsysblog_user') }}">{{ title.page }}</a></h1>
                </header>
                <section>
                        {% for user in users %}
                                </article>
                        {% endfor %}
                </section>
-               {% if head.prev is defined or head.next is defined %}
+               {% if ( prev is defined and prev ) or ( next is defined and next ) %}
                        <footer>
                                <nav class="pager">
-                                       {% if head.prev is defined %}
-                                               <a href="{{ head.prev }}" rel="prev">&lt; {% trans %}Previous users{% endtrans %}</a>
+                                       {% if prev is defined and prev %}
+                                               <a href="{{ prev }}" rel="prev">&lt; {% trans %}Previous users{% endtrans %}</a>
                                        {% endif %}
-                                       {% if head.next is defined %}
-                                               <a href="{{ head.next }}" rel="next">{% trans %}Next users{% endtrans %} &gt;</a>
+                                       {% if next is defined and next %}
+                                               <a href="{{ next }}" rel="next">{% trans %}Next users{% endtrans %} &gt;</a>
                                        {% endif %}
                                </nav>
                        </footer>