Skip to content

Commit

Permalink
Améliore la page du journal des événements
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud-D committed May 15, 2021
1 parent cc6110e commit 7fe34b5
Showing 1 changed file with 23 additions and 19 deletions.
42 changes: 23 additions & 19 deletions templates/tutorialv2/view/events.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@

{% block title %}
{% blocktrans with title=content.title %}
Historique de "{{ title }}"
Journal des événements de "{{ title }}"
{% endblocktrans %}
{% endblock %}



{% block breadcrumb %}
<li><a href="{{ content.get_absolute_url }}">{{ content.title }}</a></li>
<li>{% trans "Historique des événements" %}</li>
<li>{% trans "Journal des événements" %}</li>
{% endblock %}


Expand All @@ -32,7 +32,7 @@ <h1 {% if content.image %}class="illu"{% endif %}>
<img src="{{ content.image.physical.tutorial_illu.url }}" alt="">
{% endif %}
{% blocktrans with title=content.title %}
Historique de "{{ title }}"
Journal des événements de "{{ title }}"
{% endblocktrans %}
</h1>

Expand All @@ -48,23 +48,27 @@ <h2 class="subtitle">


{% block content %}
{% include "misc/paginator.html" with position="top" %}
{% if events %}
{% include "misc/paginator.html" with position="top" %}

<table class="fullwidth commits-list">
<thead>
<tr>
<th width="20%">{% trans "Date" %}</th>
<th>{% trans "Description" %}</th>
</tr>
</thead>
<tbody>
{% for e in events %}
<table class="fullwidth commits-list">
<thead>
<tr>
<td>{{ e.date | format_date:True }}</td>
<td>{{ e.description | safe }}</td>
<th width="20%">{% trans "Date" %}</th>
<th>{% trans "Description" %}</th>
</tr>
{% endfor %}
</tbody>
</table>
{% include "misc/paginator.html" with position="bottom" %}
</thead>
<tbody>
{% for e in events %}
<tr>
<td>{{ e.date | format_date:True }}</td>
<td>{{ e.description | safe }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% include "misc/paginator.html" with position="bottom" %}
{% else %}
<p>{% trans "Aucun événement n'a été enregistré pour ce contenu." %}</p>
{% endif %}
{% endblock %}

0 comments on commit 7fe34b5

Please sign in to comment.