From 324f5b49078ce9448da2058915f97204178f310e Mon Sep 17 00:00:00 2001 From: Arnaud-D <35631001+Arnaud-D@users.noreply.github.com> Date: Fri, 23 Dec 2022 13:24:01 +0100 Subject: [PATCH] Refactorise l'affichage de l'obsolescence * pour utiliser le nouveau vocabulaire * en retirant une duplication de code --- .../tutorialv2/includes/obsolescence_warning.part.html | 9 +++++++++ templates/tutorialv2/view/container_online.html | 8 +------- templates/tutorialv2/view/content_online.html | 8 +------- zds/tutorialv2/tests/tests_views/tests_published.py | 9 +++++---- 4 files changed, 16 insertions(+), 18 deletions(-) create mode 100644 templates/tutorialv2/includes/obsolescence_warning.part.html diff --git a/templates/tutorialv2/includes/obsolescence_warning.part.html b/templates/tutorialv2/includes/obsolescence_warning.part.html new file mode 100644 index 0000000000..97ade1daec --- /dev/null +++ b/templates/tutorialv2/includes/obsolescence_warning.part.html @@ -0,0 +1,9 @@ +{% load i18n %} + +