Change publis list style

This commit is contained in:
Théophile Bastian 2017-09-23 19:19:59 +02:00
parent 5fccab444e
commit acb4430c02
2 changed files with 25 additions and 11 deletions

View file

@ -121,3 +121,17 @@ body {
.intro-text { .intro-text {
margin-bottom: 20px; margin-bottom: 20px;
} }
.publication-list {
margin-left: 20px;
}
.publication-entry>td {
padding-bottom: 7px;
}
.publication-date {
padding-right: 20px;
color: #505050;
font-style: italic;
}

View file

@ -13,18 +13,18 @@ Millésime {{ year_range }}
<div class="intro-text">{{ intro_text | markdownify }}</div> <div class="intro-text">{{ intro_text | markdownify }}</div>
<ul class="publication-list"> <table class="publication-list">
{% for bocal in publications %} {% for bocal in publications %}
<li class="publication-entry"> <tr class="publication-entry">
<a href="{{ bocal.url }}" title="Lire le BOcal !">{{ bocal }}</a>&nbsp;: <td class="publication-date">{{ bocal.date | date:"d/m/Y" }}</td>
<td class="publication-body">
<a href="{{ bocal.url }}" title="Lire le BOcal !">{{ bocal }}</a>
{% if bocal.descr %} {% if bocal.descr %}
<span class="publication-descr">{{ bocal.descr }}</span> : <span class="publication-descr">{{ bocal.descr }}</span>
<span class="publication-date">({{ bocal.date | date:"d/m/Y" }})</span>
{% else %}
<span class="publication-date">{{ bocal.date | date:"d/m/Y" }}</span>
{% endif %} {% endif %}
</li> </td>
</tr>
{% endfor %} {% endfor %}
</ul> </table>
{% endblock content %} {% endblock content %}