initial presentation detail page and a couple of other tweaks

This commit is contained in:
James Tauber 2012-09-20 22:54:17 -04:00
parent 1b3ef8d424
commit fad4c7d4dd
4 changed files with 41 additions and 3 deletions

View file

@ -13,7 +13,7 @@
{% if slot.kind.label == "talk" %} {% if slot.kind.label == "talk" %}
{% if not slot.content %} {% if not slot.content %}
{% else %} {% else %}
<div class="title"><a class="edit-slot" href="#">{{ slot.content.title }}</a></div> <div class="title"><a href="{% url schedule_presentation_detail slot.content.pk %}">{{ slot.content.title }}</a></div>
<div class="speaker">{{ slot.content.speaker }}</div> <div class="speaker">{{ slot.content.speaker }}</div>
{% endif %} {% endif %}
{% else %} {% else %}

View file

@ -0,0 +1,38 @@
{% extends "site_base.html" %}
{% block head_title %}Presentation: {{ presentation.title }}{% endblock %}
{% block body %}
<h1>{{ presentation.title }}</h1>
<h2>
{% for speaker in presentation.speakers %}
{{ speaker }}
{% if not forloop.last %}, {% endif %}{% endfor %}
</h2>
<dl class="dl-horizontal">
<dt>Audience level:</dt>
<dd style="margin-bottom: 0;">{{ presentation.proposal.get_audience_level_display }}</dd>
<dt>Track:</dt>
<dd>{{ presentation.proposal.track }}</dd>
</dl>
{% if presentation.slot %}
<h2>
{{ presentation.slot.day.date|date:"l" }}
{{ presentation.slot.start}}&ndash;{{ presentation.slot.end }}
in
{{ presentation.slot.rooms|join:", " }}
</h2>
{% endif %}
<h3>Description</h3>
<div class="description">{{ presentation.description }}</div>
<h3>Abstract</h3>
<div class="abstract">{{ presentation.abstract|safe }}</div>
{% endblock %}

View file

@ -3,7 +3,7 @@
{% load i18n %} {% load i18n %}
{% load bootstrap_tags %} {% load bootstrap_tags %}
{% block head_title %}Conference Schedule Edit{% endblock %} {% block head_title %}Conference Schedule{% endblock %}
{% block body_class %}full{% endblock %} {% block body_class %}full{% endblock %}

View file

@ -28,7 +28,7 @@
{% for presentation in presentations %} {% for presentation in presentations %}
<div class="row"> <div class="row">
<div class="span8 presentation well"> <div class="span8 presentation well">
<h3><a href="#">{{ presentation.title }}</a></h3> <h3><a href="{% url schedule_presentation_detail presentation.pk %}">{{ presentation.title }}</a></h3>
<h4>{{ presentation.speaker }} in {{ presentation.proposal.track }}</h4> <h4>{{ presentation.speaker }} in {{ presentation.proposal.track }}</h4>
{{ presentation.description }} {{ presentation.description }}
{% if presentation.slot %} {% if presentation.slot %}