Explorar el Código

inversion connexion, articles

Sangfroid hace 1 mes
padre
commit
d39279a9fb
Se han modificado 1 ficheros con 12 adiciones y 10 borrados
  1. 12 10
      templates/_aside.html.twig

+ 12 - 10
templates/_aside.html.twig

@@ -1,4 +1,15 @@
 <aside>
+    <!-- Derniers articles -->
+    {% set articles = last_articles() %}
+    <section class="derniers-articles">
+        <h2>Derniers articles</h2>
+        <ul>
+            {% for article in articles %}
+                <li><a href="{{ path('app_view', {'slug': article.slug}) }}">{{ article.title }}</a></li>
+            {% endfor %}
+        </ul>
+    </section>
+    
     <!-- Section Connexion -->
     <section class="connexion">
         {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
@@ -21,16 +32,7 @@
         {% endif %}
     </section>
     
-    <!-- Derniers articles -->
-    {% set articles = last_articles() %}
-    <section class="derniers-articles">
-        <h2>Derniers articles</h2>
-        <ul>
-            {% for article in articles %}
-                <li><a href="{{ path('app_view', {'slug': article.slug}) }}">{{ article.title }}</a></li>
-            {% endfor %}
-        </ul>
-    </section>
+    
     
     {#
     <!-- Catégories -->