-
Notifications
You must be signed in to change notification settings - Fork 2
/
assignments.ejs
62 lines (52 loc) · 2.04 KB
/
assignments.ejs
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
```{=html}
<% items.sort(function(b,a){return new Date(b.date) - new Date(a.date)}) %>
<% var currentWeek = 0 %>
<% var displayWeek = 0 %>
<% const weekdayNames = ["Su","M","T","W","Th","F","Sa"]; %>
<% var currentModule = "NA" %>
<table style="display: block; max-width: 800px;">
<% for (var i = 0; i < items.length; i++) { %>
<% if (items[i].publish == "true") {%>
<% if (items[i].type != "extra") {%>
<tr>
<td style="min-width:100px;max-width:200px;">
<b>
<%= items[i].type %>
</b>
</td>
<td style="min-width:400px">
<a href="<%- items[i].path %>">
<%= items[i].title %>
</a>
</td>
<td style="text-align: right; max-width: 150;min-width: 150px;">
Best By:
</td>
<td style="max-width: 100px;min-width: 100px;padding-left:0em;">
<%= items[i].date %>
</td>
</tr>
<tr>
<td class="smaller" colspan="4">
<%= items[i].description %>
</td>
</tr>
<% } %>
<tr>
<td class="smaller syllabus-item-objective" colspan="3">
<% if (items[i].objectives) { %>
<b>Learning Objectives: </b>
<!-- <b>Learning Objectives</b><br> -->
<% for (var j = 0; j < items[i].objectives.length; j++) { %>
<%=items[i].objectives[j]%>
<% if (j < items[i].objectives.length-1) { %>
|
<% } %>
<% } %>
<% } %>
<% } %>
</td>
</tr>
<% } %>
</table>
```