]> Raphaƫl G. Git Repositories - airbundle/blobdiff - Resources/views/session/view.html.twig
Use checker member for isGranted call
[airbundle] / Resources / views / session / view.html.twig
index 9492fbe47211d9785aac3640b30c7f5b4b13224b..1466a96ad845f928cb0999d100e5ab3709df21e5 100644 (file)
                                                <header>
                                                        <h3>{% trans %}Candidates{% endtrans %}</h3>
                                                </header>
                                                <header>
                                                        <h3>{% trans %}Candidates{% endtrans %}</h3>
                                                </header>
-                                               <div class="panel grid{% if session.applications is defined %}{% if session.applications|length >= 4 %} four{% elseif session.applications|length >= 3 %} three{% elseif session.applications|length >= 2 %} two{% endif %}{% endif %}">
-                                                       {% if session.applications is defined and session.applications %}
-                                                               {% for application in session.applications %}
-                                                                       <section class="cell">
-                                                                               {% if application.user.id == 1 and application.user.title|slug == 'milonga-raphael' %}
-                                                                                       <h3><a href="{{ path('rapsys_air_user_milongaraphael') }}">{{ application.user.title }}</a></h3>
-                                                                               {% else %}
-                                                                                       <h3><a href="{{ path('rapsys_air_user_view', {'id': application.user.id, 'user': application.user.title|slug}) }}">{{ application.user.title }}</a></h3>
-                                                                               {% endif %}
-                                                                               <dl>
-                                                                                       <dt>{% trans %}Score{% endtrans %}</dt>
-                                                                                       <dd>
-                                                                                               {% if application.score is null %}
-                                                                                                       {% trans %}None{% endtrans %}
-                                                                                               {% else %}
-                                                                                                       {{ application.score }}</dd>
-                                                                                               {% endif %}
-                                                                               </dl>
-                                                                               <dl>
-                                                                                       <dt>{% trans %}Created{% endtrans %}</dt>
-                                                                                       <dd>{{ application.created|intldate('long', 'medium') }}</dd>
-                                                                               </dl>
-                                                                               <dl>
-                                                                                       <dt>{% trans %}Updated{% endtrans %}</dt>
-                                                                                       <dd>{{ application.updated|intldate('long', 'medium') }}</dd>
-                                                                               </dl>
-                                                                               <dl>
-                                                                                       <dt>{% trans %}Canceled{% endtrans %}</dt>
-                                                                                       <dd>
-                                                                                               {% if application.canceled is null %}
-                                                                                                       {% trans %}None{% endtrans %}
+                                               <div class="panel">
+                                                       <div class="grid{% if session.applications is defined %}{% if session.applications|length >= 4 %} four{% elseif session.applications|length >= 3 %} three{% elseif session.applications|length >= 2 %} two{% endif %}{% endif %}">
+                                                               {% if session.applications is defined and session.applications %}
+                                                                       {% for application in session.applications %}
+                                                                               <section class="cell">
+                                                                                       <header>
+                                                                                               {% if application.user.id == 1 and application.user.title|slug == 'milonga-raphael' %}
+                                                                                                       <h3><a href="{{ path('rapsys_air_user_milongaraphael') }}">{{ application.user.title }}</a></h3>
                                                                                                {% else %}
                                                                                                {% else %}
-                                                                                                       {{ application.canceled|intldate('long', 'medium') }}
+                                                                                                       <h3><a href="{{ path('rapsys_air_user_view', {'id': application.user.id, 'user': application.user.title|slug}) }}">{{ application.user.title }}</a></h3>
                                                                                                {% endif %}
                                                                                                {% endif %}
-                                                                                       </dd>
-                                                                               </dl>
+                                                                                       </header>
+                                                                                       <dl>
+                                                                                               <dt>{% trans %}Score{% endtrans %}</dt>
+                                                                                               <dd>
+                                                                                                       {% if application.score is null %}
+                                                                                                               {% trans %}None{% endtrans %}
+                                                                                                       {% else %}
+                                                                                                               {{ application.score }}</dd>
+                                                                                                       {% endif %}
+                                                                                       </dl>
+                                                                                       <dl>
+                                                                                               <dt>{% trans %}Created{% endtrans %}</dt>
+                                                                                               <dd>{{ application.created|intldate('long', 'medium') }}</dd>
+                                                                                       </dl>
+                                                                                       <dl>
+                                                                                               <dt>{% trans %}Updated{% endtrans %}</dt>
+                                                                                               <dd>{{ application.updated|intldate('long', 'medium') }}</dd>
+                                                                                       </dl>
+                                                                                       <dl>
+                                                                                               <dt>{% trans %}Canceled{% endtrans %}</dt>
+                                                                                               <dd>
+                                                                                                       {% if application.canceled is null %}
+                                                                                                               {% trans %}None{% endtrans %}
+                                                                                                       {% else %}
+                                                                                                               {{ application.canceled|intldate('long', 'medium') }}
+                                                                                                       {% endif %}
+                                                                                               </dd>
+                                                                                       </dl>
+                                                                               </section>
+                                                                       {% endfor %}
+                                                               {% else %}
+                                                                       <section class="cell">
+                                                                               {% trans %}None{% endtrans %}
                                                                        </section>
                                                                        </section>
-                                                               {% endfor %}
-                                                       {% else %}
-                                                               <section class="cell">
-                                                                       {% trans %}None{% endtrans %}
-                                                               </section>
-                                                       {% endif %}
+                                                               {% endif %}
+                                                       </div>
                                                </div>
                                        </section>
                                {% endif %}
                                                </div>
                                        </section>
                                {% endif %}