pass in schedule to schedule_list and show section name on section list

This commit is contained in:
James Tauber 2012-09-19 22:06:15 -04:00
parent f1072eb4d9
commit c47907b29e
2 changed files with 2 additions and 1 deletions

View file

@ -38,6 +38,7 @@ def schedule_list(request, slug=None):
presentations = presentations.exclude(cancelled=True).order_by("id") presentations = presentations.exclude(cancelled=True).order_by("id")
ctx = { ctx = {
"schedule": schedule,
"presentations": presentations, "presentations": presentations,
} }
return render(request, "schedule/schedule_list.html", ctx) return render(request, "schedule/schedule_list.html", ctx)

View file

@ -24,7 +24,7 @@
{% endblock %} {% endblock %}
{% block body %} {% block body %}
<h1>Accepted Presentations</h1> <h1>Accepted {{ schedule.section.name }}</h1>
{% for presentation in presentations %} {% for presentation in presentations %}
<div class="row"> <div class="row">
<div class="span8 presentation well"> <div class="span8 presentation well">