* Adds session_detail page
* Adds session chairing information to the schedule grid
* Adds session_list.html
* Nicer volunteer text
Conflicts:
	pinaxcon/templates/symposion/schedule/_grid.html
Conflict and migration performed by Sachi King <nakato@nakato.io>
Emoji changed, lca2017_tags to lca2018_tags, remove needless dependency
on django-user-account, use request instead like the remainder of the
calls n the template do anyways.
Remove blocktrans from a number of texts as they break {{ templating }}
and we don't translate anyways.
Modified-by: Sachi King <nakato@nakato.io>
		
	
			
		
			
				
	
	
		
			75 lines
		
	
	
	
		
			2.7 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			75 lines
		
	
	
	
		
			2.7 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
{% load lca2018_tags %}
 | 
						|
<table class="calendar table table-bordered">
 | 
						|
  <thead>
 | 
						|
    <tr>
 | 
						|
      <th class="time"> </th>
 | 
						|
        {% for room in timetable.rooms %}
 | 
						|
          <th>{{ room.name }}</th>
 | 
						|
          {% endfor %}
 | 
						|
    </tr>
 | 
						|
    {% with timetable|day_has_tracks:timetable.day as has_tracks %}
 | 
						|
      {% if has_tracks %}
 | 
						|
        <tr>
 | 
						|
          <th class="time"> </th>
 | 
						|
          {% for room in timetable.rooms %}
 | 
						|
            {% with room|trackname:timetable.day as track_name %}
 | 
						|
              <th class="track-name">{% if track_name %}<p>{{ track_name }}{% endif %}</th>
 | 
						|
            {% endwith %}
 | 
						|
          {% endfor %}
 | 
						|
        </tr>
 | 
						|
      {% endif %}
 | 
						|
    {% endwith %}
 | 
						|
  </thead>
 | 
						|
  <tbody>
 | 
						|
    {% for row in timetable %}
 | 
						|
      <tr>
 | 
						|
        <td class="time"><h4>{{ row.time|date:"h:iA" }}</h4></td>
 | 
						|
        {% for slot in row.slots %}
 | 
						|
          <td class="slot slot-{{ slot.kind.label }}" colspan="{{ slot.colspan }}" rowspan="{{ slot.rowspan }}">
 | 
						|
            {% if slot.kind.label == "talk" or slot.kind.label == "tutorial" %}
 | 
						|
              {% if not slot.content %}
 | 
						|
              {% else %}
 | 
						|
                <span class="title">
 | 
						|
                  <a href="{% url "schedule_presentation_detail" slot.content.pk %}">{{ slot.content.title }}</a>
 | 
						|
                </span>
 | 
						|
                <span class="speaker">
 | 
						|
                  {{ slot.content.speakers|join:", " }}
 | 
						|
                </span>
 | 
						|
                {% if slot.sessions %}
 | 
						|
                  <div>
 | 
						|
                    {% for session in slot.sessions.all %}
 | 
						|
                      {% if not session.chair %}
 | 
						|
                        <br />
 | 
						|
                        <a href="{% url "schedule_session_detail" session.id %}">Volunteer! 🙋</a>
 | 
						|
                      {% elif session.chair.user == request.user %}
 | 
						|
                        <br />
 | 
						|
                        <a href="{% url "schedule_session_detail" session.id %}">(You are session chair)</a>
 | 
						|
                      {% endif %}
 | 
						|
                      </a>
 | 
						|
                    {% endfor %}
 | 
						|
                  </div>
 | 
						|
                {% endif %}
 | 
						|
              {% endif %}
 | 
						|
            {% elif slot.kind.label == "shortbreak" %}
 | 
						|
            {% else %}
 | 
						|
              {% if slot.content_override %}
 | 
						|
                {{ slot.content_override_html|safe }}
 | 
						|
              {% else %}
 | 
						|
                {{ slot.kind.label }}
 | 
						|
              {% endif %}
 | 
						|
            {% endif %}
 | 
						|
            {% if "break" in slot.kind.label %}
 | 
						|
            {% else %}
 | 
						|
              <span class="room">
 | 
						|
                {{ slot.rooms|join:", "}}
 | 
						|
              </span>
 | 
						|
            {% endif %}
 | 
						|
          </td>
 | 
						|
        {% endfor %}
 | 
						|
        {% if forloop.last %}
 | 
						|
          <td colspan="{{ timetable.rooms|length }}"></td>
 | 
						|
        {% endif %}
 | 
						|
      </tr>
 | 
						|
    {% endfor %}
 | 
						|
  </tbody>
 | 
						|
</table>
 |