Source

fossconf / templates / web / talks.html

{% extends "base.html" %}
{% load i18n %}
{% block centercontent %}
    <div class="sideheading">{% trans "Talks" %}
    {% if tag %}
    Tag: {{ tag }}
    {% endif %}</div>
    <p>
    {% for tag in tag_colours %}
    <a href="{% url talk_by_tag tag=tag.tag %}" >
    <font color="{{ tag.colour }}" >
    {{ tag.tag }}
    </font>
    </a>
    
    {% endfor %}
    </p>
    {% if lst_list %}
        <table border="1">
            <tr>
                <th>{% trans "Talk Title" %}</th>
                <th>{% trans "Speaker" %}</th>
                <th>{% trans "level" %}</th>
                <th>{% trans "Category" %}</th>
        <th>{% trans "Tags" %}</th>
        <th>{% trans "Scheduled" %}</th>
            </tr>
            {% for p in lst_list %}
                {% if p.get_colour %}
                    <tr style="background: {{ p.get_colour }}"> 
                {% else %}
                    <tr style="background: #FFFFFF">
                {% endif %}
              <td>
                <a class ="name" href="{% url talk_by_id id=p.id %}">
                  {{p.title}}
                </a>
              </td>
              <td>
                {% for spk in p.speaker.all %}
                <a  class ="name" href="{% url delegate_by_id id=spk.id %}">
                  {{ spk.username.get_full_name }}
                </a>
                <br>
                {% endfor %}
              </td>
              <td class ="check">
                {{ p.get_level_display }}
              </td>
              <td class ="check">
                {{ p.category }}
              </td>
          <td class ="check">
                {{ p.talk_tags }}
              </td>
              
              <td>
                {% for slt in scheduled %}
                  {% ifequal slt.talk.id p.id %}
                    {{slt.day.confdate|date:"D d M"}}<br>
                    {{slt.talk_start_time|time:"H:i" }}-{{slt.talk_end_time|time:"H:i"}}<br>
                  {% endifequal %}
                {% endfor %}
              </td>
            </tr>
            {% endfor %}
        </table>
    {% else %}
        <h3>{% trans "No talks registered" %}</h3><br>
    {% endif %}
{% endblock %}