
Move event information from settings.py to database. Create a middleware to check that an event is active. Return a "no event" page when no event is detected (allows to have the website always running). Leverage the middleware to push event title/subtitle info into templates. Remove the context processor we used to that end before. Add support for 'CFP closed' status that removes the session suggestion button. Replace the loadtopics command by a loadevent command that lets you create the event and topics in the database in one shot. Change-Id: I1233962606a59fe1d353eaad024c8d06c8fcbeef Reviewed-on: https://review.openstack.org/34001 Approved: Thierry Carrez <thierry@openstack.org> Reviewed-by: Thierry Carrez <thierry@openstack.org> Tested-by: Jenkins
54 lines
2.2 KiB
HTML
54 lines
2.2 KiB
HTML
{% extends "base.html" %}
|
|
{% block helppage %}
|
|
<p>Welcome to the Design Summit session suggestion system.</p>
|
|
<p>This is the main screen. It lists all sessions suggested so far.</p>
|
|
<p>Each session has a topic, a title and a proposer. You can see the details of a proposed session by clicking on the title. You can sort the results by clicking on the corresponding table headers.</p>
|
|
<p>If you want to suggest your own session subject, click on <i>Suggest session</i>. If you're a topic lead, you will see the <i>Review topic</i> button that lets you review sessions suggested for your topic.</p>
|
|
{% endblock %}
|
|
{% block content %}
|
|
<script type="text/javascript" src="/media/sorting.js"></script>
|
|
{% if event.status == 'A' %}
|
|
<a class=roundedButton href=/cfp/create>Suggest session</A>
|
|
{% else %}
|
|
Session suggestion is now closed.
|
|
{% endif %}
|
|
{% for topic in reviewable_topics %}
|
|
<a class=roundedButton href="/cfp/topic/{{ topic.id }}">Review topic: {{ topic.name }}</A>
|
|
{% endfor %}
|
|
<table>
|
|
<tr>
|
|
<th><a class="nolink"
|
|
href="" onclick="ts_resortTable(this); return false;">Topic<img
|
|
class="sortarrow" src="/media/arrowBlank" height="6" width="9"></a></th>
|
|
<th><a class="nolink"
|
|
href="" onclick="ts_resortTable(this); return false;">Title<img
|
|
class="sortarrow" src="/media/arrowBlank" height="6" width="9"></a>
|
|
<span class=small>(Click to view/edit)</span></th>
|
|
<th><a class="nolink"
|
|
href="" onclick="ts_resortTable(this); return false;">Proposer<img
|
|
class="sortarrow" src="/media/arrowBlank" height="6" width="9"></a></th>
|
|
<th class="right"><a class="nolink"
|
|
href="" onclick="ts_resortTable(this); return false;">Status<img
|
|
class="sortarrow" src="/media/arrowBlank" height="6" width="9"></a></th>
|
|
</tr>
|
|
{% for proposal in proposals %}
|
|
<tr>
|
|
<td>{{ proposal.topic.name }}</td>
|
|
<td>
|
|
<a href="/cfp/details/{{ proposal.id }}">{{ proposal.title }}</a>
|
|
</td>
|
|
<td>{{ proposal.proposer.first_name }} {{ proposal.proposer.last_name }}</td>
|
|
<td class="right"><span class="sortkey">{{ proposal.status }}</span>
|
|
{% if proposal.scheduled %}
|
|
Scheduled
|
|
{% else %}
|
|
{{ proposal.get_status_display }}
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
{% endblock %}
|
|
{% block extrafooter %}
|
|
{% endblock %}
|