| 
									
										
										
										
											2012-09-20 22:02:02 -04:00
										 |  |  | <table class="table table-bordered table-condensed"> | 
					
						
							|  |  |  |     <tr> | 
					
						
							|  |  |  |         <th> </th> | 
					
						
							|  |  |  |         {% for room in timetable.rooms %} | 
					
						
							|  |  |  |             <th>{{ room.name }}</th> | 
					
						
							|  |  |  |         {% endfor %} | 
					
						
							|  |  |  |     </tr> | 
					
						
							|  |  |  |     {% for row in timetable %} | 
					
						
							|  |  |  |         <tr> | 
					
						
							|  |  |  |             <td class="time">{{ row.time|date:"h:iA" }}</td> | 
					
						
							|  |  |  |             {% for slot in row.slots %} | 
					
						
							|  |  |  |                 <td class="slot slot-{{ slot.kind.label }}" colspan="{{ slot.colspan }}" rowspan="{{ slow.rowspan }}"> | 
					
						
							|  |  |  |                     {% if slot.kind.label == "talk" %} | 
					
						
							|  |  |  |                         {% if not slot.content %} | 
					
						
							|  |  |  |                             <a class="btn btn-mini edit-slot" data-action="{% url schedule_slot_edit schedule.section.slug slot.pk %}" href="#">+</a> | 
					
						
							|  |  |  |                         {% else %} | 
					
						
							|  |  |  |                             <div class="title"><a class="edit-slot" data-action="{% url schedule_slot_edit schedule.section.slug slot.pk %}" href="#">{{ slot.content.title }}</a></div> | 
					
						
							|  |  |  |                             <div class="speaker">{{ slot.content.speaker }}</div> | 
					
						
							|  |  |  |                         {% endif %} | 
					
						
							|  |  |  |                     {% else %} | 
					
						
							| 
									
										
										
										
											2012-10-26 16:01:01 -06:00
										 |  |  |                         {% if slot.content_override.raw %} | 
					
						
							|  |  |  |                             {{ slot.content_override.rendered|safe }} | 
					
						
							| 
									
										
										
										
											2012-10-24 23:21:20 -06:00
										 |  |  |                         {% else %} | 
					
						
							|  |  |  |                             {{ slot.kind.label }} | 
					
						
							|  |  |  |                         {% endif %} | 
					
						
							| 
									
										
										
										
											2012-10-26 15:32:03 -06:00
										 |  |  |                         — <a class="edit-slot" data-action="{% url schedule_slot_edit schedule.section.slug slot.pk %}" href="#">edit</a> | 
					
						
							| 
									
										
										
										
											2012-09-20 22:02:02 -04:00
										 |  |  |                     {% endif %} | 
					
						
							|  |  |  |                 </td> | 
					
						
							|  |  |  |             {% endfor %} | 
					
						
							|  |  |  |         </tr> | 
					
						
							|  |  |  |     {% endfor %} | 
					
						
							|  |  |  | </table> |