aboutsummaryrefslogtreecommitdiff
path: root/templates/index.html
blob: 81c03a71e61358de5e48fbdc5a7ee93115a3a305 (plain) (blame)
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Peer Pao</title>
<link rel="stylesheet" href="/static/style.css" />
</head>
<body>
	<header>
		<div class="header-content">
			<div class="header-left">
				<h1><a href="/"><img src="/static/peer-pao-white.png" title="Peer Pao"> Peer Pao</a></h1>
			</div>
			<div class="header-right">
				<p><a href="/login">{{lfmu[0]}}, {{lfmu[1]}} {{lfmu[2]}}</a></p>
			</div>
		</div>
	</header>
<div class="content">
	{% if snotes %}
	<div id="snotes">
	{% for snote in snotes %}
	{{ snote }}<br />
	{% endfor %}
	</div>
	{% endif %}
	<p>
	Your calendar URL is <input size="43" type="text" style="font-family: monospace;" readonly value="https://powermentor.andrewyu.org/{{username}}.ics" />.<br />Please subscribe to this URL with your calendar program and set it to update approximately every 5 minutes, if you want to see your mentoring meetings in your calendar. There is a <a href="https://ykpaoschool-my.sharepoint.com/:v:/g/personal/s22537_ykpaoschool_cn/Ecz7v90-01BCqjIGv0RCMlgBYUJlVc-OcdszEUAbg6J7UA">video guide</a>; do note that I was wrong when I said that you could use Outlook calendar to subscribe to your Peer Pao Calendar. You can't. You must use Apple Calendar or some other program that supports subscribing to Internet ICS URLs.
	</p>
	<h2>
		Meetings as mentee:
	</h2>
	<p>
		<a href="/register">Register for a meeting...</a>
	</p>
	{% if meetings_as_mentee %}
			<table>
			<tr>
				<th scope="col">Mentor</th>
				<th scope="col">Start</th>
				<th scope="col">Actions</th>
			</tr>
			{% for i in meetings_as_mentee %}
				<tr>
					<td>{{ i[1][0] }}, {{ i[1][1] }} {{ i[1][2] }}</td>
					<td>{{ i[2] }}</td>
					<td>
						<a href="/meeting/{{ i[0] }}">
						View
						</a>
					</td>
				</tr>
			{% endfor %}
			</table>
	{% else %}
		You have no meetings as mentee.
	{% endif %}
	<h2>
		Meetings as mentor:
	</h2>
	{% if subjects %}
	<p>
	You are registered for teaching these subjects (<a href="/expertise">change them?</a>):
	</p>
	<ul>
		{% for s in subjects %}
		<li>{{ s }}</li>
		{% endfor %}
	</ul>
	{% else %}
	<p>
	You are not registered to teach any subjects. Perhaps <a href="/expertise">modify</a>?
	</p>
	{% endif %}
	<p>
		<a href="/enlist">Enlist your time...</a>
	</p>
	{% if meetings_as_mentor %}
			<table>
			<tr>
				<th scope="col">Mentee</th>
				<th scope="col">Start</th>
				<th scope="col">Actions</th>
			</tr>
			{% for i in meetings_as_mentor %}
				<tr>
					<td>{{ i[1][0] }}, {{ i[1][1] }} {{ i[1][2] }}</td>
					<td>{{ i[2] }}</td>
					<td>
						<a href="/meeting/{{ i[0] }}">
						View
						</a>
					</td>
				</tr>
			{% endfor %}
			</table>
	{% else %}
		You have no meetings as mentor.
	{% endif %}
</div>
</body>
</html>