# 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")),
<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>
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 %}
<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>
<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>
{% 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 %}
<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"> {% trans "Topic" %}</a>
+ <a id="topic" href="{% url 'teleforma-document-download' topic.id %}" class="component_icon button icon_download"> {% trans "Topic" %}</a>
{% endif %}
{% if script.score %}
<a id="score" href="#" class="component_icon button icon_ok"> {% trans "Score" %} : {{ script.score|floatformat }}/20</a>
<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"> {% trans "Topic" %}</a>
+ <a id="topic" href="{% url 'teleforma-document-download' topic.id %}" class="component_icon button icon_download"> {% trans "Topic" %}</a>
{% endif %}
{% if script.score %}
<a id="score" href="#" class="component_icon button icon_ok"> {% trans "Score" %} : {{ script.score|floatformat }}/20</a>
{% 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>
{% 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 %}
{% 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="">
-{% url teleforma-payment-start payment.pk as payment_url %}
+{% url 'teleforma-payment-start' payment.pk as payment_url %}
Bonjour,
Suite à votre inscription à la formation {{ period }}, une échéance de
-{% 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
<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>
<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 %}»
{% 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 %} |
{% 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!
{% 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 %}
<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>
{% 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 %}
{% 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 %}
{% 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 }}
<!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 }}"
{% 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"> {% trans "Desk" %} </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="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>
+ <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"> {% trans "Scripts" %}
+ <li><a href="{% url 'teleforma-exam-scripts-pending' periods.0.id %}" class="green"> {% 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 %}{% 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>
+ <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>
+ <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"> {% trans "Scores" %}</a></li>
{% else %}
<li><a href="#scores#" class="green"> {% 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 © {% 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);
</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>
});
</script>
-<script type="text/javascript">
-$(document).ready(function(){
- InitChatWindow("{% url 'jqchat_ajax' room.id %}", null);
- });
-</script>
-
{% endblock extra_javascript %}
{% 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 %}
<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>
{% 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">
<script type="text/javascript">
$(document).ready(function(){
- InitChatWindow("{% url 'jqchat_ajax' room.id %}", null);
$('#my_video_1').bind('contextmenu',function() { return false; });
});
</script>
<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"> {% trans "Audio" %}</a>
+ <a href="{% url 'teleforma-media-transcoded' period.id media|get_audio_id %}" class="component_icon button icon_speaker"> {% 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"> {% trans "Video" %}</a>
<script type="text/javascript">
$(document).ready(function(){
- InitChatWindow("{% url jqchat_ajax room.id %}", null);
$('#my_video_1').bind('contextmenu',function() { return false; });
});
</script>
{% 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" /> {% 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" /> {% trans "Download" %}</a>
</div>
{% endif %}
{% endif %}
<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"> {% trans "Audio" %}</a>
+ <a href="{% url 'teleforma-media-transcoded' period.id media|get_audio_id %}" class="component_icon button icon_speaker"> {% 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"> {% trans "Video" %}</a>
+ <a href="{% url 'teleforma-media-detail' period.id media|get_video_id %}" class="component_icon button icon_clap"> {% 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>
<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>
{% 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%">
{% 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 />
</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>
{{ 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 %}
{% 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;">
{% 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 %}
{% 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;">
</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 %}
<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>
{% 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 />
{{ 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" /> {% trans "Sign in" %}</a>
<input type="hidden" name="next" value="{{ next }}" />
</div>
{% 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 %}
<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 %}
{% load i18n %}
{% load telemeta_utils %}
{% load teleforma_tags %}
-{% get_googletools as googletools %}
+{% comment %} {% get_googletools as googletools %}
{% if googletools %}
{% load googletools %}
-{% endif %}
+{% 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>
{% 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 %}
</div>
{% endblock layout %}
-
+{% comment %}
{% block analytics %}
{% analytics_code %}
-{% endblock analytics %}
+{% endblock analytics %} {% endcomment %}
<script type='text/javascript'>
window.scrollTo(0, 1);
<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
{{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 %}
{% 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>
{% 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>