From 207cc5de13f52ff084a7c3ec865e0b47cdbea2af Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Tue, 5 Feb 2019 02:19:15 +0100 Subject: [PATCH] upgrade django urls thx to http://content.seedinvest.com/labs/backend/upgrading-from-django-1-4-to-django-1-7 --- teleforma/templates/postman/base.html | 10 +++---- teleforma/templates/postman/base_folder.html | 12 ++++---- teleforma/templates/postman/base_write.html | 2 +- teleforma/templates/postman/view.html | 12 ++++---- teleforma/templates/quiz/quiz_detail.html | 2 +- .../templates/registration/activate.html | 2 +- .../registration/activation_complete.html | 2 +- .../registration/activation_email.html | 2 +- .../registration/activation_email.txt | 2 +- teleforma/templates/registration/login.html | 6 ++-- .../registration/password_reset_email.html | 2 +- .../registration/registration_complete.html | 2 +- teleforma/templates/teleforma/annals.html | 10 +++---- .../templates/teleforma/appointments.html | 2 +- teleforma/templates/teleforma/course.html | 2 +- .../teleforma/course_conference.html | 10 +++---- .../teleforma/course_conference_audio.html | 6 ++-- .../teleforma/course_conference_record.html | 2 +- .../templates/teleforma/course_detail.html | 6 ++-- .../templates/teleforma/course_document.html | 4 +-- .../templates/teleforma/course_media.html | 18 +++++------ .../teleforma/course_media_video_embed.html | 4 +-- teleforma/templates/teleforma/courses.html | 14 ++++----- .../templates/teleforma/courses_pending.html | 2 +- .../teleforma/inc/conference_list.html | 4 +-- .../teleforma/inc/document_list.html | 4 +-- .../templates/teleforma/inc/media_list.html | 6 ++-- .../teleforma/inc/media_list_pending.html | 4 +-- .../templates/teleforma/inc/newsitem.html | 4 +-- .../teleforma/inc/newsitems_portlet.html | 8 ++--- .../templates/teleforma/newsitem_list.html | 4 +-- teleforma/templates/telemeta/base.html | 30 +++++++++---------- teleforma/templates/telemeta/home.html | 2 +- .../telemeta/inc/module_revisions.html | 14 ++++----- .../telemeta/inc/module_searches.html | 2 +- .../telemeta/inc/module_user_revisions.html | 4 +-- .../templates/telemeta/inc/user_list.html | 6 ++-- teleforma/templates/telemeta/lists.html | 12 ++++---- teleforma/templates/telemeta/login.html | 4 +-- .../templates/telemeta/profile_detail.html | 10 +++---- .../templates/telemeta/search_criteria.html | 4 +-- teleforma/templates/telemeta/users.html | 10 +++---- 42 files changed, 134 insertions(+), 134 deletions(-) diff --git a/teleforma/templates/postman/base.html b/teleforma/templates/postman/base.html index 480a7383..12ea9d0a 100644 --- a/teleforma/templates/postman/base.html +++ b/teleforma/templates/postman/base.html @@ -12,15 +12,15 @@
{% postman_unread as unread_count %}
-{% trans "New message" %} +{% trans "New message" %}
diff --git a/teleforma/templates/postman/base_folder.html b/teleforma/templates/postman/base_folder.html index 1fd48140..e266da48 100644 --- a/teleforma/templates/postman/base_folder.html +++ b/teleforma/templates/postman/base_folder.html @@ -47,13 +47,13 @@ - {% block pm_sender_cell %}{% if message.is_new %}{% endif %}{{ message.obfuscated_sender|or_me:user }}{% if message.count %} ({{ message.count }}){% endif %}{% if message.is_new %}{% endif %}{% endblock %} + {% block pm_sender_cell %}{% if message.is_new %}{% endif %}{{ message.obfuscated_sender|or_me:user }}{% if message.count %} ({{ message.count }}){% endif %}{% if message.is_new %}{% endif %}{% endblock %} - {% block pm_recipient_cell %}{{ message.obfuscated_recipient|or_me:user }}{% if message.count %} ({{ message.count }}){% endif %}{% endblock %} + {% block pm_recipient_cell %}{{ message.obfuscated_recipient|or_me:user }}{% if message.count %} ({{ message.count }}){% endif %}{% endblock %} {% if message.is_new %}{% endif %}{% if message.is_replied %}{% endif %} {% block pm_subject %} - + {% include "postman/inc_subject_ex.html" %} {% endblock %} {% if message.is_replied %}{% endif %}{% if message.is_new %}{% endif %} @@ -66,13 +66,13 @@
{% block pm_form_buttons %} {% block pm_delete_button %} -{% trans "Delete" %} +{% trans "Delete" %} {% endblock %} {% block pm_archive_button %} -{% trans "Archive" %} +{% trans "Archive" %} {% endblock %} {% block pm_undelete_button %} -{% trans "Undelete" %} +{% trans "Undelete" %} {% endblock %} {% endblock %} diff --git a/teleforma/templates/postman/base_write.html b/teleforma/templates/postman/base_write.html index d3eb8d32..c76bb9da 100644 --- a/teleforma/templates/postman/base_write.html +++ b/teleforma/templates/postman/base_write.html @@ -16,7 +16,7 @@ {% trans "Pour les questions concernant l'organisation des cours, le planning, les documents de cours ou les copies, adressez-vous à Admin-CRFPA." %}
{% trans "Pour les questions concernant uniquement l'accès à la plateforme et aux médias vidéo ou audio, lire d'abord" %} - la page + la page d'aide {% trans "puis adressez-vous à Support technique." %}

diff --git a/teleforma/templates/postman/view.html b/teleforma/templates/postman/view.html index 65e83406..6461ef3b 100644 --- a/teleforma/templates/postman/view.html +++ b/teleforma/templates/postman/view.html @@ -15,12 +15,12 @@
{% if message.obfuscated_sender %} - + {{ message.obfuscated_sender|or_me:user }} » {% endif %} {% if message.obfuscated_recipient %} - + {{ message.obfuscated_recipient|or_me:user }} | {% endif %} @@ -40,19 +40,19 @@ {% trans "Back" %} {% block pm_delete_button %} -{% trans "Delete" %} +{% trans "Delete" %} {% endblock %} {% block pm_archive_button %} {% if not archived %} -{% trans "Archive" %} +{% trans "Archive" %} {% endif %} {% endblock %} -{% if reply_to_pk %}{% trans "Reply" %}{% endif %} +{% if reply_to_pk %}{% trans "Reply" %}{% endif %} {% if reply_to_pk %}

{% trans 'Reply' %}

-
{% csrf_token %} +{% csrf_token %}
{{ form.body }}

{% trans "Reply" %} diff --git a/teleforma/templates/quiz/quiz_detail.html b/teleforma/templates/quiz/quiz_detail.html index 800afbc2..6a66bc33 100644 --- a/teleforma/templates/quiz/quiz_detail.html +++ b/teleforma/templates/quiz/quiz_detail.html @@ -12,7 +12,7 @@ {% endif %}

{{ quiz.description }}

- + {% trans "Start quiz" %}

diff --git a/teleforma/templates/registration/activate.html b/teleforma/templates/registration/activate.html index 6cf22cbc..4f3bdbe2 100644 --- a/teleforma/templates/registration/activate.html +++ b/teleforma/templates/registration/activate.html @@ -2,7 +2,7 @@ {% load i18n %} {% block title %}{% if account %}{% trans "Activation complete" %}{% else %}{% trans "Activation problem" %}{% endif %}{% endblock %} {% block content %} -{% url auth_login as auth_login_url %} +{% url 'auth_login' as auth_login_url %} {% if account %} {% blocktrans %} Thanks {{ account }}, activation complete! diff --git a/teleforma/templates/registration/activation_complete.html b/teleforma/templates/registration/activation_complete.html index 63f343bf..0eee8b6a 100644 --- a/teleforma/templates/registration/activation_complete.html +++ b/teleforma/templates/registration/activation_complete.html @@ -2,7 +2,7 @@ {% load i18n %} {% block title %}{% trans "Activation complete" %}{% endblock %} {% block content %} -{% url auth_login as auth_login_url %} +{% url 'auth_login' as auth_login_url %} {% blocktrans %} Thanks, activation complete! You may now login using the username and password you set at registration. {% endblocktrans %} diff --git a/teleforma/templates/registration/activation_email.html b/teleforma/templates/registration/activation_email.html index 3c96af79..fa2bff55 100644 --- a/teleforma/templates/registration/activation_email.html +++ b/teleforma/templates/registration/activation_email.html @@ -4,7 +4,7 @@ This template is used for the html alternative of the activation email if you use a django-registration backend that looks for it. e.g. https://github.com/huseyinyilmaz/django-registration-extended-backend {% endcomment %} -{% url registration_activate activation_key as activation_key_url %} +{% url 'registration_activate' activation_key as activation_key_url %} {% blocktrans with sitename=site.name sitedomain=site.domain%}

Account registration for {{ sitename }}

diff --git a/teleforma/templates/registration/activation_email.txt b/teleforma/templates/registration/activation_email.txt index d54ccb34..968e4dca 100644 --- a/teleforma/templates/registration/activation_email.txt +++ b/teleforma/templates/registration/activation_email.txt @@ -1,5 +1,5 @@ {% load i18n %} -{% url registration_activate activation_key as activation_key_url%} +{% url 'registration_activate' activation_key as activation_key_url%} {% blocktrans with sitename=site.name siteurl=site.domain %} You (or someone pretending to be you) have asked to register an account at {{ sitename }}. If this wasn't you, please ignore this email diff --git a/teleforma/templates/registration/login.html b/teleforma/templates/registration/login.html index f8ceae74..2fd6edb6 100644 --- a/teleforma/templates/registration/login.html +++ b/teleforma/templates/registration/login.html @@ -2,14 +2,14 @@ {% load i18n %} {% block title %}{% trans "Login" %}{% endblock %} {% block content %} -{% url auth_password_reset as auth_pwd_reset_url %} -{% url registration_register as register_url%} +{% url 'auth_password_reset' as auth_pwd_reset_url %} +{% url 'registration_register' as register_url%} {% if form.errors %}

{% blocktrans %}Your username and password didn't match. Please try again.{% endblocktrans %}

{% endif %} -{% csrf_token %} +{% csrf_token %} diff --git a/teleforma/templates/registration/password_reset_email.html b/teleforma/templates/registration/password_reset_email.html index c59f65a1..287737fb 100644 --- a/teleforma/templates/registration/password_reset_email.html +++ b/teleforma/templates/registration/password_reset_email.html @@ -7,7 +7,7 @@ wish to reset your password, please ignore this message. To reset your password, please click the following link, or copy and paste it into your web browser:{% endblocktrans %} -{{ protocol }}://{{ domain }}{% url auth_password_reset_confirm uid token %} +{{ protocol }}://{{ domain }}{% url 'auth_password_reset_confirm' uid token %} {% blocktrans with username=user.username %} Your username, in case you've forgotten: {{ username }} diff --git a/teleforma/templates/registration/registration_complete.html b/teleforma/templates/registration/registration_complete.html index d97564ce..85883936 100644 --- a/teleforma/templates/registration/registration_complete.html +++ b/teleforma/templates/registration/registration_complete.html @@ -20,7 +20,7 @@ Service inscription
75006 Paris


- {% trans "Download" %} + {% trans "Download" %} diff --git a/teleforma/templates/teleforma/annals.html b/teleforma/templates/teleforma/annals.html index e1402261..4d9e5e3f 100644 --- a/teleforma/templates/teleforma/annals.html +++ b/teleforma/templates/teleforma/annals.html @@ -12,13 +12,13 @@
-

playlists{% trans "My courses" %}

+

playlists{% trans "My courses" %}

{% for doc in docs %} - + - + {% endfor %} diff --git a/teleforma/templates/teleforma/appointments.html b/teleforma/templates/teleforma/appointments.html index 1231ad44..9c944bed 100644 --- a/teleforma/templates/teleforma/appointments.html +++ b/teleforma/templates/teleforma/appointments.html @@ -179,7 +179,7 @@

{% if ap_period.appointment.can_cancel %} - + {% csrf_token %} diff --git a/teleforma/templates/teleforma/course.html b/teleforma/templates/teleforma/course.html index 81d940f3..41200c7b 100644 --- a/teleforma/templates/teleforma/course.html +++ b/teleforma/templates/teleforma/course.html @@ -37,7 +37,7 @@ {% for media in course.media.all %} - + diff --git a/teleforma/templates/teleforma/course_conference.html b/teleforma/templates/teleforma/course_conference.html index 99a0c527..be1a1024 100644 --- a/teleforma/templates/teleforma/course_conference.html +++ b/teleforma/templates/teleforma/course_conference.html @@ -10,7 +10,7 @@ var conferenceUtils = { stop : function(id){ json([id],'teleforma.stop_conference',function(){ - location.href = '{% url teleforma-conference-record %}'; + location.href = '{% url 'teleforma-conference-record' %}'; } ); }} @@ -34,9 +34,9 @@
- {{ course.title }} - {{ type }} - {% trans "Session" %} {{ conference.session }} + {{ course.title }} - {{ type }} - {% trans "Session" %} {{ conference.session }}
@@ -63,10 +63,10 @@
{% if conference.professor %} -
{% trans "Course" %}
{{ conference.course.title }} - {{ conference.course_type }}
+
{% trans "Course" %}
{{ conference.course.title }} - {{ conference.course_type }}
{% trans "Session" %}
{{ conference.session }}
{% trans "Professor" %}
-
{{ conference.professor }}
+
{{ conference.professor }}
{% endif %} {% if conference.comment %}
{% trans "Comment" %}
{{ conference.comment }}
{% endif %} diff --git a/teleforma/templates/teleforma/course_conference_audio.html b/teleforma/templates/teleforma/course_conference_audio.html index bdd06489..19783fa1 100644 --- a/teleforma/templates/teleforma/course_conference_audio.html +++ b/teleforma/templates/teleforma/course_conference_audio.html @@ -8,7 +8,7 @@ var conferenceUtils = { stop : function(id){ json([id],'teleforma.conference_stop',function(){ - location.href = '{% url teleforma-conference-record %}';}); + location.href = '{% url 'teleforma-conference-record' %}';}); }} jQuery(window).ready(function(){ @@ -33,7 +33,7 @@
{{ course.title }}{% if course.description %} - {{ course.description }}{% endif %} - {{ conference.session }} - {{ conference.professor }} @@ -64,7 +64,7 @@
{% trans "Title" %}
{{ conference.course.title }}
-
{% trans "Professor" %}
{{ conference.professor }}
+
{% trans "Professor" %}
{{ conference.professor }}
{% trans "Session" %}
{{ conference.session }}
{% trans "Room" %}
{{ conference.room }}
{% trans "Begin" %}
{{ conference.date_begin }}
diff --git a/teleforma/templates/teleforma/course_conference_record.html b/teleforma/templates/teleforma/course_conference_record.html index 25effad9..7e913cb9 100644 --- a/teleforma/templates/teleforma/course_conference_record.html +++ b/teleforma/templates/teleforma/course_conference_record.html @@ -16,7 +16,7 @@ jQuery(window).ready(function(){ diff --git a/teleforma/templates/teleforma/course_detail.html b/teleforma/templates/teleforma/course_detail.html index af1ba6e5..13d0aabf 100644 --- a/teleforma/templates/teleforma/course_detail.html +++ b/teleforma/templates/teleforma/course_detail.html @@ -5,7 +5,7 @@ {% block extra_javascript %} {% endblock extra_javascript %} @@ -13,7 +13,7 @@ $(document).ready(function(){ {% block courses %} {% for c in all_courses %} {% with c.course as course %} -
  • {{ course.title }}
  • +
  • {{ course.title }}
  • {% endwith %} {% endfor %} {% endblock courses %} @@ -39,7 +39,7 @@ $(document).ready(function(){
    {% trans form.username.label_tag %}
    {% if doc.file %}{% endif %} {{ doc.title }}{% if doc.file %}{% endif %}{% if doc.file %}{% endif %} {{ doc.title }}{% if doc.file %}{% endif %} {{ year }}{% if doc.file %}{% endif %}{% if doc.file %}{% endif %}
    {{ media.item.title }}{{ media.item.title }} {{ media.item.description }} {{ media.date_added }}
    {% for quiz in course.quiz.all %} - + {% endfor %} diff --git a/teleforma/templates/teleforma/course_document.html b/teleforma/templates/teleforma/course_document.html index 03ae2355..805dd527 100644 --- a/teleforma/templates/teleforma/course_document.html +++ b/teleforma/templates/teleforma/course_document.html @@ -7,7 +7,7 @@ @@ -23,7 +23,7 @@ $(document).ready(function(){ // // Fetch the PDF document from the URL using promices // -PDFJS.getDocument('{% url teleforma-document-download document.id %}').then(function(pdf) { +PDFJS.getDocument('{% url 'teleforma-document-download' document.id %}').then(function(pdf) { // Using promise to fetch the page pdf.getPage(1).then(function(page) { var scale = 1.5; diff --git a/teleforma/templates/teleforma/course_media.html b/teleforma/templates/teleforma/course_media.html index 9feada4e..928bb6a9 100644 --- a/teleforma/templates/teleforma/course_media.html +++ b/teleforma/templates/teleforma/course_media.html @@ -13,7 +13,7 @@ @@ -61,7 +61,7 @@ $(document).ready(function(){ {% if media.item.file and media.is_published or user.is_superuser or user.is_staff %} {% if not "video" in media.mime_type or perms.telemeta.can_play_all_items or request.user_agent.os.family == 'iOS' %} {% endif %} {% endif %} @@ -73,17 +73,17 @@ $(document).ready(function(){ @@ -97,7 +97,7 @@ $(document).ready(function(){ {% if "video" in media.mime_type %}
    @@ -121,7 +121,7 @@ $(document).ready(function(){
    {% endif %} @@ -134,11 +134,11 @@ $(document).ready(function(){
    {% if media.conference %} -
    {% trans "Course" %}
    {{ media.course.title }} - {{ media.course_type }}
    +
    {% trans "Course" %}
    {{ media.course.title }} - {{ media.course_type }}
    {% trans "Session" %}
    {{ media.conference.session }}
    {% if media.conference.professor %}
    {% trans "Professor" %}
    -
    {{ media.conference.professor }}
    +
    {{ media.conference.professor }}
    {% endif %} {% if media.conference.comment %}
    {% trans "Comment" %}
    {{ media.conference.comment }}
    {% endif %}
    {% trans "Begin date" %}
    {{ media.conference.date_begin }}
    diff --git a/teleforma/templates/teleforma/course_media_video_embed.html b/teleforma/templates/teleforma/course_media_video_embed.html index 97e90c65..d58826c9 100644 --- a/teleforma/templates/teleforma/course_media_video_embed.html +++ b/teleforma/templates/teleforma/course_media_video_embed.html @@ -30,11 +30,11 @@
    {% if media.conference %} -
    {% trans "Course" %}
    {{ media.course.title }} - {{ media.course_type }}
    +
    {% trans "Course" %}
    {{ media.course.title }} - {{ media.course_type }}
    {% trans "Session" %}
    {{ media.conference.session }}
    {% if media.conference.professor %}
    {% trans "Professor" %}
    -
    {{ media.conference.professor }}
    +
    {{ media.conference.professor }}
    {% endif %} {% if media.conference.comment %}
    {% trans "Comment" %}
    {{ media.conference.comment }}
    {% endif %}
    {% trans "Begin date" %}
    {{ media.conference.date_begin }}
    diff --git a/teleforma/templates/teleforma/courses.html b/teleforma/templates/teleforma/courses.html index 5ee3435a..30dbdcc6 100644 --- a/teleforma/templates/teleforma/courses.html +++ b/teleforma/templates/teleforma/courses.html @@ -8,7 +8,7 @@ {% block extra_javascript %} {% endblock extra_javascript %} @@ -27,7 +27,7 @@ $(document).ready(function(){ {% block courses %} {% for c in all_courses %} {% with c.course as course %} -
  • {{ course.title }}
  • +
  • {{ course.title }}
  • {% endwith %} {% endfor %} {% endblock courses %} @@ -40,13 +40,13 @@ $(document).ready(function(){ {% get_telecaster as telecaster %} {% if telecaster %} {% endif %} {% if user.is_staff %} {% endif %} @@ -78,7 +78,7 @@ $(document).ready(function(){ {% if hasAppointment %}
    {% endif %} @@ -90,7 +90,7 @@ $(document).ready(function(){ {% if home_video.type == 'webm' %}

    {% if home_video.title %}{{ home_video.title }}{% else %}{{ home_video.course.title }}{% endif %}

    - + {% if home_video.item.related.all %} {% for related in home_video.item.related.all %} {% if related.title == "preview" %} @@ -113,7 +113,7 @@ $(document).ready(function(){ {% for type in c.types %}
    {% if show_media %} diff --git a/teleforma/templates/teleforma/courses_pending.html b/teleforma/templates/teleforma/courses_pending.html index 9a7f5276..e45e76f5 100644 --- a/teleforma/templates/teleforma/courses_pending.html +++ b/teleforma/templates/teleforma/courses_pending.html @@ -14,7 +14,7 @@ {% for type in c.types %}
    {% block media %} diff --git a/teleforma/templates/teleforma/inc/conference_list.html b/teleforma/templates/teleforma/inc/conference_list.html index 8979649f..583dae02 100644 --- a/teleforma/templates/teleforma/inc/conference_list.html +++ b/teleforma/templates/teleforma/inc/conference_list.html @@ -15,7 +15,7 @@
    {% if stream.streaming %} @@ -25,7 +25,7 @@
    {% trans "Title" %}
    {{ stream.conference.course.title }}
    {% trans "Session" %}
    {{ stream.conference.session }}
    {% if stream.conference.professor.user.username %} -
    {% trans "Professor" %}
    {{ stream.conference.professor }}
    +
    {% trans "Professor" %}
    {{ stream.conference.professor }}
    {% endif %}
    {% trans "Begin" %}
    {{ stream.conference.date_begin }}
    diff --git a/teleforma/templates/teleforma/inc/document_list.html b/teleforma/templates/teleforma/inc/document_list.html index 3b84f3c6..7971f89a 100644 --- a/teleforma/templates/teleforma/inc/document_list.html +++ b/teleforma/templates/teleforma/inc/document_list.html @@ -17,9 +17,9 @@ {% if doc.course_type.all|length > 1 and type_counter > 1 %} {% else %} - + - + {% endif %} {% endfor %} diff --git a/teleforma/templates/teleforma/inc/media_list.html b/teleforma/templates/teleforma/inc/media_list.html index 346bcfd5..59d0e156 100644 --- a/teleforma/templates/teleforma/inc/media_list.html +++ b/teleforma/templates/teleforma/inc/media_list.html @@ -14,7 +14,7 @@ {% if media.type == 'webm' %} diff --git a/teleforma/templates/telemeta/home.html b/teleforma/templates/telemeta/home.html index 45945c03..47fd6fe1 100644 --- a/teleforma/templates/telemeta/home.html +++ b/teleforma/templates/telemeta/home.html @@ -23,7 +23,7 @@ {{ page_content|render_flatpage }} -{% trans "Connexion" %} +{% trans "Connexion" %} {% endblock %} diff --git a/teleforma/templates/telemeta/inc/module_revisions.html b/teleforma/templates/telemeta/inc/module_revisions.html index f5bc9fb9..2353b2b2 100644 --- a/teleforma/templates/telemeta/inc/module_revisions.html +++ b/teleforma/templates/telemeta/inc/module_revisions.html @@ -4,10 +4,10 @@
    {% block rss_title %} - + rss

    {% trans title %}

    -    +    {% endblock rss_title %}
    @@ -24,24 +24,24 @@
    - + {% endfor %}
    {{quiz.title}}{{quiz.title}} {{quiz.description}}
    - + {% trans 'Click here' %}
    {% if doc.file %}{% endif %} {{ doc.title }}{% if doc.file %}{% endif %}{% if doc.file %}{% endif %} {{ doc.title }}{% if doc.file %}{% endif %} {{ doc.date_added }}{% if doc.file %}{% endif %}{% if doc.file %}{% endif %}
    - + {% if media.item.related.all %} {% for related in media.item.related.all %} {% if related.title == "preview" %} @@ -36,7 +36,7 @@
    {% trans "Title" %}
    {{ media.conference.course.title }}
    {% trans "Session" %}
    {{ media.conference.session }}
    {% if media.conference.professor %} -
    {% trans "Professor" %}
    {{ media.conference.professor }}
    +
    {% trans "Professor" %}
    {{ media.conference.professor }}
    {% endif %}
    {% trans "Begin" %}
    {{ media.conference.date_begin }}
    {% if media.conference.comment %} @@ -53,7 +53,7 @@ {% endif %} {% if media.item.file and media.is_published or user.is_superuser or user.is_staff %} {% if not "video" in media.mime_type or perms.telemeta.can_play_all_items or request.user_agent.os.family == 'iOS' %} - + {% endif %} diff --git a/teleforma/templates/teleforma/inc/media_list_pending.html b/teleforma/templates/teleforma/inc/media_list_pending.html index 8bc5d11b..7c4c6fbf 100644 --- a/teleforma/templates/teleforma/inc/media_list_pending.html +++ b/teleforma/templates/teleforma/inc/media_list_pending.html @@ -14,7 +14,7 @@ {% if media.type == 'webm' %}
    - + {% if media.item.related.all %} {% for related in media.item.related.all %} {% if related.title == "preview" %} @@ -36,7 +36,7 @@
    {% trans "Title" %}
    {{ media.conference.course.title }}
    {% trans "Session" %}
    {{ media.conference.session }}
    {% if media.conference.professor %} -
    {% trans "Professor" %}
    {{ media.conference.professor }}
    +
    {% trans "Professor" %}
    {{ media.conference.professor }}
    {% endif %}
    {% trans "Begin" %}
    {{ media.conference.date_begin }}
    {% if media.conference.comment %} diff --git a/teleforma/templates/teleforma/inc/newsitem.html b/teleforma/templates/teleforma/inc/newsitem.html index 1c8a43ef..7f4692d4 100644 --- a/teleforma/templates/teleforma/inc/newsitem.html +++ b/teleforma/templates/teleforma/inc/newsitem.html @@ -7,13 +7,13 @@
      {% if newsitem.can_edit %}
    • - éditer + éditer
    • {% endif %} {% if newsitem.can_delete %}
    • - supprimer + supprimer
    • {% endif %}
    diff --git a/teleforma/templates/teleforma/inc/newsitems_portlet.html b/teleforma/templates/teleforma/inc/newsitems_portlet.html index ce862d28..8c203bf9 100644 --- a/teleforma/templates/teleforma/inc/newsitems_portlet.html +++ b/teleforma/templates/teleforma/inc/newsitems_portlet.html @@ -7,10 +7,10 @@

    actualitésActualités

    @@ -19,7 +19,7 @@ {# {% if course_newsitems|length >= 5 %}#} {# #} {# {% endif %}#}
    @@ -29,7 +29,7 @@ {# {% if all_newsitems|length >= 5 %}#} {# #} {# {% endif %}#} diff --git a/teleforma/templates/teleforma/newsitem_list.html b/teleforma/templates/teleforma/newsitem_list.html index d5bd6a2b..e3dce982 100644 --- a/teleforma/templates/teleforma/newsitem_list.html +++ b/teleforma/templates/teleforma/newsitem_list.html @@ -11,13 +11,13 @@ diff --git a/teleforma/templates/telemeta/base.html b/teleforma/templates/telemeta/base.html index 80487b4c..5339d3bd 100644 --- a/teleforma/templates/telemeta/base.html +++ b/teleforma/templates/telemeta/base.html @@ -38,7 +38,7 @@ {% block extra_stylesheets %}{% endblock %} {% block javascript %} - + @@ -94,13 +94,13 @@ alt="logo" />
  •  {% trans "Desk" %} 
  • {% else %} {% with periods.0 as period %} -
  • {% trans "Desk" %}
  • +
  • {% trans "Desk" %}
  • {% endwith %} {% endif %} @@ -110,12 +110,12 @@ alt="logo" /> {% if user.is_authenticated %} -
  • {% trans "Messaging" %}{% if postman_unread_count %} ({{ postman_unread_count }}){% endif %}
  • +
  • {% trans "Messaging" %}{% if postman_unread_count %} ({{ postman_unread_count }}){% endif %}
  • -
  • {% trans "Annals" %}
  • +
  • {% trans "Annals" %}
  • {% if periods|length == 1 %} -
  •  {% trans "Scripts" %} +
  •  {% trans "Scripts" %} {% if user.is_staff or user.quotas.all %}{% untreated_scripts_count user periods.0.id %} {% else %}{% treated_scripts_count user periods.0.id %}{% endif %}
  • @@ -125,19 +125,19 @@ alt="logo" /> {% else %}{% treated_scripts_count user periods.0.id %}{% endif %} {% endif %} {% if periods|length == 1 %} -
  •  {% trans "Scores" %}
  • +
  •  {% trans "Scores" %}
  • {% else %}
  •  {% trans "Scores" %}
  • @@ -147,18 +147,18 @@ alt="logo" /> {% if user.is_superuser %}
  • {% trans "Admin" %}
  • {% else %} -
  • {% trans "Help" %}
  • +
  • {% trans "Help" %}
  • {% endif %}
  • {% if user.first_name and user.last_name %}{{ user.first_name }} {{ user.last_name }}{% else %}{{ user.username }}{% endif %}
  • @@ -210,7 +210,7 @@ alt="logo" />

    Copyright © {% current_year %} {% organization %} | - {% trans "Legal notices" %} + {% trans "Legal notices" %}

    {% if r.element %} {% if r.revision.element_type == "corpus" or r.revision.element_type == "fonds"%} - {{ r.element.title }} + {{ r.element.title }} {% endif %} {% if r.revision.element_type == "collection" %} - {{ r.element.title }} + {{ r.element.title }} {% endif %} {% if r.revision.element_type == "item" %} - + {% if r.element.title != '' %}{{ r.element.title }}{% else %}{{ r.element.collection.title }} - {{ r.element.track }}{% endif %} {% endif %} {% if r.revision.element_type == "marker" %} - {{ r.element.title }} + {{ r.element.title }} {% endif %} {% else %} {% trans "deleted" %} {% endif %} {{ r.revision.element_type }}{% if r.revision.user %}{{ r.revision.user.username }}{% endif %}{% if r.revision.user %}{{ r.revision.user.username }}{% endif %}
    diff --git a/teleforma/templates/telemeta/inc/module_searches.html b/teleforma/templates/telemeta/inc/module_searches.html index abd74306..20bbe7dd 100644 --- a/teleforma/templates/telemeta/inc/module_searches.html +++ b/teleforma/templates/telemeta/inc/module_searches.html @@ -13,7 +13,7 @@ {% for s in searches %} - + {% for c in s.criteria.all %}
  • {% trans c.key %} : {{ c.value}}
  • {% endfor %} diff --git a/teleforma/templates/telemeta/inc/module_user_revisions.html b/teleforma/templates/telemeta/inc/module_user_revisions.html index 90ce33c0..669cd9dd 100644 --- a/teleforma/templates/telemeta/inc/module_user_revisions.html +++ b/teleforma/templates/telemeta/inc/module_user_revisions.html @@ -3,9 +3,9 @@ {% load i18n %} {% block rss_title %} -
    + rss

    {% trans title %}

    -   +   {% endblock rss_title %} diff --git a/teleforma/templates/telemeta/inc/user_list.html b/teleforma/templates/telemeta/inc/user_list.html index e91ee306..cb36f548 100644 --- a/teleforma/templates/telemeta/inc/user_list.html +++ b/teleforma/templates/telemeta/inc/user_list.html @@ -32,8 +32,8 @@ {% for user in page.object_list %} - {{ user.last_name }} - {{ user.first_name }} + {{ user.last_name }} + {{ user.first_name }} {% if user.student.get %} {% with user.student.get as student %} @@ -70,7 +70,7 @@ {% endif %} - {% trans "Message" %} + {% trans "Message" %} {% endfor %} diff --git a/teleforma/templates/telemeta/lists.html b/teleforma/templates/telemeta/lists.html index f53c257f..9558d8e2 100644 --- a/teleforma/templates/telemeta/lists.html +++ b/teleforma/templates/telemeta/lists.html @@ -53,8 +53,8 @@ {{ playlist.playlist.title }} {% trans "Edit" %} - CSV Collections - CSV Items + CSV Collections + CSV Items {% trans "Delete" %} @@ -78,16 +78,16 @@ {% if resource.type == "item" and not resource.element == None %} - {{ resource.element }} + {{ resource.element }} {% endif %} {% if resource.type == "collection" and not resource.element == None %} - {% if resource.element.title %}{{ resource.element.title }}{% else %}{{ resource.element }}{% endif %} + {% if resource.element.title %}{{ resource.element.title }}{% else %}{{ resource.element }}{% endif %} {% endif %} {% if resource.type == "marker" and not resource.element == None %} - {{ resource.element }} + {{ resource.element }} {% endif %} {% if resource.type == "corpus" or resource.type == "fonds" %} - {{ resource.element.title }} + {{ resource.element.title }} {% endif %} {% if resource.element == None %}{% trans "deleted" %}{% endif %} diff --git a/teleforma/templates/telemeta/login.html b/teleforma/templates/telemeta/login.html index b658469d..826eacd9 100644 --- a/teleforma/templates/telemeta/login.html +++ b/teleforma/templates/telemeta/login.html @@ -18,7 +18,7 @@ $(document).ready(function() { {% if form.errors %} {% endif %} -{% csrf_token %} +{% csrf_token %}

    {{ form.username.label_tag }} {{ form.username }}
    @@ -26,7 +26,7 @@ $(document).ready(function() { {{ form.password }}

    diff --git a/teleforma/templates/telemeta/profile_detail.html b/teleforma/templates/telemeta/profile_detail.html index a395b885..958ed0ad 100644 --- a/teleforma/templates/telemeta/profile_detail.html +++ b/teleforma/templates/telemeta/profile_detail.html @@ -13,7 +13,7 @@ {% block modules %}
    -

    playlists{% if user.username != usr.username%}{% trans "His courses" %}{% else %}{% trans "My courses" %}{% endif %}

    +

    playlists{% if user.username != usr.username%}{% trans "His courses" %}{% else %}{% trans "My courses" %}{% endif %}

    @@ -46,9 +46,9 @@
    {% if user.is_authenticated and user.username == usr.username %} - + {% elif user.is_staff %} - + {% endif %}
    @@ -103,7 +103,7 @@
    - +
    diff --git a/teleforma/templates/telemeta/search_criteria.html b/teleforma/templates/telemeta/search_criteria.html index a2d10f0c..4fb24f80 100644 --- a/teleforma/templates/telemeta/search_criteria.html +++ b/teleforma/templates/telemeta/search_criteria.html @@ -32,7 +32,7 @@ function update_period(source, from_field, to_field) { } $(document).ready(function () { - $('#location').autocomplete('{% url telemeta-complete-location %}', { + $('#location').autocomplete('{% url 'telemeta-complete-location' %}', { max: 20, formatResult: function(data) { return data[0].replace(/ *\([0-9]+.*\) *$/, ''); @@ -75,7 +75,7 @@ $(document).ready(function () {

    {% trans "Advanced Search" %}

    -{% csrf_token %} +{% csrf_token %}

    diff --git a/teleforma/templates/telemeta/users.html b/teleforma/templates/telemeta/users.html index 7ac9a1fd..ab58ed65 100644 --- a/teleforma/templates/telemeta/users.html +++ b/teleforma/templates/telemeta/users.html @@ -17,7 +17,7 @@

    @@ -30,7 +30,7 @@ @@ -43,7 +43,7 @@
      {% block courses %} {% for c in courses %} -
    • {{ c }}
    • +
    • {{ c }}
    • {% endfor %} {% endblock courses %}
    @@ -52,7 +52,7 @@ {% if users %} {% endif %} @@ -62,7 +62,7 @@ {% if user.is_staff %}
    -XLS Export +XLS Export
    {% endif %} -- 2.39.5