-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.jinja2
134 lines (129 loc) · 5.87 KB
/
index.jinja2
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
---
warning:
- DO NOT MODIFY index.html DIRECTLY!
- index.html is AUTOGENERATED!
- The schedule content is defined in /code/admin/planning/Schedule.ipynb
- The HTML template driver is in index.jinja2
title: Introduction to Programming
author:
- Kris Jordan
- Ezri White
- Claire Helms
page: home
template: home
---
<div class="link-page pt-4">
{# Two Main Columns #}
<div class="row">
<!-- Horizon Box/Column -->
<div class="col-lg-4 col-md-12 col-md-1 order-lg-3 pt-5">
<div class="horizon-box mb-3">
<h3 class="header text-center pt-2">On The Horizon</h3>
{%- if horizoninfo|length > 0 -%}
<ul class="list-unstyled d-flex px-sm-5 px-md-5 px-lg-0 flex-wrap justify-content-center justify-content-md-between justify-content-lg-center align-items-center">
{%- for plan in horizoninfo -%}
<li class="horizon-item">
{%- if plan.links != {} -%}
{%- for link in plan.links -%}
<a href="{{ plan.links[link] }}">{{ plan.descriptor }}</a>
{%- endfor -%}
{%- endif -%}
{%- if plan.links == {} -%}
<span>{{ plan.descriptor }}</span>
{%- endif -%}
</li>
{%- endfor -%}
</ul>
{%- endif -%}
</div>
{# Button to bring page to the past section of itinerary #}
<div class="past-link">
<a href="#past">
<div class="past-btn">
<div class="text-center align-middle past-text">Past Lectures <span class="down-arrow">↓</span></div>
</div>
</a>
</div>
</div>
<!-- Agenda Box/Column -->
<div class="col-lg-8 col-md-12 order-sm-2 order-lg-1 itinerary-col itinerary">
<div>
<!-- Allows us to smooth scroll to This Week and Coming Up section -->
<div id="latest" class="pb-3"></div>
<br>
<!-- Current Week and Future -->
<h3 class="header">This Week and Coming Up</h3></div>
{%- for date in future -%}
{%- if future[date]|length > 0 -%}
<div data-type="lecture" data-date="{{ date }}" class="row itinerary-row py-2">
<div class="date col-md-2">{{ date.strftime('%a, %b %d').replace(" 0", " ") }}</div>
<div class="plans col-md-9">
{%- for plan in syllabus[date] -%}
<div class="plan {{ plan.kind.value }}">
<span class="kind">{{ plan.kind.name }}{{ "%02d"|format(plan.n) }}</span>
{%- if plan.links|length > 0 -%}
{%- if plan.links|length == 1 and plan.links[''] -%}
<span class="title"><a href="{{ plan.links[''] }}">{{ plan.title }}</a></span>
{%- else -%}
<span class="title">{{ plan.title }}</span>
<ul class="links">
{%- for link in plan.links -%}
{% if plan.links[link] != "" %}
<li class="link"><a href="{{ plan.links[link] }}">{{ link }}</a></li>
{% else %}
<li class="link">{{ link }}</li>
{% endif %}
{%- endfor -%}
</ul>
{%- endif -%}
{%- else -%}
<span class="title">{{ plan.title }}</span>
{%- endif -%}
</div>
{%- endfor -%}
</div>
</div>
{%- endif -%}
{%- endfor -%}
<!-- The Past section -->
{%- if past|length %}
<div id='past' class="pb-2"></div>
<hr>
<h3 class="header pt-3">The Past</h3>
{%- for date in past|reverse -%}
{%- if past[date]|length > 0 -%}
<div data-type="lecture" data-date="{{ date }}" class="row itinerary-row py-2">
<div class="date col-md-2">{{ date.strftime('%a, %b %d').replace(" 0", " ") }}</div>
<div class="plans col-md-9">
{%- for plan in syllabus[date] -%}
<div class="plan {{ plan.kind.value }}">
<span class="kind">{{ plan.kind.name }}{{ "%02d"|format(plan.n) }}</span>
{%- if plan.links|length > 0 -%}
{%- if plan.links|length == 1 and plan.links[''] -%}
<span class="title"><a href="{{ plan.links[''] }}">{{ plan.title }}</a></span>
{%- else -%}
<span class="title">{{ plan.title }}</span>
<ul class="links">
{%- for link in plan.links -%}
{% if plan.links[link] != "" %}
<li class="link"><a href="{{ plan.links[link] }}">{{ link }}</a></li>
{% else %}
<li class="link">{{ link }}</li>
{% endif %}
{%- endfor -%}
</ul>
{%- endif -%}
{%- else -%}
<span class="title">{{ plan.title }}</span>
{%- endif -%}
</div>
{%- endfor -%}
</div>
</div>
{%- endif -%}
{%- endfor -%}
{% else %}
{# Past Is Empty, so doesn't show up #}
{%- endif -%}
</div>
</div>