-
Notifications
You must be signed in to change notification settings - Fork 0
/
01-calendar.html
88 lines (85 loc) · 2.97 KB
/
01-calendar.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
---
layout: default
title: Calendar
permalink: calendar/
author: Ben Stolovitz
---
{% include nav.html %}
<section class="site-content site-content--full">
<p>This is the course calendar. May change.</p>
<table class="calendar">
<thead class="calendar__head">
<tr>
<th class="calendar__colhead calendar__item--right">#</th>
<th class="calendar__colhead calendar__item--left">Module</th>
<th class="calendar__colhead">Date</th>
<th class="calendar__colhead">Logistics</th>
<th class="calendar__colhead">Preparation</th>
<th class="calendar__colhead">Assigned</th>
<th class="calendar__colhead">Due</th>
</tr>
</thead>
<tfoot class="calendar__foot">
<tr>
<th class="calendar__colfoot calendar__item--right">#</th>
<th class="calendar__colfoot calendar__item--left">Module</th>
<th class="calendar__colfoot">Date</th>
<th class="calendar__colfoot">Logistics</th>
<th class="calendar__colfoot">Preparation</th>
<th class="calendar__colfoot">Assigned</th>
<th class="calendar__colfoot">Due</th>
</tr>
</tfoot>
<tbody>
{% for week in site.weeks %}
{% for day in week.days %}
<tr class="calendar__row">
{% if forloop.first %}
<td rowspan="{{ week.days | size }}" class="calendar__item calendar__item--right">{{ week.week }}</td>
<td rowspan="{{ week.days | size }}" class="calendar__item calendar__item--left">
<a href="{{ site.baseurl }}{{ week.url }}">{{ week.title }}</a>
</td>
{% endif %}
{% if day.date == "TBD" %}
<td class="calendar__item"><small>{{ day.date }}</small></td>
{% else %}
<td class="calendar__item">{{ day.date | date: "%a, %b %-d" }}</td>
{% endif %}
<td class="calendar__item">{{ day.logistics }}</td>
<td class="calendar__item">{{ day.preparation }}</td>
<td class="calendar__item">
{% for studio in site.studios %}
{% if studio.assigned == day.date %}
<a href="{{ site.baseurl }}{{ studio.url }}">Studio {{ studio.week }}</a>
{% endif %}
{% endfor %}
{% for assignment in site.assignments %}
{% if assignment.assigned == day.date %}
<a href="{{ site.baseurl }}{{ assignment.url }}">Assignment {{ assignment.week }}</a>
{% endif %}
{% endfor %}
{% for assigned in day.assigned %}
{{ assigned }}
{% endfor %}
</td>
<td class="calendar__item">
{% for studio in site.studios %}
{% if studio.due == day.date %}
<a href="{{ site.baseurl }}{{ studio.url }}">Studio {{ studio.week }}</a>
{% endif %}
{% endfor %}
{% for assignment in site.assignments %}
{% if assignment.due == day.date %}
<a href="{{ site.baseurl }}{{ assignment.url }}">Assignment {{ assignment.week }}</a>
{% endif %}
{% endfor %}
{% for due in day.due %}
{{ due }}
{% endfor %}
</td>
</tr>
{% endfor %}
{% endfor %}
</tbody>
</table>
</section>