Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
523 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -223,6 +223,10 @@ | |
font-style: italic; | ||
color: #999; | ||
|
||
& > a { | ||
color: #999; | ||
} | ||
|
||
&:after { | ||
opacity: .5; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{% extends "pages/base.html" %} | ||
{% load date %} | ||
{% load i18n %} | ||
|
||
|
||
|
||
{% block title %} | ||
{% trans "Historique des éditions du message" %} | ||
{% endblock %} | ||
|
||
|
||
|
||
{% block breadcrumb %} | ||
<li> | ||
<a href="{{ comment.get_absolute_url }}"> | ||
{% trans "Message de" %} {{ comment.author.username }} | ||
</a> | ||
</li> | ||
<li>{% trans "Historique des éditions" %}</li> | ||
{% endblock %} | ||
|
||
|
||
|
||
{% block headline %} | ||
<h1>{% trans "Historique des éditions du message" %}</h1> | ||
{% endblock %} | ||
|
||
|
||
|
||
{% block content_page %} | ||
{% if edits %} | ||
<table class="fullwidth"> | ||
<thead> | ||
<th>{% trans "Date" %}</th> | ||
<th>{% trans "Éditeur" %}</th> | ||
<th class="wide">{% trans "Version avant édition" %}</th> | ||
</thead> | ||
<tbody> | ||
{% for edit in edits %} | ||
<tr> | ||
<td>{{ edit.date|format_date|capfirst }}</td> | ||
<td>{% include 'misc/member_item.part.html' with member=edit.editor avatar=True %}</td> | ||
<td class="wide"> | ||
{% if edit.deleted_by %} | ||
{% trans "Supprimée par" %} {% include 'misc/member_item.part.html' with member=edit.deleted_by avatar=True %} ({{ edit.deleted_at|format_date }}) | ||
{% else %} | ||
{% if is_staff %} | ||
<form method="post" action="{% url 'delete-edit-content' edit.pk %}"> | ||
{% csrf_token %} | ||
<button type="submit" class="btn btn-grey ico-after red cross">{% trans "Supprimer" %}</button> | ||
</form> | ||
{% endif %} | ||
{% if comment.is_visible %} | ||
<form method="post" action="{% url 'restore-edit' edit.pk %}"> | ||
{% csrf_token %} | ||
<button type="submit" class="btn btn-grey ico-after blue history">{% trans "Restaurer" %}</button> | ||
</form> | ||
{% endif %} | ||
<a href="{% url 'edit-detail' edit.pk %}" class="btn btn-grey ico-after hide">{% trans "Voir" %}</a> | ||
{% endif %} | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
{% else %} | ||
<em>{% trans "Ce message n'a jamais été édité." %}</em> | ||
{% endif %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{% extends "pages/base.html" %} | ||
{% load date %} | ||
{% load i18n %} | ||
{% load emarkdown %} | ||
|
||
|
||
|
||
{% block title %} | ||
{% trans "Version avant édition" %} • {% trans "Historique des éditions du message" %} | ||
{% endblock %} | ||
|
||
|
||
|
||
{% block breadcrumb %} | ||
<li> | ||
<a href="{{ comment.get_absolute_url }}"> | ||
{% trans "Message de" %} {{ comment.author.username }} | ||
</a> | ||
</li> | ||
<li> | ||
<a href="{% url 'comment-edits-history' comment.pk %}"> | ||
{% trans "Historique des éditions" %} | ||
</a> | ||
</li> | ||
<li> | ||
{% trans "Version avant édition" %} | ||
</li> | ||
{% endblock %} | ||
|
||
|
||
|
||
{% block headline %} | ||
<h1>{% trans "Version avant édition" %}</h1> | ||
{% endblock %} | ||
|
||
|
||
|
||
{% block content_page %} | ||
<div class="message-content"> | ||
{{ edit.original_text|emarkdown }} | ||
</div> | ||
|
||
{% if is_staff %} | ||
<form method="post" action="{% url 'delete-edit-content' edit.pk %}"> | ||
{% csrf_token %} | ||
<button type="submit" class="btn btn-grey ico-after red cross">{% trans "Supprimer" %}</button> | ||
</form> | ||
{% endif %} | ||
|
||
{% if comment.is_visible %} | ||
<form method="post" action="{% url 'restore-edit' edit.pk %}"> | ||
{% csrf_token %} | ||
<button type="submit" class="btn btn-grey ico-after blue history">{% trans "Restaurer" %}</button> | ||
</form> | ||
{% endif %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.