From 853e8f607cb3b1f87b4fb39c3e593b5dbe09f67b Mon Sep 17 00:00:00 2001 From: Marc Ducobu Date: Fri, 14 Nov 2014 15:19:20 +0100 Subject: [PATCH] close#329 - Set person's nationality and person's birthday right-align --- Resources/views/layout.html.twig | 52 +++++++++++++++++--------------- 1 file changed, 28 insertions(+), 24 deletions(-) diff --git a/Resources/views/layout.html.twig b/Resources/views/layout.html.twig index 319ae1264..999598c00 100644 --- a/Resources/views/layout.html.twig +++ b/Resources/views/layout.html.twig @@ -11,31 +11,35 @@ {% block layout_content %}
-
-

- {{ person.surname }} - {{ person.name }} {% spaceless %} - {% if person.isOpen == false %} - - {% endif %} - {% endspaceless %} -

- -

{% spaceless %} - {% if person.dateOfBirth == null %} - {{ 'person.without_date_of_birth'|trans }}, {{ ('person.gender.' ~ - person.genre)|trans }} - {% else %} - {% transchoice person.genreNumeric - with {'%date%' : person.dateOfBirth.format('d-m-Y')} %}views.layout.born{% endtranschoice %} - - {% endif %} +

+
+

+ {{ person.surname }} {{ person.name }} {% spaceless %} + {% if not person.isOpen %} + + {% endif %} + {% endspaceless %} +

+
+
+

{% spaceless %} + {% if person.dateOfBirth == null %} + {{ 'person.without_date_of_birth'|trans }}, {{ ('person.gender.' ~ + person.genre)|trans }} + {% else %} + {% transchoice person.genreNumeric + with {'%date%' : person.dateOfBirth.format('d-m-Y')} %} + views.layout.born + {% endtranschoice %} + {% endif %} {% endspaceless %}

- {% if person.nationality is not null %} -

{{ person.nationality.label }}

- {% else %} -

{% trans %}views.layout.without_nationality{% endtrans %}

- {% endif %} + + {% if person.nationality is not null %} +

{{ person.nationality.label }}

+ {% else %} +

{% trans %}views.layout.without_nationality{% endtrans %}

+ {% endif %} +