Skip to content

Commit be775e7

Browse files
committed
Add alternative word based schedule
Easier for analog syllabus reviews to copy to other formats. May also have some accessibility benefits.
1 parent fd7393e commit be775e7

File tree

2 files changed

+135
-0
lines changed

2 files changed

+135
-0
lines changed

_includes/assignments-words.html

+111
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
<table>
2+
3+
<tr>
4+
<th width="50">Week</th>
5+
<th width="300">Topic</th>
6+
<th width="50">Reading</th>
7+
<th width="50">Lesson</th>
8+
<th width="50">Lecture</th>
9+
<th width="50">Assignment</th>
10+
</tr>
11+
12+
{% for assignment in page.assignments %}
13+
14+
{% for otherpage in site.pages %}
15+
{% if otherpage.title == assignment and otherpage.element == 'assignment' %}
16+
{% capture language %}{{ otherpage.language }}{% endcapture %}
17+
{% capture assignment_link %}{{ otherpage.url | prepend: site.baseurl }}{% endcapture %}
18+
{% break %}
19+
{% endif %}
20+
{% assign language = nil %}
21+
{% assign assignment_link = nil %}
22+
{% endfor %}
23+
24+
{% for lecturepage in site.pages %}
25+
{% if language %}
26+
{% if lecturepage.title == assignment and lecturepage.element == 'lecture' and lecturepage.language == language %}
27+
{% capture lecture_link %}{{ lecturepage.url | prepend: site.baseurl }}{% endcapture %}
28+
{% break %}
29+
{% endif %}
30+
{% else %}
31+
{% if lecturepage.title == assignment and lecturepage.element == 'lecture' %}
32+
{% capture language %}{{ lecturepage.language }}{% endcapture %}
33+
{% capture lecture_link %}{{ lecturepage.url | prepend: site.baseurl }}{% endcapture %}
34+
{% break %}
35+
{% endif %}
36+
{% endif %}
37+
{% assign lecture_link = nil %}
38+
{% endfor %}
39+
40+
{% for readingpage in site.pages %}
41+
{% if language %}
42+
{% if readingpage.title == assignment and readingpage.element == 'reading' and readingpage.language == language %}
43+
{% capture reading_link %}{{ readingpage.url | prepend: site.baseurl }}{% endcapture %}
44+
{% break %}
45+
{% endif %}
46+
{% else %}
47+
{% if readingpage.title == assignment and readingpage.element == 'reading' %}
48+
{% capture language %}{{ readingpage.language }}{% endcapture %}
49+
{% capture reading_link %}{{ readingpage.url | prepend: site.baseurl }}{% endcapture %}
50+
{% break %}
51+
{% endif %}
52+
{% endif %}
53+
{% assign reading_link = nil %}
54+
{% endfor %}
55+
56+
{% for lessonpage in site.pages %}
57+
{% if language %}
58+
{% if lessonpage.title == assignment and lessonpage.element == 'lesson' and lessonpage.language == language %}
59+
{% capture lesson_link %}{{ lessonpage.url | prepend: site.baseurl }}{% endcapture %}
60+
{% break %}
61+
{% endif %}
62+
{% else %}
63+
{% if lessonpage.title == assignment and lessonpage.element == 'lesson' %}
64+
{% capture language %}{{ lessonpage.language }}{% endcapture %}
65+
{% capture lesson_link %}{{ lessonpage.url | prepend: site.baseurl }}{% endcapture %}
66+
{% break %}
67+
{% endif %}
68+
{% endif %}
69+
{% assign lesson_link = nil %}
70+
{% endfor %}
71+
72+
<tr>
73+
<td align="right">{{ forloop.index }}</td>
74+
<td>{{ assignment }}</td>
75+
76+
{% if reading_link %}
77+
<td align="center"><a href="{{ reading_link }}">
78+
Week {{ forloop.index }} Readings</a></td>
79+
{% else %}
80+
<td align="center"><font color="f1f1f1">
81+
<i class="fa fa-book fa-lg"></i></font></td>
82+
{% endif %}
83+
84+
{% if lesson_link %}
85+
<td align="center"><a href="{{ lesson_link }}">
86+
Week {{ forloop.index }} Videos</a></td>
87+
{% else %}
88+
<td align="center"><font color="f1f1f1">
89+
<i class="fa fa-play-circle fa-lg"></i></font></td>
90+
{% endif %}
91+
92+
{% if lecture_link %}
93+
<td align="center"><a href="{{ lecture_link }}">
94+
Week {{ forloop.index }} Notes</a></td>
95+
{% else %}
96+
<td align="center"><font color="f1f1f1">
97+
<i class="fa fa-comment fa-lg"></i></font></td>
98+
{% endif %}
99+
100+
{% if assignment_link %}
101+
<td align="center"><a href="{{ assignment_link }}">
102+
Week {{ forloop.index }} Assignment</a></td>
103+
{% else %}
104+
<td align="center"><font color="f1f1f1">
105+
<i class="fa fa-keyboard-o fa-lg"></i></font></td>
106+
{% endif %}
107+
</tr>
108+
109+
{% endfor %}
110+
111+
</table>

schedule-words.md

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
layout: page
3+
title: Assignment Schedule
4+
assignments: ['Data Entry and Storage', 'Introduction to R and RStudio',
5+
'Data in Tables', 'Grouping & Joining Data', 'Data Visualization',
6+
'Review + Reproducibility', 'Spatial Data 1', 'Spatial Data 2',
7+
'Functions', 'Making Choices', 'Repeating Things 1', 'Repeating Things 2',
8+
'Cleaning Messy Data', 'Working with Databases', 'Knitr']
9+
---
10+
11+
[Assignment submission & checklist]({{ site.baseurl }}/materials/turn-in-checklist)
12+
13+
{% include assignments-words.html %}
14+
15+
The above assignments are for this specific version of the course, but other
16+
assignments are available as well. You can see the full list of
17+
[assignments]({{ site.baseurl }}/assignments/), which may be useful if you're using this material
18+
outside of an organized course.
19+
20+
<!-- Schedule Management
21+
- Update the `assignments:` list with `title:` from `assignments/` files.
22+
- Add 'Template' to `assignments:` to view the course template from `docs/`.
23+
- The remaining content should be left AS IS.
24+
-->

0 commit comments

Comments
 (0)