]> git.parisson.com Git - mezzo.git/commitdiff
Merge branch 'dev' of git+ssh://git.forge.ircam.fr/ircam-www into dev
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 8 Nov 2016 14:41:22 +0000 (15:41 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 8 Nov 2016 14:41:22 +0000 (15:41 +0100)
Conflicts:
app/templates/network/person_detail.html

1  2 
app/templates/network/person_detail.html

index 898cc5abc050feab94e8665b0cc5a3e5e46efbd9,ed0620d63ccd9a528da7bd5f1907e595d692d279..dad1600011111b19be138e14678fbfe805b6a6fc
      {% endeditable %}
  
      <p>{% trans 'Email' %} : {{ person_email }}</p>
-     <br>
-     <p>
-         {% trans 'Activities' %}:
-         <ul>
+     {% if person.activities.all|length > 0 %}
+         <h2 class="dotted">{% trans 'Activities' %}</h2>
+         <ul class="unstyled-list">
              {% for activity in person.activities.all %}
-             <li>
+             <li class="mb1">
                  {% if activity.function %}
-                     {% trans 'Function'%} : {{ activity.function }}<br>
 -                    <strong>{% trans 'Functions'%}:</strong> {{ activity.function }}<br>
++                    <strong>{% trans 'Function'%} :</strong> {{ activity.function }}<br>
                  {% endif %}
 -                {% with activity.teams.all as actvities %}
 -                    {% if actvities %}
 -                        <strong>{% trans 'Teams' %}:</strong>
 -                        {% for team in actvities %}
 +                {% if activity.status %}
-                     {% trans 'Status'%} : {{ activity.status }}<br>
++                    <strong>{% trans 'Status'%} :</strong> {{ activity.status }}<br>
 +                {% endif %}
 +                {% with activity.teams.all as teams %}
 +                    {% if teams %}
-                         {% trans 'Team' %} :
++                        <strong>{% trans 'Team' %} :</strong>
 +                        {% for team in teams %}
-                             {{ team.name }}<br>
+                             {{ team.name }}{% if not forloop.last %}, {% endif %}
                          {% endfor %}
+                         <br />
                      {% endif %}
                  {% endwith %}
                  {% with activity.organizations.all as organizations %}
                      {% if organizations %}
-                         {% trans 'Organization' %} :
+                         <strong>{% trans 'Organization' %}:</strong>
                          {% for organization in organizations %}
-                         {{ organization.name }}<br>
+                             {{ organization.name }}{% if not forloop.last %}, {% endif %}
                          {% endfor %}
+                         <br />
                      {% endif %}
                  {% endwith %}
-                     {% trans 'Period' %} : {% trans 'to' %} {{ activity.date_to }}<br>
 +                {% if activity.date_from or activity.date_to %}
 +                  {% if not activity.date_from and not activity.date_to|date_year_higher_than:10 %}
-                     {% trans 'Period'%} : {% trans 'from' %} {{ activity.date_from }}<br>
++                    <strong>{% trans 'Period' %}</strong> : {% trans 'to' %} {{ activity.date_to }}<br>
 +                  {% elif not activity.date_to %}
-                     {% trans 'Period'%} : {% trans 'from' %} {{ activity.date_from }} {% if not activity.date_to|date_year_higher_than:10 %}{% trans 'to' %} {{ activity.date_to }}{% endif %}<br>
++                    <strong>{% trans 'Period'%}</strong> : {% trans 'from' %} {{ activity.date_from }}<br>
 +                  {% else %}
++                    <strong>{% trans 'Period'%}</strong> : {% trans 'from' %} {{ activity.date_from }} {% if not activity.date_to|date_year_higher_than:10 %}{% trans 'to' %} {{ activity.date_to }}{% endif %}<br>
 +                  {% endif %}
 +                {% endif %}
              </li>
              {% endfor %}
          </ul>