Skip to content

Commit ec62aa5

Browse files
committed
Fixing data
1 parent 71e011b commit ec62aa5

File tree

1 file changed

+34
-34
lines changed

1 file changed

+34
-34
lines changed

packet/templates/active_packets.html

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{% extends "extend/base.html" %}
22

3-
{% set can_sign = (info.onfloor and info.uid != packet.freshman.rit_username) or info.realm == "csh" %}
3+
{% set can_sign = (info.onfloor and info.uid != packet.rit_username) or info.realm == "csh" %}
44

55
{% block body %}
66
<div class="container main">
@@ -27,42 +27,42 @@ <h3 class="page-title">Active Packets</h3>
2727
</thead>
2828
<tbody>
2929
{% for packet in packets %}
30-
<tr {% if packet.did_sign %}style="background-color: #4caf505e" {% endif %}>
31-
<td>
32-
<a href="/packet/{{ packet.freshman.rit_username }}">
33-
<img class="eval-user-img"
34-
alt="{{ packet.freshman.name }}"
35-
src="https://www.gravatar.com/avatar/freshmen?d=mp&f=y"
36-
width="25"
37-
height="25"/> {{ packet.freshman.name }}
38-
({{ packet.freshman.rit_username }})
39-
</a>
40-
</td>
41-
<td data-sort="{{ packet.total_signatures }}">
42-
{% if packet.total_signatures == packet.required_signatures %}
43-
💯 {# 100% emoji #}
30+
<tr {% if packet.did_sign %}style="background-color: #4caf505e" {% endif %}>
31+
<td>
32+
<a href="/packet/{{ packet.rit_username }}">
33+
<img class="eval-user-img"
34+
alt="{{ packet.name }}"
35+
src="https://www.gravatar.com/avatar/freshmen?d=mp&f=y"
36+
width="25"
37+
height="25"/> {{ packet.name }}
38+
({{ packet.rit_username }})
39+
</a>
40+
</td>
41+
<td data-sort="{{ packet.total_signatures }}">
42+
{% if packet.total_signatures == packet.required_signatures %}
43+
💯 {# 100% emoji #}
44+
{% else %}
45+
{{ packet.total_signatures }}/
46+
{{ packet.required_signatures }}
47+
{% endif %}
48+
</td>
49+
{% if can_sign %}
50+
<td class="sign-packet" align="right">
51+
{% if not packet.did_sign %}
52+
<button class="btn btn-sm btn-primary sign-button"
53+
data-freshman_uid="{{ packet.rit_username }}"
54+
data-freshman_name="{{ packet.name }}">
55+
Sign
56+
</button>
4457
{% else %}
45-
{{ packet.total_signatures }}/
46-
{{ packet.required_signatures }}
58+
<button class="btn btn-sm btn-primary signed-button"
59+
disabled="disabled"><i
60+
class="fa fa-check"></i>&nbsp;Signed
61+
</button>
4762
{% endif %}
4863
</td>
49-
{% if can_sign %}
50-
<td class="sign-packet" align="right">
51-
{% if not packet.did_sign %}
52-
<button class="btn btn-sm btn-primary sign-button"
53-
data-freshman_uid="{{ packet.freshman.rit_username }}"
54-
data-freshman_name="{{ packet.freshman.name }}">
55-
Sign
56-
</button>
57-
{% else %}
58-
<button class="btn btn-sm btn-primary signed-button"
59-
disabled="disabled"><i
60-
class="fa fa-check"></i>&nbsp;Signed
61-
</button>
62-
{% endif %}
63-
</td>
64-
{% endif %}
65-
</tr>
64+
{% endif %}
65+
</tr>
6666
{% endfor %}
6767
</tbody>
6868
</table>

0 commit comments

Comments
 (0)