Skip to content

Commit

Permalink
Ajout de liens vers les versions spéciales dans l'historique d'un con…
Browse files Browse the repository at this point in the history
  • Loading branch information
leroivi authored Aug 11, 2024
1 parent 7f9a110 commit 8fd4985
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions templates/tutorialv2/view/history.html
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,18 @@ <h2 class="subtitle">
{% if content.sha_public == commit.hexsha or content.sha_validation == commit.hexsha or content.sha_beta == commit.hexsha or content.sha_draft == commit.hexsha %}
<ul class="unstyled-list">
{% if content.sha_validation == commit.hexsha %}
<li>{% trans "Validation" %}</li>
{% url "content:validation-view" pk=content.pk slug=content.slug as url_validation %}
<a href="{{ url_validation }}"><li>{% trans "Validation" %}</li></a>
{% endif %}
{% if content.sha_beta == commit.hexsha %}
<li>{% trans "Bêta" %}</li>
{% url "content:beta-view" pk=content.pk slug=content.slug as url_beta %}
<a href="{{ url_beta }}"><li>{% trans "Bêta" %}</li></a>
{% endif %}
{% if content.sha_draft == commit.hexsha %}
<li>{% trans "Brouillon" %}</li>
<a href="{{ content.get_absolute_url }}"><li>{% trans "Brouillon" %}</li></a>
{% endif %}
{% if content.sha_public == commit.hexsha %}
<li>{% trans "Publiée" %}</li>
<a href="{{ content.get_absolute_url_online }}"><li>{% trans "Publiée" %}</li></a>
{% endif %}
</ul>
{% endif %}
Expand Down

0 comments on commit 8fd4985

Please sign in to comment.