]> git.parisson.com Git - teleforma.git/commitdiff
Migrate url to django 3
authortest test <yoanl@pilotsystems.net>
Wed, 26 May 2021 16:01:17 +0000 (18:01 +0200)
committerYoan Le Clanche <yoanl@pilotsystems.net>
Wed, 12 Apr 2023 09:37:00 +0000 (11:37 +0200)
39 files changed:
app/urls.py
teleforma/exam/templates/exam/inc/script_list.html
teleforma/exam/templates/exam/messages/script_marked.txt
teleforma/exam/templates/exam/quotas.html
teleforma/exam/templates/exam/score_form.html
teleforma/exam/templates/exam/scores.html
teleforma/exam/templates/exam/script_detail.html
teleforma/exam/templates/exam/script_detail2.html
teleforma/exam/templates/exam/scripts.html
teleforma/templates/admin/base.html
teleforma/templates/payment/email_initial.txt
teleforma/templates/payment/email_reminder.txt
teleforma/templates/payment/payment_summary.html
teleforma/templates/postman/view.html
teleforma/templates/registration/activate.html
teleforma/templates/registration/activation_complete.html
teleforma/templates/registration/login.html
teleforma/templates/registration/password_change_done.html
teleforma/templates/registration/password_change_form.html
teleforma/templates/registration/password_reset_email.html
teleforma/templates/teleforma/base.html
teleforma/templates/teleforma/course.html
teleforma/templates/teleforma/course_conference_record.html
teleforma/templates/teleforma/course_detail.html
teleforma/templates/teleforma/course_document.html
teleforma/templates/teleforma/course_media.html
teleforma/templates/teleforma/course_media_transcoded.html
teleforma/templates/teleforma/courses.html
teleforma/templates/teleforma/home.html
teleforma/templates/teleforma/inc/media_list.html
teleforma/templates/teleforma/inc/media_list_pending.html
teleforma/templates/teleforma/inc/module_searches.html
teleforma/templates/teleforma/lists.html
teleforma/templates/teleforma/login.html
teleforma/templates/teleforma/profile_detail.html
teleforma/templates/telemeta/base.html [new file with mode: 0644]
teleforma/webclass/templates/admin/webclass/webclassrecord/add_records_links.html
teleforma/webclass/templates/webclass/appointments_professor.html
teleforma/webclass/templates/webclass/inc/webclass_list.html

index c7eb46813690b9d8656e9ca5e0b96829ad13da3a..355c941c91ed11e7d570a71afa37acb37dd28cb4 100644 (file)
@@ -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")),
 
index c6edfbfdf3f053983faea10061a72f15feda65d7..911318c7fbff61a3a5e00ce3e8d786cd23a231a3 100644 (file)
     <tbody id="spacing" class="script-list">
     {% for script in object_list %}
     <tr>
-     <td>{% if script.status != 2 and script.file %}<a href="{% url teleforma-exam-script-detail period.id script.id %}">{% endif %}{{ script.course.title }}{% if script.status != 2 and script.file %}</a>{% endif %}</td>
-     <td>{% if script.status != 2  and script.file%}<a href="{% url teleforma-exam-script-detail period.id script.id %}">{% endif %}{{ script.session }}{% if script.status != 2 and script.file %}</a>{% endif %}</td>
-     <td>{% if script.status != 2 and script.file %}<a href="{% url teleforma-exam-script-detail period.id script.id %}">{% endif %}{{ script.type }}{% if script.status != 2 and script.file %}</a>{% endif %}</td>
-     <td>{% if script.author.username %}<a href="{% url teleforma-profile-detail script.author.username %}">{{ script.author.last_name }}</a>{% endif %}</td>
-     <td>{% if script.author.username %}<a href="{% url teleforma-profile-detail script.author.username %}">{{ script.author.first_name }}</a>{% endif %}</td>
+     <td>{% if script.status != 2 and script.file %}<a href="{% url 'teleforma-exam-script-detail' period.id script.id %}">{% endif %}{{ script.course.title }}{% if script.status != 2 and script.file %}</a>{% endif %}</td>
+     <td>{% if script.status != 2  and script.file%}<a href="{% url 'teleforma-exam-script-detail' period.id script.id %}">{% endif %}{{ script.session }}{% if script.status != 2 and script.file %}</a>{% endif %}</td>
+     <td>{% if script.status != 2 and script.file %}<a href="{% url 'teleforma-exam-script-detail' period.id script.id %}">{% endif %}{{ script.type }}{% if script.status != 2 and script.file %}</a>{% endif %}</td>
+     <td>{% if script.author.username %}<a href="{% url 'teleforma-profile-detail' script.author.username %}">{{ script.author.last_name }}</a>{% endif %}</td>
+     <td>{% if script.author.username %}<a href="{% url 'teleforma-profile-detail' script.author.username %}">{{ script.author.first_name }}</a>{% endif %}</td>
      <td>{{ script.date_added }}</td>
      <td>{% if script.date_marked %}{{ script.date_marked }}{% endif %}</td>
      <td>
index 6d62e43c9e5b101a0608c97401100a800ece6fce..79de53d563a0a017b850b81ebfa5661069d2de34 100644 (file)
@@ -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 %}
index 171eea13c074e106e8b89057dd7a938769c10a22..dedc3e163a67f2f9cf17ff0109b381a268b6d81f 100644 (file)
@@ -29,7 +29,7 @@
     <tbody id="spacing" class="script-list">
     {% for quota in object_list %}
     <tr>
-     <td><a href="{% url teleforma-profile-detail quota.corrector.username %}">{{ quota.corrector.username }}</a></td>
+     <td><a href="{% url 'teleforma-profile-detail' quota.corrector.username %}">{{ quota.corrector.username }}</a></td>
      <td>{{ quota.course.title }}</td>
      <td>{{ quota.date_start }}</td>
      <td>{{ quota.date_end }}</td>
index 1846de9efe005ed84e20fe421d3d83518d196881..3bc6e24f2a59c8e1051890a0421a32ae2107c634 100644 (file)
@@ -42,7 +42,7 @@
 
 
 <div>Ce formulaire vous permet d'enregistrer la note d'une copie papier <b>déjà corrigée hors de la plateforme e-learning</b>.</div>
-<div>Pour soumettre une nouvelle copie d'épreuve scannée à la correction en ligne, merci d'utiliser <a href="{% url teleforma-exam-script-create period.id %}">ce formulaire</a>.</div>
+<div>Pour soumettre une nouvelle copie d'épreuve scannée à la correction en ligne, merci d'utiliser <a href="{% url 'teleforma-exam-script-create' period.id %}">ce formulaire</a>.</div>
 <br/>
 <div>Veuillez indiquer <b>tous les champs</b> du formulaire suivant :</div>
 
index 283a687f138e6fe16e26644fe13d0c90e2f29870..27ad9bc396b7a01083060fb9a67a2b9f7d8aabbf 100644 (file)
 
 {% block modules %}
     <div class="module">
-    <h3><a href="{% url teleforma-home %}"><img src="/static/teleforma/images/module_playlist.png" alt="playlists" style="vertical-align:middle" />{% trans "My courses" %}</a></h3>
+    <h3><a href="{% url 'teleforma-home' %}"><img src="/static/teleforma/images/module_playlist.png" alt="playlists" style="vertical-align:middle" />{% trans "My courses" %}</a></h3>
     <div style="background: white;">
     <ul>
      {% for course in courses %}
-       <li><a href="{% url teleforma-exam-scripts-scores-course period.id course.id %}">{{ course.title}} {{ course.type }}</a></li>
+       <li><a href="{% url 'teleforma-exam-scripts-scores-course' period.id course.id %}">{{ course.title}} {{ course.type }}</a></li>
      {% endfor %}
     </ul>
     </div>
 {% block module-action %}
 {% if upload %}
 <div class="module_action">
-<a href="{% url teleforma-exam-scores-create period.id %}" class="component_icon button" id="action_green">{% trans "New score" %}</a>
+<a href="{% url 'teleforma-exam-scores-create' period.id %}" class="component_icon button" id="action_green">{% trans "New score" %}</a>
 </div>
 {% endif %}
 {% if admin %}
 <div class="module_action">
-<a href="{% url teleforma-exam-scores-mass-create period.id %}" class="component_icon button" id="action_green">Saisie en masse de notes</a>
+<a href="{% url 'teleforma-exam-scores-mass-create' period.id %}" class="component_icon button" id="action_green">Saisie en masse de notes</a>
 </div>
 {% endif %}
 {% endblock module-action %}
index 59917766b6fef61d13b8a1c989f411b94c2f501b..69f0450c1dc1fd976c3291313a2b99d7bc935e19 100644 (file)
 
 <div class="course_title">
 
-    <a href="{% url teleforma-desk-period-course period.id script.course.id %}">{{ script.title }}</a>
+    <a href="{% url 'teleforma-desk-period-course' period.id script.course.id %}">{{ script.title }}</a>
 
     <div style="float: right; font-size: 0.9em;">
         {% if topic.file %}
-        <a id="topic" href="{% url teleforma-document-download topic.id %}" class="component_icon button icon_download">&nbsp;{% trans "Topic" %}</a>
+        <a id="topic" href="{% url 'teleforma-document-download' topic.id %}" class="component_icon button icon_download">&nbsp;{% trans "Topic" %}</a>
         {% endif %}
         {% if script.score %}
         <a id="score" href="#" class="component_icon button icon_ok"> {% trans "Score" %} : {{ script.score|floatformat }}/20</a>
index 2adc1932fee3bcc0e5f7609b007c87d021a34f8f..825800c94dccd00927292e28c14470232488ede4 100644 (file)
 
 <div class="course_title">
 
-    <a href="{% url teleforma-desk-period-course period.id script.course.id %}">{{ script.title }}</a>
+    <a href="{% url 'teleforma-desk-period-course' period.id script.course.id %}">{{ script.title }}</a>
 
     <div style="float: right; font-size: 0.9em;">
         {% if topic.file %}
-        <a id="topic" href="{% url teleforma-document-download topic.id %}" class="component_icon button icon_download">&nbsp;{% trans "Topic" %}</a>
+        <a id="topic" href="{% url 'teleforma-document-download' topic.id %}" class="component_icon button icon_download">&nbsp;{% trans "Topic" %}</a>
         {% endif %}
         {% if script.score %}
         <a id="score" href="#" class="component_icon button icon_ok"> {% trans "Score" %} : {{ script.score|floatformat }}/20</a>
index 9c04f3fc4a67117534d4275668498532e17e2fb0..76ab9ba620bc97f033b921b906ecc81cb1039321 100644 (file)
 
 {% block modules %}
 <div class="module">
-<h3><a href="{% url teleforma-desk %}"><img src="/static/teleforma/images/module_playlist.png" alt="playlists" style="vertical-align:middle" />{% trans "Scripts" %}</a></h3>
+<h3><a href="{% url 'teleforma-desk' %}"><img src="/static/teleforma/images/module_playlist.png" alt="playlists" style="vertical-align:middle" />{% trans "Scripts" %}</a></h3>
  <div style="background: white;">
   <ul>
   {% block courses %}
-   <li><a href="{% url teleforma-exam-scripts-pending period.id %}">{% trans "Pending" %}{% if user.is_staff or user.quotass.all %}{% untreated_scripts_count user period %}{% endif %}</a></li>
-   <li><a href="{% url teleforma-exam-scripts-treated period.id %}">{% trans "Marked" %}{% if not user.is_staff and not user.quotas.all %}{% treated_scripts_count user period %}{% endif %}</a></li>
-   <li><a href="{% url teleforma-exam-scripts-rejected period.id %}">{% trans "Rejected" %}</a></li>
+   <li><a href="{% url 'teleforma-exam-scripts-pending' period.id %}">{% trans "Pending" %}{% if user.is_staff or user.quotass.all %}{% untreated_scripts_count user period %}{% endif %}</a></li>
+   <li><a href="{% url 'teleforma-exam-scripts-treated' period.id %}">{% trans "Marked" %}{% if not user.is_staff and not user.quotas.all %}{% treated_scripts_count user period %}{% endif %}</a></li>
+   <li><a href="{% url 'teleforma-exam-scripts-rejected' period.id %}">{% trans "Rejected" %}</a></li>
   {% endblock courses %}
   </ul>
  </div>
@@ -32,7 +32,7 @@
 {% block module-action %}
 {% if upload %}
 <div class="module_action">
-<a href="{% url teleforma-exam-script-create period.id %}" class="component_icon button" id="action_green">{% trans "New script" %}</a>
+<a href="{% url 'teleforma-exam-script-create' period.id %}" class="component_icon button" id="action_green">{% trans "New script" %}</a>
 </div>
 {% endif %}
 {% endblock module-action %}
index 4eb8916680e8b2efbb602cc56fb4a68a0ad28540..888f3fb4bc057e8d8dd0bfe5847f46a2193f9040 100644 (file)
               {% block quick-search %}
                 {% with 'SEARCH_URL'|suit_conf as search_url %}
                   {% if search_url %}
-                    <form class="form-search nav-quick-search" autocomplete="off" action="{% if '/' in search_url %}{{ search_url }}{% else %}{% url search_url %}{% endif %}" method="GET">
+                    <form class="form-search nav-quick-search" autocomplete="off" action="{% if '/' in search_url %}{{ search_url }}{% else %}{% url 'search_url' %}{% endif %}" method="GET">
                       <input type="text" name="q" class="input-medium search-query" id="quick-search">
                       <i class="input-icon icon-search"></i>
                       <input type="submit" class="submit" value="">
index 981ed99e9e4f96a5b464008f24dd45a3d80861f7..e733a71520e80c6d7ddea46984f35a39b9286d58 100644 (file)
@@ -1,4 +1,4 @@
-{% url teleforma-payment-start payment.pk as payment_url %}
+{% url 'teleforma-payment-start' payment.pk as payment_url %}
 Bonjour,
 
 Suite à votre inscription à la formation avocat étranger, une échéance de
index 571c2d4cf95e28d2e34b81adaed18e88bd4ca948..dbf322e4aa6e5b04b6f428c4d878828c8d61f64b 100644 (file)
@@ -1,4 +1,4 @@
-{% url teleforma-payment-start payment.pk as payment_url %}
+{% url 'teleforma-payment-start' payment.pk as payment_url %}
 Bonjour,
 
 A ce jour, nous restons dans l’attente de votre échéance de paiement
index 0ff5e3a8297f0d3bdacbba1b1fa9ee44b282efea..4c06d4b6e362d46ceef063fe1c7f08dd8e8a4b61 100644 (file)
@@ -4,7 +4,7 @@
   <h2>Votre échéancier de paiement</h2>
 
   <p>
-    <a href="{% url teleforma-receipt-download username=user.username %}" class="component_icon button">Télécharger la facture</a>
+    <a href="{% url 'teleforma-receipt-download' username=user.username %}" class="component_icon button">Télécharger la facture</a>
   </p>
   
   <table>
index 9ca6e00745b4ecc956034c6e5e3bc212ed0faaa9..a3ea8d9e6e28514100147a9ff970ad1616d0a499 100644 (file)
  <div class="pm_header">
   {% if message.obfuscated_sender %}
     {% if not message.obfuscated_sender|startswith:'#' %}
-         <a href="{% url teleforma-profile-detail message.obfuscated_sender %}" title="{% get_training_profile message.sender %}">
+    <a href="{% url 'teleforma-profile-detail' message.obfuscated_sender %}" title="{% get_training_profile message.sender %}">
     {% endif %}
          <span class="pm_sender">{{ message.obfuscated_sender|or_me:user }}</span>
          {% if not message.obfuscated_sender|startswith:'#' %}</a>{% endif %}&raquo;
   {% endif %}
   {% if message.obfuscated_recipient %}
     {% if not message.obfuscated_recipient|startswith:'#' %}
-         <a href="{% url teleforma-profile-detail message.obfuscated_recipient %}" title="{% get_training_profile message.recipient %}">
+    <a href="{% url 'teleforma-profile-detail' message.obfuscated_recipient %}" title="{% get_training_profile message.recipient %}">
     {% endif %}
          <span class="pm_recipient">{{ message.obfuscated_recipient|or_me:user }}</span>
          {% if not message.obfuscated_recipient|startswith:'#' %}</a>{% endif %} |
index a85fd163111bc64bb282337d4a2d7fc16efc966e..48d2d8350e1905ff434ffd10f33f241b64d4814e 100644 (file)
@@ -2,7 +2,7 @@
 {% load i18n %}
 {% block title %}{% if account %}{% trans "Activation complete" %}{% else %}{% trans "Activation problem" %}{% endif %}{% endblock %}
 {% block content %}
-{% url teleforma-login as auth_login_url %}
+{% url 'teleforma-login' as auth_login_url %}
 {% if account %}
 {% blocktrans %}
 Thanks {{ account }}, activation complete!
index a83b1b0b393c43f05885d7850307b955a3382d69..4098e357de633d8840bebeaf80146368056a5e50 100644 (file)
@@ -2,7 +2,7 @@
 {% load i18n %}
 {% block title %}{% trans "Activation complete" %}{% endblock %}
 {% block content %}
-{% url teleforma-login as auth_login_url %}
+{% url 'teleforma-login' as auth_login_url %}
 {% blocktrans %}
 Thanks, activation complete!  You may now <a href='{{ auth_login_url }}'>login</a> using the username and password you set at registration.
 {% endblocktrans %}
index c8be9a829d43f6807466105ee4fd59451ce5948b..f7f565c215b5d2c84b413642f76020a3b01888d6 100644 (file)
@@ -9,7 +9,7 @@
 <p>{% blocktrans %}Your username and password didn't match. Please try again.{% endblocktrans %}</p>
 {% endif %}
 
-<form method="post" action="{% url teleforma-login %}">{% csrf_token %}
+<form method="post" action="{% url 'teleforma-login' %}">{% csrf_token %}
 <table>
 <tr>
     <td>{% trans form.username.label_tag %}</td>
index b39cd4d95aa62f5de94a94d265de14e2a16b5e67..8789e28722b26dc8bd80e107ace52bd19e302202 100644 (file)
@@ -1,6 +1,6 @@
 {% extends "teleforma/base.html" %}
 {% load i18n %}
-{% block userlinks %}{% url django-admindocs-docroot as docsroot %}{% if docsroot %}<a href="{{ docsroot }}">{% trans 'Documentation' %}</a> / {% endif %}{% trans 'Change password' %} / <a href="../../logout/">{% trans 'Log out' %}</a>{% endblock %}
+{% block userlinks %}{% url 'django-admindocs-docroot' as docsroot %}{% if docsroot %}<a href="{{ docsroot }}">{% trans 'Documentation' %}</a> / {% endif %}{% trans 'Change password' %} / <a href="../../logout/">{% trans 'Log out' %}</a>{% endblock %}
 
 {% block title %}<br />{% trans 'Password change successful' %}{% endblock %}
 
index 070340120e2a04b4d9d8b49b1552999bf4c54f58..e994011ce7c67d149dc2670ad0130579970d4c90 100644 (file)
@@ -1,7 +1,7 @@
 {% extends "teleforma/base.html" %}
 {% load i18n adminmedia %}
 {% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/forms.css" />{% endblock %}
-{% block userlinks %}{% url django-admindocs-docroot as docsroot %}{% if docsroot %}<a href="{{ docsroot }}">{% trans 'Documentation' %}</a> / {% endif %} {% trans 'Change password' %} / <a href="../logout/">{% trans 'Log out' %}</a>{% endblock %}
+{% block userlinks %}{% url 'django-admindocs-docroot' as docsroot %}{% if docsroot %}<a href="{{ docsroot }}">{% trans 'Documentation' %}</a> / {% endif %} {% trans 'Change password' %} / <a href="../logout/">{% trans 'Log out' %}</a>{% endblock %}
 
 {% block title %}<br />{% trans 'Password change' %}{% endblock %}
 
index 2db45208fc33b50d5f9938b46cd5149975ad4822..5bf161f6e07ef17f17cad0bf09ed271bba7ee56f 100644 (file)
@@ -5,7 +5,7 @@
 
 {% trans "Please go to the following page and choose a new password:" %}
 {% block reset_link %}
-{{ protocol }}://{{ domain }}{% url teleforma-password-reset-confirm uidb36=uid token=token %}
+{{ protocol }}://{{ domain }}{% url 'teleforma-password-reset-confirm' uidb36=uid token=token %}
 {% endblock %}
 {% trans "Your username, in case you've forgotten:" %} {{ user.username }}
 
index 188a6a9ea8cc9ca861a96ce7b217073517028336..a9b83ee1a61b517ff0e0b2e5e321e3434651f8cf 100644 (file)
@@ -1,10 +1,10 @@
 <!DOCTYPE html>
 {% load i18n %}
 {% load teleforma_tags %}
-{% get_googletools as googletools %}
+{% comment %} {% get_googletools as googletools %}
 {%  if googletools %}
-{% load googletools %}
-{% endif %}
+{% load googletools %} {% endcomment %}
+{% comment %} {% endif %} {% endcomment %}
 {% get_current_language as LANGUAGE_CODE %}
 {% get_available_languages as LANGUAGES %}
 <html xmlns="http://www.w3.org/1999/xhtml" lang="{{ LANGUAGE_CODE }}" xml:lang="{{ LANGUAGE_CODE }}"
@@ -40,7 +40,7 @@
   {% block extra_stylesheets %}{% endblock %}
 
   {% block javascript %}
-  <script src="{% url django.views.i18n.javascript_catalog %}" type="text/javascript"></script>
+  <script src="{% url 'js_catalog' %}" type="text/javascript"></script>
   <script src="/static/teleforma/js/jquery-1.6.min.js" type="text/javascript"></script>
   <script src="/static/teleforma/js/jquery-ui.js" type="text/javascript"></script>
   <script src="/static/teleforma/js/jquery.expander.min.js" type="text/javascript"></script>
           <li><a href="#desk#" class="red">&nbsp;{% trans "Desk" %}&nbsp;</a>
             <ul>
               {% for period in periods %}
-              <li><a href="{% url teleforma-desk-period-list period.id %}" class="red">{{ period.name }}</a></li>
+              <li><a href="{% url 'teleforma-desk-period-list' period.id %}" class="red">{{ period.name }}</a></li>
               {% endfor %}
             </ul>
           </li>
           {% else %}
           {% with periods.0 as period %}
-          <li><a href="{% url teleforma-desk-period-list period.id %}" class="red">{% trans "Desk" %}</a></li>
+          <li><a href="{% url 'teleforma-desk-period-list' period.id %}" class="red">{% trans "Desk" %}</a></li>
           {% endwith %}
           {% endif %}
 
 
           {% if user.is_authenticated %}
 
-          <li><a href="{% url postman_inbox %}" class="orange">{% trans "Messaging" %}{% if postman_unread_count %}
-              ({{ postman_unread_count }}){% endif %}</a></li>
-
-          <li><a href="{% url teleforma-annals %}" class="yellow">{% trans "Annals" %}</a></li>
-
-          {% if periods|length == 1 %}
-          <li><a href="{% url teleforma-exam-scripts-pending periods.0.id %}" class="green">&nbsp;{% 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 %}</a>
-          </li>
-          {% else %}
-          <li><a href="#scripts#" class="green">&nbsp;{% 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 %}</a>
-            <ul>
-              {% for period in periods %}
-              <li><a href="{% url teleforma-exam-scripts-pending period.id %}" class="green">{{ period.name }}</a></li>
-              {% endfor %}
-            </ul>
-          </li>
+          <li><a href="postman_inbox" class="orange">{% trans "Messaging" %}{% if postman_unread_count %}
+              ({{ postman_unread_count }}){% endif %} TODO : fix this link</a></li>
+
+          {% if not user.student or not user.student.get.restricted %}
+            <li><a href="{% url 'teleforma-annals' %}" class="yellow">{% trans "Annals" %}</a></li>
+
+            {% if periods|length == 1 %}
+            <li><a href="{% url 'teleforma-exam-scripts-pending' periods.0.id %}" class="green">&nbsp;{% 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 %}</a>
+            </li>
+            {% else %}
+            <li><a href="#scripts#" class="green">&nbsp;{% 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 %}</a>
+              <ul>
+                {% for period in periods %}
+                <li><a href="{% url 'teleforma-exam-scripts-pending' period.id %}" class="green">{{ period.name }}</a></li>
+                {% endfor %}
+              </ul>
+            </li>
+            {% endif %}
           {% endif %}
 
           {% if user.professor.count %}
-          <li><a href="{% url teleforma-webclass-professor %}" class="yellow">Webclass</a></li>
+          <li><a href="{% url 'teleforma-webclass-professor' %}" class="yellow">Webclass</a></li>
           {% endif %}
 
           {% if periods|length == 1 %}
-          <li><a href="{% url teleforma-exam-scripts-scores-all periods.0.id %}"
+          <li><a href="{% url 'teleforma-exam-scripts-scores-all' periods.0.id %}"
               class="green">&nbsp;{% trans "Scores" %}</a></li>
           {% else %}
           <li><a href="#scores#" class="green">&nbsp;{% trans "Scores" %}</a>
             <ul>
               {% for period in periods %}
-              <li><a href="{% url teleforma-exam-scripts-scores-all period.id %}" class="green">{{ period.name }}</a>
+              <li><a href="{% url 'teleforma-exam-scripts-scores-all' period.id %}" class="green">{{ period.name }}</a>
               </li>
               {% endfor %}
             </ul>
           {% if user.is_superuser %}
           <li><a href="/admin/django/" target="_blank" class="blue">{% trans "Admin" %}</a></li>
           {% else %}
-          <li><a href="{% url teleforma-help %}" class="blue">{% trans "Help" %}</a></li>
+          <li><a href="{% url 'teleforma-help' %}" class="blue">{% trans "Help" %}</a></li>
           {% endif %}
 
           {% if user.is_staff or user.is_superuser %}
             <a href="#accounts#" class="blue">{% if user.first_name and user.last_name %}{{ user.first_name }}
               {{ user.last_name }}{% else %}{{ user.username }}{% endif %}</a>
             <ul>
-              <li><a href="{% url teleforma-profile-detail user.username %}" class="yellow">{% trans "Profile" %}</a>
+              <li><a href="{% url 'teleforma-profile-detail' user.username %}" class="yellow">{% trans "Profile" %}</a>
               </li>
               {% if user.is_staff %}
-              <li><a href="{% url teleforma-help %}">{% trans "Help" %}</a></li>
+              <li><a href="{% url 'teleforma-help' %}">{% trans "Help" %}</a></li>
               {% endif %}
-              <li><a href="{% url teleforma-logout %}">{% trans "Sign out" %}</a></li>
+              <li><a href="{% url 'teleforma-logout' %}">{% trans "Sign out" %}</a></li>
             </ul>
           </li>
           {% else %}
-          <li><a href="{% url teleforma-profile-detail user.username %}" class="darkblue">{% trans "Profile" %}</a></li>
-          <li><a href="{% url teleforma-logout %}" class="black">{% trans "Sign out" %}</a></li>
+          <li><a href="{% url 'teleforma-profile-detail' user.username %}" class="darkblue">{% trans "Profile" %}</a></li>
+          <li><a href="{% url 'teleforma-logout' %}" class="black">{% trans "Sign out" %}</a></li>
           {% endif %}
 
           {% endif %}
           <td>
             <p class="right">
               Copyright &copy; {% current_year %} {% organization %} |
-              <a href="{% url teleforma-flatpage "legal_notices" %}">{% trans "Legal notices" %}</a>
+              <a href="{% url 'teleforma-flatpage' "legal_notices" %}">{% trans "Legal notices" %}</a>
             </p>
           </td>
         </tr>
   </div>
   {% endblock layout %}
 
-  {% block analytics %}
+  {% comment %} {% block analytics %}
   {% analytics_code %}
-  {% endblock analytics %}
+  {% endblock analytics %} {% endcomment %}
 
   <script type='text/javascript'>
     window.scrollTo(0, 1);
index 1a5e9c89cc2c4f768a72a2c790936a6c67485b41..0b32f76506e61106847704e7c78f1c24038e6dca 100644 (file)
@@ -38,7 +38,7 @@
 </tr>
 {% for media in course.media.all %}
 <tr {% if not forloop.counter0|divisibleby:"2" %}class="odd"{% endif %}>
-<td><a href="{% url teleforma-item-detail media.id %}">{{ media.title }}</a></td>
+<td><a href="{% url 'teleforma-item-detail' media.id %}">{{ media.title }}</a></td>
 <td>{{ media.description }}</td>
 <td>{{ media.date_added }}</td>
 </tr>
index 11ac181627602e2ab167d61b7d814a112c08553f..e2f5ba974444fe635a6d5675680cc7afe9c60b5c 100644 (file)
@@ -13,12 +13,6 @@ jQuery(window).ready(function(){
     });
 </script>
 
-<script type="text/javascript">
-$(document).ready(function(){
-    InitChatWindow("{% url jqchat_ajax room.id %}", null);
-    });
-</script>
-
 {% endblock extra_javascript %}
 
 
index 7233546653f561af6e205a9c20c09cdb5b8bd305..17e03efcc1047d2cf7dc8ac77401561c77d7f987 100644 (file)
@@ -2,14 +2,6 @@
 {% load i18n %}
 {% load teleforma_tags %}
 
-{% block extra_javascript %}
-<script type="text/javascript">
-  $(document).ready(function () {
-    InitChatWindow("{% url jqchat_ajax room.id %}", null);
-  });
-</script>
-{% endblock extra_javascript %}
-
 {% block courses %}
 {% for c in all_courses %}
 {% with c.course as course %}
@@ -26,7 +18,7 @@
   <div class="block important">
     <p>
       <strong>Vous n'êtes pas inscrit à la webclass de cette matière. </strong><a
-        href="{% url teleforma-webclass-appointments webclass.id %}"
+        href="{% url 'teleforma-webclass-appointments' webclass.id %}"
         class="conference-big-button component_icon button icon_next">Cliquez-ici pour choisir un créneau horaire</a>
     </p>
   </div>
index 30e740db4342ebbab63dd2746be91f7b86f538f1..d408707213f0dc0d9d632ca76030db3fc8ac179d 100644 (file)
@@ -4,12 +4,6 @@
 
 {% block extra_javascript %}
 
-<script type="text/javascript">
-$(document).ready(function(){
-    InitChatWindow("{% url jqchat_ajax room.id %}", null);
-    });
-</script>
-
 <script type="text/javascript" src="/static/teleforma/js/pdf-min.js"></script>
 
 <script type="text/javascript">
index b44f9ac26c5af542009473f160423419d33e04d4..774261ac633d4dec5677353e6d28c4a6079b2bb0 100644 (file)
@@ -12,7 +12,6 @@
 
 <script type="text/javascript">
 $(document).ready(function(){
-    InitChatWindow("{% url jqchat_ajax room.id %}", null);
     $('#my_video_1').bind('contextmenu',function() { return false; });
     });
     $('#my_video_1').bind('contextmenu',function() { return false; });
@@ -73,7 +72,7 @@ $(document).ready(function(){
 <div class="course_title">
     <div style="float: right; font-size: 0.9em;">
         {% if "video" in media.mime_type %}
-        <a href="{% url teleforma-media-transcoded period.id media|get_audio_id %}" class="component_icon button icon_speaker">&nbsp;{% trans "Audio" %}</a>
+        <a href="{% url 'teleforma-media-transcoded' period.id media|get_audio_id %}" class="component_icon button icon_speaker">&nbsp;{% trans "Audio" %}</a>
         {% endif %}
         {% if "audio" in media.mime_type %}
         <a href="{% url teleforma-media-detail period.id media|get_video_id %}" class="component_icon button icon_clap">&nbsp;{% trans "Video" %}</a>
index 5374132ace9397adfb64537bd5816a1d775f43e8..2fa6fc106ceb97919b8f16ffcb2ef8c395969ac4 100644 (file)
@@ -12,7 +12,6 @@
 
 <script type="text/javascript">
 $(document).ready(function(){
-    InitChatWindow("{% url jqchat_ajax room.id %}", null);
     $('#my_video_1').bind('contextmenu',function() { return false; });
     });
 </script>
@@ -23,7 +22,7 @@ $(document).ready(function(){
 {% if media_transcoded.file and media.is_published or user.is_superuser or user.is_staff %}
  {% if not "video" in media.mime_type or request.user_agent.os.family == 'iOS' %}
   <div class="module_action">
-   <a href="{% url teleforma-media-transcoded-download period.id media.id %}" class="component_icon button" id="action_red"><img src="/static/teleforma/images/download_media.png" alt="" style="vertical-align:middle" />&nbsp;{% trans "Download" %}</a>
+   <a href="{% url 'teleforma-media-transcoded-download' period.id media.id %}" class="component_icon button" id="action_red"><img src="/static/teleforma/images/download_media.png" alt="" style="vertical-align:middle" />&nbsp;{% trans "Download" %}</a>
   </div>
  {% endif %}
 {% endif %}
@@ -35,14 +34,14 @@ $(document).ready(function(){
 <div class="course_title">
     <div style="float: right; font-size: 0.9em;">
         {% if "video" in media_transcoded.mime_type %}
-        <a href="{% url teleforma-media-transcoded period.id media|get_audio_id %}" class="component_icon button icon_speaker">&nbsp;{% trans "Audio" %}</a>
+        <a href="{% url 'teleforma-media-transcoded' period.id media|get_audio_id %}" class="component_icon button icon_speaker">&nbsp;{% trans "Audio" %}</a>
         {% endif %}
         {% if "audio" in media_transcoded.mime_type %}
-        <a href="{% url teleforma-media-detail period.id media|get_video_id %}" class="component_icon button icon_clap">&nbsp;{% trans "Video" %}</a>
+        <a href="{% url 'teleforma-media-detail' period.id media|get_video_id %}" class="component_icon button icon_clap">&nbsp;{% trans "Video" %}</a>
         {% endif %}
     </div>
 
-    <a href="{% url teleforma-desk-period-course period.id course.id %}">{{ course.title }} - {{ type }}{% if media.conference.session %} - {% trans "Session" %} {{ media.conference.session }}{% endif %}</a>
+    <a href="{% url 'teleforma-desk-period-course' period.id course.id %}">{{ course.title }} - {{ type }}{% if media.conference.session %} - {% trans "Session" %} {{ media.conference.session }}{% endif %}</a>
 
 </div>
 
@@ -91,11 +90,11 @@ $(document).ready(function(){
 <dl class="listing">
 
 {% if media.conference %}
-<dt>{% trans "Course" %}</dt><dd><a href="{% url teleforma-desk-period-course period.id course.id %}">{{ media.course.title }} - {{ media.course_type }}</a></dd>
+<dt>{% trans "Course" %}</dt><dd><a href="{% url 'teleforma-desk-period-course' period.id course.id %}">{{ media.course.title }} - {{ media.course_type }}</a></dd>
 <dt>{% trans "Session" %}</dt><dd>{{ media.conference.session }}</dd>
 {% if media.conference.professor %}
 <dt>{% trans "Professor" %}</dt>
-    <dd><a href="{% url teleforma-profile-detail media.conference.professor.user.username %}" target="_blank">{{ media.conference.professor }}</a></dd>
+    <dd><a href="{% url 'teleforma-profile-detail' media.conference.professor.user.username %}" target="_blank">{{ media.conference.professor }}</a></dd>
 {% endif %}
 {% if media.conference.comment %}<dt>{% trans "Comment" %}</dt><dd>{{ media.conference.comment }}</dd>{% endif %}
 <dt>{% trans "Begin date" %}</dt><dd>{{ media.conference.date_begin }}</dd>
index 3c590eba60df457f04695c090a767190c7916fec..2518564ce97fd4493f3e77a8c0920ba0643293e3 100644 (file)
@@ -4,14 +4,6 @@
 {% load i18n %}
 
 
-{% block extra_javascript %}
-<script type="text/javascript">
-  $(document).ready(function () {
-    InitChatWindow("{% url jqchat_ajax room.id %}", null);
-  });
-</script>
-{% endblock extra_javascript %}
-
 {% block content %}
 
 <div id="module-set-left" style="width: 18%">
@@ -76,7 +68,7 @@
     {% endif %}
 
     {% for appointment in appointments %}
-      <a href="{% url teleforma-appointments period_id=period.id course_id=appointment.course.id %}"><button>Rendez-vous individuels "{{ appointment.name }}"</button></a>
+      <a href="{% url 'teleforma-appointments' period_id=period.id course_id=appointment.course.id %}"><button>Rendez-vous individuels "{{ appointment.name }}"</button></a>
     {% endfor %}
   </div>
   <br />
@@ -97,7 +89,7 @@
     </div>
 
     <div class="video" style="width:400px">
-      <a href="{% url teleforma-media-detail period.id home_video.id %}" title="{% trans "Play" %}">
+      <a href="{% url 'teleforma-media-detail' period.id home_video.id %}" title="{% trans "Play" %}">
         {% if home_video.poster_file %}
         {% thumbnail home_video.poster_file "168x96" as im %}
         <div style="background: no-repeat url('{{ im.url }}') 0 1px; background-size: 100%; background-color: #dfdfdf;">
     {% for type in c.types %}
     <div class="course">
       <div class="course_title">
-        <a href="{% url teleforma-desk-period-course period.id course.id %}">{{ course.title }} -
+        <a href="{% url 'teleforma-desk-period-course' period.id course.id %}">{{ course.title }} -
           {{ type }}{% if course.description %} - {{ course.description }}{% endif %}</a>
       </div>
 
index 2306b9a3f146a51e93439e8b2a5dde12dd9bf103..61392fcb2784f744e71e32e1a2044823661172c1 100644 (file)
@@ -22,7 +22,7 @@
 {{ page_content|render_flatpage }}
 </div>
 
-<a href="{% url teleforma-login %}" class="component_icon button" id="action_red">{% trans "Connexion" %}</a>
+<a href="{% url 'teleforma-login' %}" class="component_icon button" id="action_red">{% trans "Connexion" %}</a>
 
 </div>
 {% endblock %}
index be6543f7abc8ae54955b67ec465ab0873c03ce25..4826e3e47394fe60bce266cbf6668b9e792d2e1d 100644 (file)
@@ -14,7 +14,7 @@
           {% if media.type == 'webm' or media.type == 'mp4' %}
             <tr>
             <td {% if forloop.first %}class="border-top"{% endif %} width="230px" style="vertical-align:middle">
-            <a href="{% url teleforma-media-detail period.id media.id %}" title="{% trans "Play" %}">
+            <a href="{% url 'teleforma-media-detail' period.id media.id %}" title="{% trans "Play" %}">
             {% if media.poster_file %}
                {% thumbnail media.poster_file "168x96" as im %}
                 <div style="background: no-repeat url('{{ im.url }}') 0 1px; background-size: 100%; background-color: #dfdfdf;">
@@ -49,7 +49,7 @@
             {% endif %}
             {% if media.file and media.is_published or user.is_superuser or user.is_staff %}
                 {% if not "video" in media.mime_type or request.user_agent.os.family == 'iOS' %}
-                    <a href="{% url teleforma-media-download period.id media.id %}">
+                    <a href="{% url 'teleforma-media-download' period.id media.id %}">
                         <img src="/static/teleforma/images/download_media.png" style="vertical-align:middle" alt="" title="{% trans "Download" %}" />
                     </a>
                 {% endif %}
index b47e8f7c59b92aea1b452054527b47049ee515e2..ee989dbfb9f537e85a8d7fde3f53926f9e3572be 100644 (file)
@@ -14,7 +14,7 @@
           {% if media.type == 'webm' %}
             <tr>
             <td {% if forloop.first %}class="border-top"{% endif %} width="230px" style="vertical-align:middle">
-            <a href="{% url teleforma-media-detail period.id media.id %}" title="{% trans "Play" %}">
+            <a href="{% url 'teleforma-media-detail' period.id media.id %}" title="{% trans "Play" %}">
             {% if media.poster_file %}
                {% thumbnail media.poster_file "168x96" as im %}
                 <div style="background: no-repeat url('{{ im.url }}') 0 1px; background-size: 100%; background-color: #dfdfdf;">
index 777d9e1ff6201eb04b09ab957c8ac834d7de1e76..0893821293bcd3508d2ec49bccfab54c5853781b 100644 (file)
@@ -12,7 +12,7 @@
       </tr>
     {% for s in searches %}
      <tr {% if not forloop.counter0|divisibleby:"2" %}class="odd"{% endif %}>
-        <td><a href="{% url teleforma-search-items %}?{{s.criteria.all|build_pattern_string|build_query_string}}">
+        <td><a href="{% url 'teleforma-search-items' %}?{{s.criteria.all|build_pattern_string|build_query_string}}">
             {% for c in s.criteria.all %}
                 <li>{% trans c.key %} : {{ c.value}}</li>
             {% endfor %}
index f3ab5e1a7a3fafef1847c2af990688389a21fb11..4a99743e1a11d438259dff575fbe2ffe67d240d0 100644 (file)
@@ -53,8 +53,8 @@
             <td style="border-bottom:1px solid #6A0307;color:#6A0307;font-size: 100%">{{ playlist.playlist.title }}</td>
             <td style="width:86ex; padding-right: 0; border-bottom:1px solid #6A0307; text-align:right">
             <a href="#" id="{{playlist.playlist.public_id}}" onclick="playlistUtils.showEdit(this, this.id); return false;" class="component_icon button icon_edit">{% trans "Edit" %}</a>
-                <a href="{% url teleforma-playlist-csv-export playlist.playlist.public_id 'collections' %}" class="component_icon button icon_csv">CSV Collections</a>
-                <a href="{% url teleforma-playlist-csv-export playlist.playlist.public_id 'items' %}" class="component_icon button icon_csv">CSV Items</a>
+                <a href="{% url 'teleforma-playlist-csv-export' playlist.playlist.public_id 'collections' %}" class="component_icon button icon_csv">CSV Collections</a>
+                <a href="{% url 'teleforma-playlist-csv-export' playlist.playlist.public_id 'items' %}" class="component_icon button icon_csv">CSV Items</a>
                 <a href="#" id="{{playlist.playlist.public_id}}" onclick="if(confirm(gettrans('delete the playlist permanently?'))){playlistUtils.remove(this.id);};return false;" class="component_icon button icon_cancel">{% trans "Delete" %}</a>
             </td>
         </tr>
         <tr {% if not forloop.counter0|divisibleby:"2" %}class="odd"{% endif %}>
             <td>
                 {% if resource.type == "item" and not resource.element == None %}
-                <a href="{% url teleforma-item-detail resource.element.public_id %}">{{ resource.element }}</a>
+                <a href="{% url 'teleforma-item-detail' resource.element.public_id %}">{{ resource.element }}</a>
                 {% endif %}
                 {% if resource.type == "collection" and not resource.element == None %}
-                <a href="{% url teleforma-collection-detail resource.element.public_id %}">{% if resource.element.title %}{{ resource.element.title }}{% else %}{{ resource.element }}{% endif %}</a>
+                <a href="{% url 'teleforma-collection-detail' resource.element.public_id %}">{% if resource.element.title %}{{ resource.element.title }}{% else %}{{ resource.element }}{% endif %}</a>
                 {% endif %}
                 {% if resource.type == "marker" and not resource.element == None  %}
-                <a href="{% url teleforma-item-detail-marker resource.element.public_id %}">{{ resource.element }}</a>
+                <a href="{% url 'teleforma-item-detail-marker' resource.element.public_id %}">{{ resource.element }}</a>
                 {% endif %}
                 {% if resource.type == "corpus" or resource.type == "fonds" %}
-                <a href="{% url teleforma-resource-detail resource.type resource.element.public_id %}">{{ resource.element.title }}</a>
+                <a href="{% url 'teleforma-resource-detail' resource.type resource.element.public_id %}">{{ resource.element.title }}</a>
                 {% endif %}
                 {% if resource.element == None %}{% trans "deleted" %}{% endif %}
             </td>
index 504945710960737e87f6d9f8d228021394fca592..ffff12092d8d5368a16741593151a58a4c41486a 100644 (file)
@@ -18,7 +18,7 @@ $(document).ready(function() {
 {% if form.errors %}
 <p class="login-error">{% trans "Your username and password didn't match. Please try again." %}</p>
 {% endif %}
-<form class="login" id="_loginForm" method="post" action="{% url teleforma-login %}">{% csrf_token %}
+<form class="login" id="_loginForm" method="post" action="{% url 'teleforma-login' %}">{% csrf_token %}
 <p>
 {{ form.username.label_tag }}
 {{ form.username }}<br />
@@ -26,7 +26,7 @@ $(document).ready(function() {
 {{ form.password }}
 </p>
 <div style="margin-top: 2em;">
-<span style="align: right; font-weight: bold; margin-right: 2em;"><a href="{% url teleforma-password-reset %}">{% trans "Password forgotten" %} ?</a></span>
+<span style="align: right; font-weight: bold; margin-right: 2em;"><a href="{% url 'teleforma-password-reset' %}">{% trans "Password forgotten" %} ?</a></span>
 <a href="#" class="component_icon button" id="action_red" onclick="$('#_loginForm').submit();"><img src="/static/teleforma/images/password.png" alt="" style="vertical-align:middle" />&nbsp;{% trans "Sign in" %}</a>
 <input type="hidden" name="next" value="{{ next }}" />
 </div>
index 1541f858780560bf477c87966b94031668a1bd95..fc16181337f8e1c7bf88e713ae771804fb67fe1a 100644 (file)
@@ -13,7 +13,7 @@
   {% block modules %}
 
     <div class="module">
-    <h3><a href="{% url teleforma-home %}"><img src="/static/teleforma/images/module_playlist.png" alt="playlists" style="vertical-align:middle" />{% if user.username != usr.username%}{% trans "His courses" %}{% else %}{% trans "My courses" %}{% endif %}</a></h3>
+    <h3><a href="{% url 'teleforma-home' %}"><img src="/static/teleforma/images/module_playlist.png" alt="playlists" style="vertical-align:middle" />{% if user.username != usr.username%}{% trans "His courses" %}{% else %}{% trans "My courses" %}{% endif %}</a></h3>
     <div style="background: white;">
     <ul>
     {% block courses %}
@@ -46,7 +46,7 @@
 
     <div id="password" style="float: right;">
     {% if user.is_authenticated and user.username == usr.username %}
-    <a href="{% url teleforma-password-change %}" class="component_icon button icon_login">{% trans "Change password" %}</a>
+    <a href="{% url 'teleforma-password-change' %}" class="component_icon button icon_login">{% trans "Change password" %}</a>
     {% elif user.is_staff %}
         <a href="{% url teleforma-user-login usr.id %}" class="component_icon button icon_login">{% trans "Login as" %}</a>
     {%  endif %}
diff --git a/teleforma/templates/telemeta/base.html b/teleforma/templates/telemeta/base.html
new file mode 100644 (file)
index 0000000..273557f
--- /dev/null
@@ -0,0 +1,258 @@
+<!DOCTYPE html>
+{% load i18n %}
+{% load telemeta_utils %}
+{% load teleforma_tags %}
+{% comment %} {% get_googletools as googletools %}
+{%  if googletools %}
+{% load googletools %}
+{% endif %} {% endcomment %}
+{% get_current_language as LANGUAGE_CODE %}
+{% get_available_languages as LANGUAGES %}
+<html xmlns="http://www.w3.org/1999/xhtml" lang="{{ LANGUAGE_CODE }}" xml:lang="{{ LANGUAGE_CODE }}" {% if LANGUAGE_BIDI %}dir="rtl"{% endif %}><head>
+<meta http-equiv="Content-type" content="text/html;charset=UTF-8" />
+<!--<meta name="Viewport" content="width=device-width" />
+<meta name="Viewport" content="initial-scale=1.0" />
+<meta name="Viewport" content="maximum-scale=1.5" />
+<meta name="Viewport" content="user-scalable=1" />-->
+<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
+<meta name="apple-mobile-web-app-capable" content="yes" />
+<meta names="apple-mobile-web-app-status-bar-style" content="black-translucent" />
+<link rel="icon" href="/static/teleforma/images/favicon.ico"/>
+
+<title>{%block head_title %}{% description %} - TeleForma{% endblock %}</title>
+
+{% block stylesheets %}
+
+
+<link rel="stylesheet" type="text/css" href="/static/telemeta/css/telemeta.css" />
+<link rel="stylesheet" type="text/css" href="/static/teleforma/css/teleforma.css" />
+
+<!--[if IE]>
+<link rel="stylesheet" type="text/css" href="/static/telemeta/css/telemeta_ie.css" />
+<![endif]-->
+<!--[if lte IE 6]>
+<link rel="stylesheet"type="text/css" href="/static/telemeta/css/telemeta_ie6.css" />
+<![endif]-->
+{% endblock %}
+
+{% block extra_stylesheets %}{% endblock %}
+
+{% block javascript %}
+<script src="{% url 'django.views.i18n.javascript_catalog' %}" type="text/javascript"></script>
+<script src="/static/teleforma/js/jquery-1.6.min.js" type="text/javascript"></script>
+<script src="/static/teleforma/js/jquery-ui.js" type="text/javascript"></script>
+<script src="/static/teleforma/js/jquery.expander.min.js" type="text/javascript"></script>
+<script src="/static/teleforma/js/messi.min.js" type="text/javascript"></script>
+<script src="/static/teleforma/js/rainbowvis.js" type="text/javascript"></script>
+<script src="/static/jqchat/jqchat.js" type="text/javascript" ></script>
+<script src="/static/telemeta/js/locale.js" type="text/javascript"></script>
+<script src="/static/telemeta/js/application.js" type="text/javascript"></script>
+<script src="/static/teleforma/js/application.js" type="text/javascript"></script>
+
+{% if user.is_authenticated %}
+<script type='text/javascript'>var CURRENT_USER_NAME="{{ user.username }}";</script>
+{% else %}
+<script type='text/javascript'>var CURRENT_USER_NAME=undefined;</script>
+{% endif %}
+
+{% block js-status %}
+{% get_telecaster as telecaster %}
+{%  if telecaster %}
+<script src="/static/telecaster/js/application.js" type="text/javascript"></script>
+{% endif %}
+{% endblock js-status %}
+
+{% endblock %}
+
+{% block extra_javascript %}{% endblock %}
+</head>
+
+<body>
+{% block layout %}
+<div id="layout">
+
+{% block header %}
+<div id="header">
+
+
+
+<div id="menu">
+<div id="logo_wrapper">
+<div id="logo">
+<img src="/static/teleforma/images/logo_pb.png" style="vertical-align:middle"
+alt="logo" />
+</div>
+</div>
+{% block menu %}
+{# spaces between li and a elements breaks layout #}
+
+<ul id="nav">
+
+ {% if user.is_authenticated %}
+
+  {% if periods|length > 1 %}
+    <li><a href="#desk#" class="red">&nbsp;{% trans "Desk" %}&nbsp;</a>
+      <ul>
+       {% for period in periods %}
+        <li><a href="{% url 'teleforma-desk-period-list' period.id %}" class="red">{{ period.name }}</a></li>
+       {% endfor %}
+      </ul>
+    </li>
+  {% else %}
+  {% with periods.0 as period %}
+   <li><a href="{% url 'teleforma-desk-period-list' period.id %}" class="red">{% trans "Desk" %}</a></li>
+  {% endwith %}
+  {% endif %}
+
+ {% else %}
+  <li><a href="#accounts#" class="red">{% trans "Home" %}</a></li>
+ {% endif %}
+
+ {% if user.is_authenticated %}
+
+ <li><a href="{% url 'postman_inbox' %}" class="orange">{% trans "Messaging" %}{% if postman_unread_count %} ({{ postman_unread_count }}){% endif %}</a></li>
+
+  <li><a href="{% url 'teleforma-annals' %}" class="yellow">{% trans "Annals" %}</a></li>
+
+  {% if periods|length == 1 %}
+      <li><a href="{% url 'teleforma-exam-scripts-pending' periods.0.id %}" class="green">&nbsp;{% 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 %}</a>
+     </li>
+  {% else %}
+    <li><a href="#scripts#" class="green">&nbsp;{% 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 %}</a>
+      <ul>
+       {% for period in periods %}
+        <li><a href="{% url 'teleforma-exam-scripts-pending' period.id %}" class="green">{{ period.name }}</a></li>
+       {% endfor %}
+      </ul>
+    </li>
+  {% endif %}
+
+  {% if user.professor.count %}
+    <li><a href="{% url 'teleforma-webclass-professor' %}" class="yellow">Webclass</a></li>
+  {% endif %}
+
+  {% if periods|length == 1 %}
+      <li><a href="{% url 'teleforma-exam-scripts-scores-all' periods.0.id %}" class="green">&nbsp;{% trans "Scores" %}</a></li>
+  {% else %}
+    <li><a href="#scores#" class="green">&nbsp;{% trans "Scores" %}</a>
+      <ul>
+        {% for period in periods %}
+        <li><a href="{% url 'teleforma-exam-scripts-scores-all' period.id %}" class="green">{{ period.name }}</a></li>
+        {% endfor %}
+      </ul>
+    </li>
+  {% endif %}
+
+ {% if user.is_authenticated %}
+  {% if user.is_superuser %}
+  <li><a href="/admin/django/" target="_blank" class="blue">{% trans "Admin" %}</a></li>
+  {% else %}
+   <li><a href="{% url 'teleforma-help' %}" class="blue">{% trans "Help" %}</a></li>
+ {% endif %}
+
+ {% if user.is_staff or user.is_superuser %}
+ <li style="a.active{background-image:/static/telemeta/images/user_tr_bk.png; background-repeat: no-repeat; background-position: 1ex .5ex;}">
+    <a href="#accounts#" class="blue">{% if user.first_name and user.last_name %}{{ user.first_name }} {{ user.last_name }}{% else %}{{ user.username }}{% endif %}</a>
+    <ul>
+    <li><a href="{% url 'telemeta-profile-detail' user.username %}" class="yellow">{% trans "Profile" %}</a></li>
+    {% if user.is_staff %}
+    <li><a href="{% url 'telemeta-desk-lists' %}">{% trans "Lists" %}</a></li>
+    <li><a href="{% url 'teleforma-help' %}">{% trans "Help" %}</a></li>
+    {% endif %}
+    <li><a href="{% url 'telemeta-logout' %}">{% trans "Sign out" %}</a></li>
+    </ul>
+ </li>
+ {% else %}
+ <li><a href="{% url telemeta-profile-detail user.username %}" class="darkblue">{% trans "Profile" %}</a></li>
+ <li><a href="{% url telemeta-logout %}" class="black">{% trans "Sign out" %}</a></li>
+ {% endif %}
+
+ {% endif %}
+{% endif %}
+
+</ul>
+{% endblock menu %}
+</div>
+</div>
+
+{% endblock header %}
+
+<div id="content">
+
+        <table id="content_header"><tr>
+                <td class="leftcol"><h1>{% block title %}{% endblock %}</h1></td>
+                <td class="rightcol">{% block title_buttons %}{% endblock %}</td>
+        </tr></table>
+
+    {% block postman_menu %}
+    {% endblock postman_menu %}
+
+    
+    {% if messages %}
+    <ul class="messages">
+        {% for message in messages %}
+            <li{% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</li>
+        {% endfor %}
+    </ul>
+    {% endif %}
+    
+    {% block content %}
+    {% endblock %}
+
+    <div class="nett"></div>
+
+    {% block delete %}
+    {% endblock %}
+
+</div>
+
+{% block footer %}
+<div id="footer">
+ <hr />
+ <table width="100%">
+  <tr>
+   <td>
+    <a id="telemeta_powered" href="{% telemeta_url %}" target="_blank"><img src="/static/telemeta/images/logo_mini_2.png" alt="Telemeta Powered"/></a>
+    <p class="left">
+    {% trans "Powered by" %} <a href="http://parisson.com" target="_blank"><br /><strong>TeleForma {% teleforma_version %}</strong></a><br />
+    </p>
+   </td>
+   <td>
+    <p class="center">
+    </p>
+   </td>
+   <td>
+    <p class="right">
+    Copyright &copy; {% current_year %} {% organization %} |
+    <a href="{% url 'telemeta-flatpage' "legal_notices" %}">{% trans "Legal notices" %}</a>
+    </p>
+   </td>
+  </tr>
+ </table>
+</div>
+{% endblock %}
+
+</div>
+{% endblock layout %}
+{% comment %} 
+{% block analytics %}
+{% analytics_code %}
+{% endblock analytics %} {% endcomment %}
+
+<script type='text/javascript'>
+window.scrollTo(0, 1);
+
+$(document).ready(function(){
+  $("*").dblclick(function(e){
+    e.preventDefault();
+  });
+});
+
+</script>
+
+</body>
+</html>
index d47c5ad8031735c00ca633516842033893746bd3..d69180fc44980b57e42a6f84cd8a6f6d7f8edca2 100644 (file)
@@ -1,5 +1,5 @@
 <div class="object-tools">
     {% for period in periods %}
-    <a class="btn btn-success" href="{% url teleforma-webclass-records-form period.id %}"><i class="icon-plus-sign icon-white"></i>{{ period.name}} </a>
+    <a class="btn btn-success" href="{% url 'teleforma-webclass-records-form' period.id %}"><i class="icon-plus-sign icon-white"></i>{{ period.name}} </a>
     {% endfor %}
 </div>
\ No newline at end of file
index 787ef4a71896d72cf35878ac258030ba569c1abc..58250e187174a41d90e3bc08607aa6feec863d8b 100644 (file)
@@ -45,7 +45,7 @@ Calendrier des Webclass
          {{slot.participants.count}}
         </td>
         <td>
-            <a href="{% url teleforma-webclass-join slot.id %}" target="_blank" class="conference-big-button component_icon button icon_next">Rejoindre la conférence</a>
+            <a href="{% url 'teleforma-webclass-join' slot.id %}" target="_blank" class="conference-big-button component_icon button icon_next">Rejoindre la conférence</a>
         </td>
     </tr>
     {% empty %}
index 8f0c7897ac45994894f288b839af66a396d065ad..962b878639943b44d9def2492d90ac93f702e936 100644 (file)
                     {% elif webclass_slot.status == 'ingoing' %}
                     <p>
                         La webclasse est en cours.
-                        <a href="{% url teleforma-webclass-join webclass_slot.id %}" target="_blank"
+                        <a href="{% url 'teleforma-webclass-join' webclass_slot.id %}" target="_blank"
                             class="conference-big-button component_icon button icon_next">Cliquez ici pour rejoindre la
                             conférence</a>
                     </p>
                     {% elif webclass_slot.status == 'almost' %}
                     <p>
                         La webclasse est accessible mais elle n'a pas encore démarré.
-                        <a href="{% url teleforma-webclass-join webclass_slot.id %}" target="_blank"
+                        <a href="{% url 'teleforma-webclass-join' webclass_slot.id %}" target="_blank"
                             class="conference-big-button component_icon button icon_next">Cliquez ici pour rejoindre la
                             conférence</a>
                     </p>
@@ -46,7 +46,7 @@
             {% for record in webclass_records %}
             <tr>
                 <td {% if forloop.first %}class="border-top" {% endif %} style="width:200px">
-                    <a href="{% url teleforma-webclass-record %}?url={{record.url}}" title="{% trans "View" %}">
+                    <a href="{% url 'teleforma-webclass-record' %}?url={{record.url}}" title="{% trans "View" %}">
                         <img src="{{ record.preview }}" style="width:176px" alt="{% trans 'Click here' %}" />
                         <div>Cliquez-ici</div>
                     </a>