forked from sampsyo/cs6120
-
Notifications
You must be signed in to change notification settings - Fork 0
/
lessons.html
29 lines (29 loc) · 1.01 KB
/
lessons.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
{% extends "base.html" %}
{% block main %}
{{ section.content | safe }}
{% for page in section.pages | sort(attribute="extra.index") %}
{% if not page.draft %}
<article>
<h1>
<a href="{{ page.permalink }}">Lesson {{ page.slug }}:</a>
{{ page.title }}
</h1>
<ul class="compact">
<li>
<a href="https://cs6120.zulipchat.com/#narrow/stream/254742-lessons/topic/{{page.slug}}" class="icon discussion">discussion</a>
</li>
{% for video in page.extra.videos | default(value=[]) %}
<li>
<a href="{% if video.url %}{{video.url}}{% elif video.id %}https://vod.video.cornell.edu/media/{{video.id}}{% elif video.box_id %}https://cornell.box.com/s/{{video.box_id}}{% endif %}" class="icon video">{{ video.name | default(value="video") }}</a>
</li>
{% endfor %}
{% if page.extra.due %}
<li>
<a href="{{ page.permalink }}/#tasks" class="icon due">tasks</a> due <strong>{{page.extra.due}}</strong>
</li>
{% endif %}
</ul>
</article>
{% endif %}
{% endfor %}
{% endblock main %}