On ajoute date de création et modification
This commit is contained in:
parent
2a2666abe2
commit
caa73bd1c2
@ -153,6 +153,9 @@ class Event(models.Model):
|
||||
def is_trash(self):
|
||||
return self.status == Event.STATUS.TRASH
|
||||
|
||||
def modified(self):
|
||||
return abs((self.modified_date - self.created_date).total_seconds()) > 1
|
||||
|
||||
|
||||
|
||||
class EventSubmissionForm(models.Model):
|
||||
|
@ -384,4 +384,9 @@ $red-900: #b71c1c !default;
|
||||
--background-color: #{$green-50};
|
||||
--icon: var(--icon-valid);
|
||||
--color: #{$green-800};
|
||||
}
|
||||
|
||||
.footer {
|
||||
opacity: 0.7;
|
||||
font-size: 80%;
|
||||
}
|
@ -44,6 +44,11 @@
|
||||
{% else %}
|
||||
<p><em>Cet événement est disponible uniquement sur les nuits énimagmatiques.</em></p>
|
||||
{% endif %}
|
||||
<p class="footer">Création : {{ event.created_date }}
|
||||
{% if event.modified %}
|
||||
— dernière modification : {{ event.modified_date }}
|
||||
{% endif %}
|
||||
</p>
|
||||
</div>
|
||||
{% if user.is_authenticated %}
|
||||
<div class="buttons">
|
||||
|
Loading…
Reference in New Issue
Block a user