-
Notifications
You must be signed in to change notification settings - Fork 16
/
seminars.html
128 lines (122 loc) · 4.42 KB
/
seminars.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
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
---
layout: default
---
<div class="container" id="joinus-container">
<p>
Subscribe to the PurPL mailing
list <a href="https://service.purdue.edu/TDClient/32/Purdue/KB/ArticleDet?ID=515">following
these instructions</a> for up-to-date announcements on our weekly seminar series.
</p>
<h1 style="margin-left:-50pt">Upcoming Seminars</h1>
<div style="overflow-x:auto;">
<table id="seminar-schedule" style="margin-bottom:20pt">
{% assign curDate = site.time | date: '%s' | minus: 86400 | date:'%s' %}
{% for post in site.seminars %}
{% assign postStartDate = post.date | date: '%s' %}
{% if postStartDate >= curDate%}
<tr {% if post.invited %} class="invited" {% endif %}>
<td style="width: 11%">
<time datetime="{{ post.date | date: " %Y"}}">
{{ post.date | date: "%b %d" }}
</time>
</td>
<td style="width: 30%">
{{ post.speaker }} {% if post.invited %}*{% endif %}
</td>
<td style="width: 38%">
{% if post.link_abstract %}
<a class="post-link" href="{{ post.url }}">
{{ post.title }}
</a>
{% else %}
{{ post.title }}
{% endif %}
</td>
<td style="width: 21%">
{{ post.location }}
{% if post.vc_link %}
(<a href="{{ post.vc_link }}">join</a>)
{% endif %}
</td>
</tr>
{% endif %}
{% endfor %}
</table>
</div>
<!-- <div class="seminar-footer">* Invited Talk</div> -->
<h1 style="margin-left:-50pt">Past Seminars</h1>
<table id="seminar-schedule">
{% assign curDate = site.time | date: '%s' | minus: 86400 | date:'%s' %}
{% for post in site.seminars reversed %}
{% assign postStartDate = post.date | date: '%s' %}
{% assign postYear = post.date | date: '%Y' | to_integer %}
{% assign postMonth = post.date | date: '%m' | to_integer %}
{% assign lastYear = site.time | date: '%Y' | minus: 1 %}
{% assign month = site.time | date: '%m' | to_integer %}
{% if month < 8 %} {% assign startMonth=0 %} {% assign endMonth=7 %} {% else %} {% assign startMonth=8 %} {% assign
endMonth=12 %} {% endif %} {% if postStartDate < curDate and postYear> lastYear and postMonth > startMonth and
postMonth <= endMonth %} <tr {% if post.invited %} class="invited" {% endif %}>
<td style="width: 11%">
<time datetime="{{ post.date | date: " %Y"}}">
{{ post.date | date: "%b %d" }}
</time>
</td>
<td style="width: 30%">
{{ post.speaker }}
</td>
<td style="width: 38%">
{% if post.link_abstract %}
<a class="post-link" href="{{ post.url }}">
{{ post.title }}
</a>
{% else %}
{{ post.title }}
{% endif %}
</td>
<td style="width: 21%">
{{ post.location }}
</td>
</tr>
{% endif %}
{% endfor %}
</table>
</div>
<div class="container" id="joinus-container">
<img id="table-collapse-img" src="assets/maximize.webp" onclick='show(1);' alt="show-table" class="center">
<table id="seminar-schedule-old" style="display:table">
{% assign curDate = site.time | date: '%s' %}
{% for post in site.seminars reversed %}
{% assign postStartDate = post.date | date: '%s' %}
{% assign postYear = post.date | date: '%Y' | to_integer %}
{% assign postMonth = post.date | date: '%m' | to_integer %}
{% assign lastYear = site.time | date: '%Y' | minus: 1 %}
{% assign pastYear = site.time | date: '%Y' | minus: 2 %}
{% assign month = site.time | date: '%m' | to_integer %}
{% if month < 8 %} {% assign startMonth=0 %} {% assign endMonth=7 %} {% else %} {% assign startMonth=8 %} {% assign
endMonth=12 %} {% endif %} {% if postYear <=lastYear or postMonth < startMonth %} <tr {% if post.invited %}
class="invited" {% endif %}>
<td style="width: 16%">
<time datetime="{{ post.date | date: " %Y"}}">
{{ post.date | date: "'%y %b %d" }}
</time>
</td>
<td style="width: 30%">
{{ post.speaker }}
</td>
<td style="width: 38%">
{% if post.link_abstract %}
<a class="post-link" href="{{ post.url }}">
{{ post.title }}
</a>
{% else %}
{{ post.title }}
{% endif %}
</td>
<td style="width: 21%">
{{ post.location }}
</td>
</tr>
{% endif %}
{% endfor %}
</table>
</div>