project/templates/talk/list-talks.html
author Parth buch <parth.buch.115@gmail.com>
Sat, 01 Oct 2011 03:59:03 +0530
branch2011
changeset 429 cde70fd3073c
parent 230 9649b07aa4c8
permissions -rw-r--r--
changed the handler404 and handler500 to a custom view, passing scope to get proper formed urls when displaying 404 and 500 pages

{% extends "base.html" %}

{% block title %}My Talks{% endblock %}

{% block content %}
<h1>My Talks</h1>
{% if talk_list %}
<h3>List of the talks I have submitted.</h3>

<table class="list-talks">
  <tr>
    <th>Title</th>
    <th>Contact</th>
    <th>Topic</th>
    <th>Duration</th>
    <th>Audience type</th>
  </tr>
  {% for talk in talk_list %}
    <tr>
      <td><u><a href="/{{ params.scope }}/edit-talk/{{ talk.id }}/">{{ talk.title }}</a></u></td>
      <td>{{ talk.contact }}</td>
      <td>{{ talk.topic }}</td>
      <td>{{ talk.duration }}</td>
      <td>{{ talk.get_audience_display }}</td>
    </tr>
  {% endfor %}
</table>
{% else %}
<h2>No talks</h2>
{% endif %}
{% endblock content %}