Basic template changes

This commit is contained in:
Tobias 2018-09-27 19:49:00 +12:00
parent b5c9a81fbd
commit a75acac56f
3 changed files with 13 additions and 8 deletions

View file

@ -1,6 +1,10 @@
{% load i18n %}
{% load lca2018_tags %}
{% load proposal_tags %}
{% load review_tags %}
{% load teams_tags %}
{% load registrasion_tags %}
{% load lca2018_tags %}
{% load staticfiles %}
{% if user.is_staff %}
<div class="container">

View file

@ -15,4 +15,4 @@
<div class="col-md-6 text-primary d-flex flex-column">
{% include "symposion/dashboard/_profile.html" %}
</div>
</div>
</div>

View file

@ -28,9 +28,9 @@
<td class="time"><h4>{{ row.time|date:"h:iA" }}</h4></td>
{% for slot in row.slots %}
<td class="slot slot-{{ slot.kind.label }}" colspan="{{ slot.colspan }}" rowspan="{{ slot.rowspan }}">
{% if slot.kind.label == "talk" or slot.kind.label == "tutorial" %}
{% if not slot.content %}
{% else %}
{% with slot.kind.label.lower as label %}
{% if label == "talk" or label == "tutorial" %}
{% if slot.content %}
<span class="title">
<a href="{% url "schedule_presentation_detail" slot.content.pk %}">{{ slot.content.title }}</a>
</span>
@ -52,7 +52,7 @@
{% endif %}
{% endflag %}
{% endif %}
{% elif slot.kind.label == "shortbreak" %}
{% elif label == "shortbreak" %}
{% else %}
{% if slot.content_override %}
{{ slot.content_override_html|safe }}
@ -60,12 +60,13 @@
{{ slot.kind.label }}
{% endif %}
{% endif %}
{% if "break" in slot.kind.label %}
{% if "break" in label %}
{% else %}
<span class="room">
{{ slot.rooms|join:", "}}<span class="endtime"> ends {{ slot.end|date:"h:iA" }}</span>
</span>
{% endif %}
{% endwith %}
</td>
{% endfor %}
{% if forloop.last %}
@ -74,4 +75,4 @@
</tr>
{% endfor %}
</tbody>
</table>
</table>