Sfoglia il codice sorgente

[SwiftmailerBundle] Change Twig if syntax in panel info

Clément Jobeili 14 anni fa
parent
commit
34e3574e2b

+ 1 - 1
src/Symfony/Bundle/SwiftmailerBundle/Resources/views/Collector/swiftmailer.html.twig

@@ -23,7 +23,7 @@
 {% endblock %}
 {% endblock %}
 
 
 {% block panel %}
 {% block panel %}
-    <h2>Messages {% if not collector.isSpool %} sent {% else %} spooled {% endif %}</h2>
+    <h2>Messages {{ collector.isSpool ? 'spooled' : 'sent' }}</h2>
 
 
     {% if not collector.messages %}
     {% if not collector.messages %}
         <p>
         <p>