src/JuridicusBundle/Resources/views/Pruefer/protokoll_list_box.html.twig line 1

Open in your IDE?
  1. {% set count = 0 %}
  2. <ul class="protokoll-list">
  3. {% for examen in [1,2] %}
  4. {% set c = pruefer.getProtokollCountForExamen(examen) %}
  5. {% if c > 0 %}
  6. <li>
  7. {% set count = count + c %}
  8. {% set link_text = (c==1) ? '%s Protokoll' : '%s Protokolle' %}
  9. {% set link_text = link_text|format(c) %}
  10. <i>{{ link_text }} {{ examen }}. Staatsexamen</i>
  11. </li>
  12. {% endif %}
  13. {% endfor %}
  14. {% if count==0 %}
  15. <li><i>Keine Protokolle.</i></li>
  16. {% endif %}
  17. </ul>