diff --git a/src/agenda_culturel/models.py b/src/agenda_culturel/models.py index 8f2c50c..0a8c720 100644 --- a/src/agenda_culturel/models.py +++ b/src/agenda_culturel/models.py @@ -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): diff --git a/src/agenda_culturel/static/style.scss b/src/agenda_culturel/static/style.scss index f978d06..8d23d97 100644 --- a/src/agenda_culturel/static/style.scss +++ b/src/agenda_culturel/static/style.scss @@ -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%; } \ No newline at end of file diff --git a/src/agenda_culturel/templates/agenda_culturel/single-event/event-single-inc.html b/src/agenda_culturel/templates/agenda_culturel/single-event/event-single-inc.html index b0fd3c7..1faaf72 100644 --- a/src/agenda_culturel/templates/agenda_culturel/single-event/event-single-inc.html +++ b/src/agenda_culturel/templates/agenda_culturel/single-event/event-single-inc.html @@ -44,6 +44,11 @@ {% else %}
Cet événement est disponible uniquement sur les nuits énimagmatiques.
{% endif %} + {% if user.is_authenticated %}