forked from ComputerScienceHouse/selections
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
108 lines (103 loc) · 4.61 KB
/
Copy pathindex.html
File metadata and controls
108 lines (103 loc) · 4.61 KB
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
{% extends 'base.html' %}
</div>
{% block body %}
<div class="container">
{% with messages = get_flashed_messages() %}
{% if messages %}
{% for message in messages %}
<div class="alert alert-info" role="alert">{{ message }}</div>
{% endfor %}
{% endif %}
{% endwith %}
{% if teammates %}
<div class="card">
<div class="card-body">
<h4 class="card-title">Selections Group</h4>
<div class="row">
{% for teammate in teammates %}
<div class="col-6 col-sm-3 col-md-3">
<img src=https://profiles.csh.rit.edu/image/{{ teammate.username }} class="img-circle"
width="60" height="60" style="display:block; margin: 20px auto 0;">
<div style="text-align:center">
{{ teammate.username }}
</div>
</div>
{% endfor %}
</div>
</div>
</div>
{% else %}
<div class="alert alert-info" role="alert">You aren't assigned a selections group.</div>
{% endif %}
{% if applications %}
<div class="card">
<div class="card-body">
<h4 class="card-title">Pending Applications</h4>
<table class="table">
<thead>
<tr>
<th scope="col">ID</th>
<th scope="col">RIT ID</th>
</tr>
</thead>
<tbody>
{% for person in applications %}
{% if not person.reviewed and person.review_count < 4%}
<tr>
<th>
<a href="/application/{{ person.id }}">
<i class="fas fa-clipboard-list"></i> {{ person.id }}
</a>
</th>
<td>{{ person.rit_id }}</td>
</tr>
{% endif %}
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endif %}
{% if info.uid in all_users %}
<div class="card">
<div class="card-body">
<h4 class="card-title">All Applications</h4>
<table class="table" style="width:100%" id="results-table">
<thead>
<tr>
<th>ID</th>
<th>RIT ID</th>
<th>Reviewers</th>
<th>Interview</th>
<th>Score</th>
</tr>
</thead>
<tbody>
{% for application in all_applications %}
<tr>
<th>
<a href="/application/review/{{ application.id }}"><i
class="fas fa-clipboard-check"></i> {{ application.id }}</a></th>
<td>{{ application.rit_id }}</td>
<td>
{% for member in reviewers[application.id] %}
<img width="25" height="25" class="img-circle"
src="https://profiles.csh.rit.edu/image/{{ member }}" data-toggle="tooltip"
data-placement="top" title="{{ member }}">
{% endfor %}
</td>
<td>
{% if evaluated[application.id] %}
<i class="fas fa-check"></i>
{% endif %}
</td>
<td>{{ averages[application.id] }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endif %}
</div>
{% endblock %}