<table class="listing" width="100%">
<thead>
<tr>
- <th class="highlight">{% trans "Type" %}</th>
- <th >{% trans "Room" %}</th>
- <th >{% trans "Session" %}</th>
+ <th class="highlight">{% trans "Session" %}</th>
<th>{% trans "Professor" %}</th>
<th>{% trans "Begin date" %}</th>
+ <th >{% trans "Room" %}</th>
<th>{% trans "Streaming" %}</th>
</tr>
</thead>
<tbody>
{% for conference in course.conference.all|from_type:type %}
<tr {% if not forloop.counter0|divisibleby:"2" %}class="odd"{% endif %}>
- <td><a href="{% url teleforma-conference-detail conference.id %}">{{ conference.course_type }}</a></td>
- <td><a href="{% url teleforma-conference-detail conference.id %}">{{ conference.room }}</a></td>
<td><a href="{% url teleforma-conference-detail conference.id %}">{{ conference.session }}</a></td>
<td><a href="{% url telemeta-profile-detail conference.professor.user.username %}" target="_blank">{{ conference.professor }}</a></td>
<td>{{ conference.date_begin }}</td>
+ <td>{{ conference.room }}</td>
<td align="center">
{% if conference.streaming %}
- <a href="{% url teleforma-conference-detail conference.id %}"><img src="images/media-record.png" alt="yes" style="vertical-align:middle" /></a>
+ <img src="images/media-record.png" alt="yes" style="vertical-align:middle" />
{% endif %}
</td>
</tr>
<thead>
<tr>
<th class="highlight">{% trans "Title" %}</th>
- <th>{% trans "Description" %}</th>
<th>{% trans "Annal" %}</th>
<th>{% trans "Date modified" %}</th>
<th>{% trans "Download" %}</th>
<tbody>
{% for document in course.document.all|from_type:type %}
<tr {% if not forloop.counter0|divisibleby:"2" %}class="odd"{% endif %}>
- <td><a href="{% url teleforma-document-detail document.id %}" target="_blank">{{ document.title }}</a></td>
- <td>{{ document.description }}</td>
+ <td>{% if document.file %}<a href="{% url teleforma-document-detail document.id %}" target="_blank">{% endif %}{{ document.title }}{% if document.file %}</a>{% endif %}</td>
<td align="center">
{% if document.is_annal %}
<img src="images/ok.png" alt="yes" style="vertical-align:middle" />
{% endif %}
</td>
<td>{{ document.date_added }}</td>
- <td align="center"><a href="{% url teleforma-document-download document.id %}"><img src="{% url telemeta-images "download.png" %}" width="16px" style="vertical-align:middle" /></a></td>
+ <td align="center">{% if document.file %}<a href="{% url teleforma-document-download document.id %}"><img src="{% url telemeta-images "download.png" %}" width="16px" style="vertical-align:middle" /></a>{% endif %}</td>
</tr>
{% endfor %}
</tbody>
<table class="listing" width="100%">
<thead>
<tr>
- <th class="highlight">{% trans "Title" %}</th>
- <th>{% trans "Description" %}</th>
- <th>{% trans "Date modified" %}</th>
+ <th class="highlight">{% trans "Session" %}</th>
+ <th>{% trans "Professor" %}</th>
+ <th>{% trans "Begin date" %}</th>
+ <th>{% trans "Duration" %}</th>
</tr>
</thead>
<tbody>
{% for media in course.media.all|from_type:type %}
<tr {% if not forloop.counter0|divisibleby:"2" %}class="odd"{% endif %}>
- <td><a href="{% url teleforma-media-detail media.id %}">{{ media.item.title }}</a></td>
- <td>{{ media.item.description }}</td>
- <td>{{ media.date_modified }}</td>
+ <td><a href="{% url teleforma-media-detail media.id %}">{{ media.conference.session }}</a></td>
+ <td><a href="{% url telemeta-profile-detail media.conference.professor.user.username %}" target="_blank">{{ media.conference.professor }}</a></td>
+ <td><a href="{% url teleforma-media-detail media.id %}">{{ media.conference.date_begin }}</a></td>
+ <td>{{ media.item.approx_duration }}</td>
</tr>
{% endfor %}
</tbody>
<ul>
{% block courses %}
{% with user|user_courses as courses %}
- {% for course in courses %}
- <li><a href="{% url teleforma-course-detail course.id %}">{{ course.title}} {{ course.type }}</a></li>
- {% endfor %}
+ {% for c in courses %}
+ {% for course in c.courses %}
+ <li><a href="{% url teleforma-course-detail course.id %}">{{ course.title}} {{ course.type }}</a></li>
+ {% endfor %}
+ {% endfor %}
{% endwith %}
{% endblock courses %}
</ul>