9a25ca1754
* Adds session_detail page * Adds session chairing information to the schedule grid * Adds session_list.html * Nicer volunteer text Conflicts: pinaxcon/templates/symposion/schedule/_grid.html Conflict and migration performed by Sachi King <nakato@nakato.io> Emoji changed, lca2017_tags to lca2018_tags, remove needless dependency on django-user-account, use request instead like the remainder of the calls n the template do anyways. Remove blocktrans from a number of texts as they break {{ templating }} and we don't translate anyways. Modified-by: Sachi King <nakato@nakato.io>
80 lines
2.6 KiB
HTML
80 lines
2.6 KiB
HTML
{% extends "symposion/schedule/public_base.html" %}
|
|
|
|
{% load lca2018_tags %}
|
|
{% load sitetree %}
|
|
{% load staticfiles %}
|
|
{% load thumbnail %}
|
|
{% load i18n %}
|
|
|
|
|
|
{% block head_title %}Session: {{ session }}{% endblock %}
|
|
|
|
{% block breadcrumbs %}{% sitetree_breadcrumbs from "main" %}{% endblock %}
|
|
|
|
{% block header_inset_image %}{{ block.super }}{% endblock %}
|
|
|
|
{% block header_background_image %}{{ block.super }}{% endblock %}
|
|
|
|
{% block header_title %}Session: {{ session }}{% endblock %}
|
|
|
|
{% block header_paragraph %}
|
|
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<dl class="dl-horizontal">
|
|
<dt>{% trans "Session Chair" %}</dt>
|
|
<dd>
|
|
{% if chair %}
|
|
{{ chair.attendee.attendeeprofilebase.attendeeprofile.name }}
|
|
{% if request.user == chair %}
|
|
<form method="POST">
|
|
{% csrf_token %}
|
|
<input type="hidden" name="role" value="un-chair" />
|
|
<input type="submit" value="Opt out" class="btn"/>
|
|
</form>
|
|
{% endif %}
|
|
{% else %}
|
|
{% if request.user.is_authenticated %}
|
|
{% if request.user.attendee.completed_registration %}
|
|
{% if not chair_denied %}
|
|
<form method="POST">
|
|
{% csrf_token %}
|
|
<input type="hidden" name="role" value="chair" />
|
|
<input type="submit" class="btn" value="Volunteer to be session chair"/>
|
|
</form>
|
|
{% endif %}
|
|
{% else %}
|
|
{% url 'guided_registration' as guided_registration %}
|
|
<a href="{{ guided_registration }}">Click here to get a ticket for the conference,</a> and enable volunteering for session roles.
|
|
{% endif %}
|
|
{% else %}
|
|
Sign up and <a href="/saml2/login/?next={{ request.path }}">log in</a> to volunteer to be session chair.
|
|
{% endif %}
|
|
{% endif %}
|
|
</dd>
|
|
<dt>{% trans "Session Runner" %}</dt>
|
|
<dd>
|
|
{% if runner %}
|
|
{{ runner.profile.display_name }}
|
|
{% else %}
|
|
{% blocktrans %}Session runner not assigned.{% endblocktrans %}
|
|
{% endif %}
|
|
</dd>
|
|
</dl>
|
|
|
|
<h2>Slots</h2>
|
|
|
|
<table class="table">
|
|
{% for slot in session.slots.all %}
|
|
<tr>
|
|
<td>{{ slot }}</td>
|
|
<td>{% if slot.content %}<a href="{% url 'schedule_presentation_detail' slot.content.pk %}">{{ slot.content }}</a>{% endif %}</td>
|
|
</tr>
|
|
{% empty %}
|
|
<li>{% trans "No slots in session." %}</li>
|
|
{% endfor %}
|
|
</table>
|
|
|
|
{% endblock %}
|