/
who.html
53 lines (51 loc) · 1.02 KB
/
who.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
---
layout: clean
title: Reading for COMP90042
picture: matrix
---
<div class="page-header">
<h3>COMP90042: Who</h3>
</div>
<p>
Coloured by person
</p>
<table border="2" class="icon-fixed-width" align="center" style="width: 100%;" cellpadding="3">
<tbody>
<tr>
<td>Date</td>
<td>Topic</td>
<td>Who</td>
</tr>
{% for lect in site.lectures %}
<tr>
{% if lect.who contains 'daniel' %}
{% assign colour = "#FF0000" %}
{% elsif lect.who contains 'trevor' %}
{% assign colour = "#00AA00" %}
{% elsif lect.who contains 'tutors' %}
{% assign colour = "#500050" %}
{% else %}
{% assign colour = "#0000FF" %}
{% endif %}
<td>
<font color={{colour}}>
{{ lect.date | date: "%a %-d/%-m" }}
</font>
</td>
<td>
<font color={{colour}}>
<i>{{ lect.title }}</i>
{% for matter in lect.materials %}
<br> {{ matter }}
{% endfor %}
</font>
</td>
<td>
<font color={{colour}}>
{{ lect.who }}
</font>
</td>
</tr>
{% endfor %}
</tbody>
</table>