<commit_before>{% extends "wafer/base.html" %}
{% block content %}
<section class="wafer wafer-schedule">
<h1>{% trans "Schedule" %}</h1>
<div class="wafer_schedule">
   {% if not schedule_days %}
   {# Schedule is incomplete / invalid, so show nothing #}
   {% blocktrans %}
   <p>The final schedule has not been published yet.</p>
   {% endblocktrans %}
   {% else %}
   {% for schedule_day in schedule_days %}
   <table cellspacing=1 cellpadding=0>
      {# We assume that the admin has created a valid timetable #}
      <tr>
         <td colspan="{{ venue_list|length|add:1 }}" class="title">{{ schedule_day.day.date|date:"l (d b)" }}</td>
      </tr>
      <tr>
         <th>{% trans "Time" %}</th>
      {% for venue in schedule_day.venues %}
         <th><a href="{{ venue.get_absolute_url }}">{{ venue.name }}</a></th>
      {% endfor %}
      </tr>
      {% for row in schedule_day.rows %}
      <tr>
         <td class="scheduleslot">{{ row.slot.get_start_time|time:"H:i" }} - {{ row.slot.end_time|time:"H:i" }}</td>
         {% for item in row.get_sorted_items %}
         {% if item.item == "unavailable" %}
            {# Venue isn't available, so we add an empty table element with the 'unavailable' class #}
            <td colspan="{{ item.colspan }}" rowspan="{{ item.rowspan }}" class="unavailable"></td>
         {% else %}
            {# Add item details #}
            <td colspan="{{ item.colspan }}" rowspan="{{ item.rowspan }}" class="{{ item.item.css_class|default:'schedule' }}">
               {% if item.item.get_url %}
               <a href="{{ item.item.get_url }}">
                  {{ item.item.get_details|escape }}</a>
               {% else %}
               {{ item.item.get_details|escape }}
               {% endif %}
            </td>
         {% endif %}
         {% endfor %}<commit_msg>Base colspan of day rows on schedule_day.venues and not venue_list (which no longer exists).<commit_after>{% extends "wafer/base.html" %}
{% block content %}
<section class="wafer wafer-schedule">
<h1>{% trans "Schedule" %}</h1>
<div class="wafer_schedule">
   {% if not schedule_days %}
   {# Schedule is incomplete / invalid, so show nothing #}
   {% blocktrans %}
   <p>The final schedule has not been published yet.</p>
   {% endblocktrans %}
   {% else %}
   {% for schedule_day in schedule_days %}
   <table cellspacing=1 cellpadding=0>
      {# We assume that the admin has created a valid timetable #}
      <tr>
         <td colspan="{{ schedule_day.venues|length|add:1 }}" class="title">{{ schedule_day.day.date|date:"l (d b)" }}</td>
      </tr>
      <tr>
         <th>{% trans "Time" %}</th>
      {% for venue in schedule_day.venues %}
         <th><a href="{{ venue.get_absolute_url }}">{{ venue.name }}</a></th>
      {% endfor %}
      </tr>
      {% for row in schedule_day.rows %}
      <tr>
         <td class="scheduleslot">{{ row.slot.get_start_time|time:"H:i" }} - {{ row.slot.end_time|time:"H:i" }}</td>
         {% for item in row.get_sorted_items %}
         {% if item.item == "unavailable" %}
            {# Venue isn't available, so we add an empty table element with the 'unavailable' class #}
            <td colspan="{{ item.colspan }}" rowspan="{{ item.rowspan }}" class="unavailable"></td>
         {% else %}
            {# Add item details #}
            <td colspan="{{ item.colspan }}" rowspan="{{ item.rowspan }}" class="{{ item.item.css_class|default:'schedule' }}">
               {% if item.item.get_url %}
               <a href="{{ item.item.get_url }}">
                  {{ item.item.get_details|escape }}</a>
               {% else %}
               {{ item.item.get_details|escape }}
               {% endif %}
            </td>
         {% endif %}
         {% endfor %}
{'fraction_non_alphanumeric': 0.18053333333333332, 'fraction_numerical': 0.0026666666666666666, 'mean_word_length': 2.340160284951024, 'pattern_counts': {'":': 0, '<': 59, '<?xml version=': 0, '>': 59, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2889627', 'n_tokens_mistral': 1241, 'n_tokens_neox': 1147, 'n_words': 291}