From e5c2f2bc47ae81c327b43ff7184644f8aca85083 Mon Sep 17 00:00:00 2001 From: Arnaud-D <35631001+Arnaud-D@users.noreply.github.com> Date: Fri, 6 May 2022 22:10:32 +0200 Subject: [PATCH] Refactorise les URL de la galerie MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * utilise un namespace * utilise path au lieu de re_path * renomme "new" en "create" * retire le slug pour les URLs de formulaire, il est conservé pour la vue "details" --- templates/gallery/base.html | 12 +- templates/gallery/gallery/details.html | 14 +-- templates/gallery/gallery/list.html | 4 +- templates/gallery/image/edit.html | 2 +- templates/header.html | 2 +- templates/tutorialv2/create/container.html | 4 +- templates/tutorialv2/create/extract.html | 4 +- templates/tutorialv2/edit/container.html | 4 +- templates/tutorialv2/edit/content.html | 4 +- templates/tutorialv2/edit/extract.html | 4 +- templates/tutorialv2/view/content.html | 2 +- zds/gallery/forms.py | 4 +- zds/gallery/models.py | 2 +- zds/gallery/tests/tests_models.py | 2 +- zds/gallery/tests/tests_views.py | 108 +++++++++--------- zds/gallery/urls.py | 25 ++-- zds/gallery/views.py | 14 +-- zds/member/forms.py | 2 +- zds/member/tests/views/tests_login.py | 8 +- .../tests/tests_views/tests_content.py | 6 +- zds/urls.py | 2 +- 21 files changed, 113 insertions(+), 116 deletions(-) diff --git a/templates/gallery/base.html b/templates/gallery/base.html index 7e66b6706b..df460a05ab 100644 --- a/templates/gallery/base.html +++ b/templates/gallery/base.html @@ -10,14 +10,14 @@ {% block breadcrumb_base %} -
  • {% trans "Galeries" %}
  • +
  • {% trans "Galeries" %}
  • {% endblock %} {% block sidebar %}