--- /dev/null
+import os
+
+os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings")
+
+# This application object is used by the development server
+# as well as any WSGI server configured to use this file.
+from django.core.wsgi import get_wsgi_application
+application = get_wsgi_application()
#menu .orange { border-bottom-color: #e65911; }
#menu .darkgreen { border-bottom-color: #006a12; }
#menu .black { border-bottom-color: #000000; }
-#menu .red { border-bottom-color: #DD0000; }
+#menu .red { border-bottom-color: #cc0000; }
#menu .violet { border-bottom-color: #A00020; }
#menu .origin { border-bottom-color: transparent; }
background-color: #3c9200;
color: #FFF;
padding:0.8em 0.8em 0.8em 0.8em;
- }
+ }
+
+#action_orange {
+ background-color: #e65911;
+ color: #FFF;
+ padding:0.8em 0.8em 0.8em 0.8em;
+ }
+
.list_item, .list_item:visited, .list_item:hover{
display:block;
<a href="{{ by_message_url }}" class="component_icon button icon_filter">{% trans "by message" %}</a>
</div>{% endblock pm_by_modes %}
<br />
-
+{% paginate %}
<form id="_messageForm" action="{% block pm_form_action %}{% endblock %}" method="post">{% csrf_token %}
<table id="pm_messages" class="listing" >
</span>{% endblock %}
</form>
-{% paginate %}
{% else %}
<p>{% trans "No messages." %}</p>
{% endif %}
<div class="course_title">{{ course.title }}{% if course.description %} - {{ course.description }}{% endif %}
</div>
+{% if course.conference.all or course.document.all or course.media.all %}
+
{% block document %}
{% with course as course and %}
{% include "teleforma/inc/document_list.html" %}
{% endwith %}
{% endblock %}
+{% else %}
+<div class="course_content">
+<h2>{% trans "No document" %}</h2>
+</div>
+{% endif %}
+
</div>
</div>
{% endblock course %}
</div>
{% if course.conference.all or course.document.all or course.media.all %}
+
{% block document %}
{% with course as course %}
{% include "teleforma/inc/document_list.html" %}
{% if user.is_staff %}
<li><a href="#archives#" class="green">{% trans "Archives" %}</a>
<ul>
- <li><a href="{% url telemeta-fonds %}">{% trans "Fonds" %}</a></li>
- <li><a href="{% url telemeta-corpus %}">{% trans "Corpus" %}</a></li>
<li><a href="{% url telemeta-collections %}">{% trans "Collections" %}</a></li>
<li><a href="{% url telemeta-items %}">{% trans "Items" %}</a></li>
</ul>
{% endif %}
{% if user.is_authenticated %}
+ {% if user.is_staff %}
+ <li><a href="#admin#" class="blue">{% trans "Admin" %}</a>
+ <ul>
+ <li><a href="{% url telemeta-admin-general %}">{% trans "General" %}</a></li>
+ </ul>
+ </li>
+ {% endif %}
+
<li><a href="#profil#" class="blue"><img src="{% url telemeta-images "user_tr.png" %}" alt="user" style="vertical-align:middle" width="13px" />{% if user.first_name and user.last_name %}
{{ user.first_name }} {{ user.last_name }}
{% else %}
</ul>
</li>
- {% if user.is_staff %}
- <li><a href="#admin#" class="blue">{% trans "Admin" %}</a>
- <ul>
- <li><a href="{% url telemeta-admin-general %}">{% trans "General" %}</a></li>
- </ul>
- </li>
- {% endif %}
{% endif %}
{% endif %}
{% load i18n %}
{% load telemeta_utils %}
{% load teleforma_tags %}
+{% load pagination_tags %}
{% if is_paginated %}
<div class="pagination" id="user_pagination">
<td></td>
{% endif %}
- <td><a href="{% url postman_write user.username %}" class="component_icon button" id="action_red">{% trans "Message" %}</a></td>
+ <td><a href="{% url postman_write user.username %}" class="component_icon button" id="action_orange">{% trans "Message" %}</a></td>
</tr>
{% endfor %}
</tbody>
</div>
{% endif %}
-<div class="course_title">{% trans "Users" %}</div>
+<div class="course_title">{% trans "Users" %}{% if training %} - {{ training }}{% endif %}</div>
<br />
{% if users %}
{% include "telemeta/inc/user_list.html" %}
# Users
url(r'^user/all/$', UsersView.as_view(), name="teleforma-users"),
- url(r'^user/by_training/(\w+)$', UsersTrainingView.as_view(), name="teleforma-training-users"),
+ url(r'^user/by_training/(\w+)/$', UsersTrainingView.as_view(), name="teleforma-training-users"),
url(r'^user/all/export/$', user_export.all, name="teleforma-users-xls-export"),
url(r'^user/by_training/(?P<id>.*)/export/$', user_export.by_training, name="teleforma-training-users-export"),