From 3c68d2c6da2c134b975665b7dc2244c602e6bf1b Mon Sep 17 00:00:00 2001 From: Davide Bellettini Date: Thu, 28 Mar 2013 20:29:44 +0100 Subject: [PATCH] View completed #278 --- .../Resources/translations/messages.it.yml | 1 + .../Resources/views/School/index.html.twig | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/src/Universibo/Bundle/MainBundle/Resources/translations/messages.it.yml b/src/Universibo/Bundle/MainBundle/Resources/translations/messages.it.yml index 1301f7fd..f31422c6 100644 --- a/src/Universibo/Bundle/MainBundle/Resources/translations/messages.it.yml +++ b/src/Universibo/Bundle/MainBundle/Resources/translations/messages.it.yml @@ -48,3 +48,4 @@ school: title: Scuola di %name% url: 'Pagina ufficiale della scuola:' courses: Corsi di laurea + nocourse: Nessun corso di laurea inserito. diff --git a/src/Universibo/Bundle/MainBundle/Resources/views/School/index.html.twig b/src/Universibo/Bundle/MainBundle/Resources/views/School/index.html.twig index 4b87867c..643cdcec 100644 --- a/src/Universibo/Bundle/MainBundle/Resources/views/School/index.html.twig +++ b/src/Universibo/Bundle/MainBundle/Resources/views/School/index.html.twig @@ -4,4 +4,16 @@

{% trans with {'%name%': school.name} %}school.title{% endtrans %}

{% trans %}school.url{% endtrans %} {{school.url}}

{% trans %}school.courses{% endtrans %}

+{% if courses|length > 0 %} + +{% else %} +

{% trans %}school.nocourse{% endtrans %}

+{% endif %} {% endblock content %}