{% for torrent in torrents %} {{ torrent.added | date('Y-m-d') }} {% for code in locales %} {% if code == locale %} {{ url('torrent_info', { '_locale': code , torrentId : torrent.id }) }} {% else %} {% endif %} {% endfor %} {% endfor %}