From: test test Date: Wed, 26 May 2021 16:01:17 +0000 (+0200) Subject: Migrate url to django 3 X-Git-Tag: 2.8.1-ae~61 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=d4e3f6f1a8ba35ff883cbc0155d2843c9b035b90;p=teleforma.git Migrate url to django 3 --- diff --git a/app/urls.py b/app/urls.py index c7eb4681..355c941c 100644 --- a/app/urls.py +++ b/app/urls.py @@ -28,7 +28,7 @@ urlpatterns = [ # Languages url(r'^i18n/', include('django.conf.urls.i18n')), - url(r'^jsi18n/$', JavaScriptCatalog.as_view(packages=js_info_dict)), + url(r'^jsi18n/$', JavaScriptCatalog.as_view(packages=js_info_dict), name="js_catalog"), url(r'^robots\.txt$', lambda r: HttpResponse( "User-agent: *\nDisallow: /", mimetype="text/plain")), diff --git a/teleforma/exam/templates/exam/inc/script_list.html b/teleforma/exam/templates/exam/inc/script_list.html index c6edfbfd..911318c7 100644 --- a/teleforma/exam/templates/exam/inc/script_list.html +++ b/teleforma/exam/templates/exam/inc/script_list.html @@ -23,11 +23,11 @@ {% for script in object_list %} - {% if script.status != 2 and script.file %}{% endif %}{{ script.course.title }}{% if script.status != 2 and script.file %}{% endif %} - {% if script.status != 2 and script.file%}{% endif %}{{ script.session }}{% if script.status != 2 and script.file %}{% endif %} - {% if script.status != 2 and script.file %}{% endif %}{{ script.type }}{% if script.status != 2 and script.file %}{% endif %} - {% if script.author.username %}{{ script.author.last_name }}{% endif %} - {% if script.author.username %}{{ script.author.first_name }}{% endif %} + {% if script.status != 2 and script.file %}{% endif %}{{ script.course.title }}{% if script.status != 2 and script.file %}{% endif %} + {% if script.status != 2 and script.file%}{% endif %}{{ script.session }}{% if script.status != 2 and script.file %}{% endif %} + {% if script.status != 2 and script.file %}{% endif %}{{ script.type }}{% if script.status != 2 and script.file %}{% endif %} + {% if script.author.username %}{{ script.author.last_name }}{% endif %} + {% if script.author.username %}{{ script.author.first_name }}{% endif %} {{ script.date_added }} {% if script.date_marked %}{{ script.date_marked }}{% endif %} diff --git a/teleforma/exam/templates/exam/messages/script_marked.txt b/teleforma/exam/templates/exam/messages/script_marked.txt index 6d62e43c..79de53d5 100644 --- a/teleforma/exam/templates/exam/messages/script_marked.txt +++ b/teleforma/exam/templates/exam/messages/script_marked.txt @@ -4,7 +4,7 @@ Votre copie soumise le {{ script.date_added }} en {{ script.course }} pour la s La note, les commentaires et les annotations sont disponibles à cette adresse : -http://{{ site.domain }}{% url teleforma-exam-script-detail script.period.id script.id %} +http://{{ site.domain }}{% url 'teleforma-exam-script-detail' script.period.id script.id %} {% trans "Best regards" %}, {% trans "The site administrator" %} {% trans "of the" %} {% organization %} diff --git a/teleforma/exam/templates/exam/quotas.html b/teleforma/exam/templates/exam/quotas.html index 171eea13..dedc3e16 100644 --- a/teleforma/exam/templates/exam/quotas.html +++ b/teleforma/exam/templates/exam/quotas.html @@ -29,7 +29,7 @@ {% for quota in object_list %} - {{ quota.corrector.username }} + {{ quota.corrector.username }} {{ quota.course.title }} {{ quota.date_start }} {{ quota.date_end }} diff --git a/teleforma/exam/templates/exam/score_form.html b/teleforma/exam/templates/exam/score_form.html index 1846de9e..3bc6e24f 100644 --- a/teleforma/exam/templates/exam/score_form.html +++ b/teleforma/exam/templates/exam/score_form.html @@ -42,7 +42,7 @@
Ce formulaire vous permet d'enregistrer la note d'une copie papier déjà corrigée hors de la plateforme e-learning.
-
Pour soumettre une nouvelle copie d'épreuve scannée à la correction en ligne, merci d'utiliser ce formulaire.
+
Pour soumettre une nouvelle copie d'épreuve scannée à la correction en ligne, merci d'utiliser ce formulaire.

Veuillez indiquer tous les champs du formulaire suivant :
diff --git a/teleforma/exam/templates/exam/scores.html b/teleforma/exam/templates/exam/scores.html index 283a687f..27ad9bc3 100644 --- a/teleforma/exam/templates/exam/scores.html +++ b/teleforma/exam/templates/exam/scores.html @@ -16,11 +16,11 @@ {% block modules %}
-

playlists{% trans "My courses" %}

+

playlists{% trans "My courses" %}

@@ -29,12 +29,12 @@ {% block module-action %} {% if upload %} {% endif %} {% if admin %} {% endif %} {% endblock module-action %} diff --git a/teleforma/exam/templates/exam/script_detail.html b/teleforma/exam/templates/exam/script_detail.html index 59917766..69f0450c 100644 --- a/teleforma/exam/templates/exam/script_detail.html +++ b/teleforma/exam/templates/exam/script_detail.html @@ -47,11 +47,11 @@
- {{ script.title }} + {{ script.title }}
{% if topic.file %} -  {% trans "Topic" %} +  {% trans "Topic" %} {% endif %} {% if script.score %} {% trans "Score" %} : {{ script.score|floatformat }}/20 diff --git a/teleforma/exam/templates/exam/script_detail2.html b/teleforma/exam/templates/exam/script_detail2.html index 2adc1932..825800c9 100644 --- a/teleforma/exam/templates/exam/script_detail2.html +++ b/teleforma/exam/templates/exam/script_detail2.html @@ -31,11 +31,11 @@
- {{ script.title }} + {{ script.title }}
{% if topic.file %} -  {% trans "Topic" %} +  {% trans "Topic" %} {% endif %} {% if script.score %} {% trans "Score" %} : {{ script.score|floatformat }}/20 diff --git a/teleforma/exam/templates/exam/scripts.html b/teleforma/exam/templates/exam/scripts.html index 9c04f3fc..76ab9ba6 100644 --- a/teleforma/exam/templates/exam/scripts.html +++ b/teleforma/exam/templates/exam/scripts.html @@ -17,13 +17,13 @@ {% block modules %}
-

playlists{% trans "Scripts" %}

+

playlists{% trans "Scripts" %}

@@ -32,7 +32,7 @@ {% block module-action %} {% if upload %} {% endif %} {% endblock module-action %} diff --git a/teleforma/templates/admin/base.html b/teleforma/templates/admin/base.html index 4eb89166..888f3fb4 100644 --- a/teleforma/templates/admin/base.html +++ b/teleforma/templates/admin/base.html @@ -153,7 +153,7 @@ {% block quick-search %} {% with 'SEARCH_URL'|suit_conf as search_url %} {% if search_url %} -
+ +{% block footer %} + +{% endblock %} + +
+{% endblock layout %} +{% comment %} +{% block analytics %} +{% analytics_code %} +{% endblock analytics %} {% endcomment %} + + + + + diff --git a/teleforma/webclass/templates/admin/webclass/webclassrecord/add_records_links.html b/teleforma/webclass/templates/admin/webclass/webclassrecord/add_records_links.html index d47c5ad8..d69180fc 100644 --- a/teleforma/webclass/templates/admin/webclass/webclassrecord/add_records_links.html +++ b/teleforma/webclass/templates/admin/webclass/webclassrecord/add_records_links.html @@ -1,5 +1,5 @@
{% for period in periods %} - {{ period.name}} + {{ period.name}} {% endfor %}
\ No newline at end of file diff --git a/teleforma/webclass/templates/webclass/appointments_professor.html b/teleforma/webclass/templates/webclass/appointments_professor.html index 787ef4a7..58250e18 100644 --- a/teleforma/webclass/templates/webclass/appointments_professor.html +++ b/teleforma/webclass/templates/webclass/appointments_professor.html @@ -45,7 +45,7 @@ Calendrier des Webclass {{slot.participants.count}} - Rejoindre la conférence + Rejoindre la conférence {% empty %} diff --git a/teleforma/webclass/templates/webclass/inc/webclass_list.html b/teleforma/webclass/templates/webclass/inc/webclass_list.html index 8f0c7897..962b8786 100644 --- a/teleforma/webclass/templates/webclass/inc/webclass_list.html +++ b/teleforma/webclass/templates/webclass/inc/webclass_list.html @@ -24,14 +24,14 @@ {% elif webclass_slot.status == 'ingoing' %}

La webclasse est en cours. - Cliquez ici pour rejoindre la conférence

{% elif webclass_slot.status == 'almost' %}

La webclasse est accessible mais elle n'a pas encore démarré. - Cliquez ici pour rejoindre la conférence

@@ -46,7 +46,7 @@ {% for record in webclass_records %} - + {% trans 'Click here' %}
Cliquez-ici