Skip to content

Commit 98e7a4d

Browse files
committed
Fixing if statement
1 parent 18ad657 commit 98e7a4d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packet/templates/active_packets.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ <h3 class="page-title">Active Packets</h3>
1818
<tr>
1919
<th>Name</th>
2020
<th>Signatures</th>
21-
{% if can_sign %}
21+
{% if info.onfloor or info.realm == "csh" %}
2222
<th>Sign</th>
2323
{% endif %}
2424
</tr>
2525
</thead>
2626
<tbody>
2727
{% for packet in packets %}
28-
{% set can_sign = (info.onfloor and info.uid != packet.rit_username) or info.realm == "csh" %}
28+
{% set can_sign = info.onfloor or info.realm == "csh" %}
2929
<tr {% if packet.did_sign %}style="background-color: #4caf505e" {% endif %}>
3030
<td>
3131
<a href="/packet/{{ packet.rit_username }}">
@@ -47,13 +47,13 @@ <h3 class="page-title">Active Packets</h3>
4747
</td>
4848
{% if can_sign %}
4949
<td class="sign-packet" align="right">
50-
{% if not packet.did_sign %}
50+
{% if not packet.did_sign and info.uid != packet.rit_username %}
5151
<button class="btn btn-sm btn-primary sign-button"
5252
data-freshman_uid="{{ packet.rit_username }}"
5353
data-freshman_name="{{ packet.name }}">
5454
Sign
5555
</button>
56-
{% else %}
56+
{% elif info.uid != packet.rit_username %}
5757
<button class="btn btn-sm btn-primary signed-button"
5858
disabled="disabled"><i
5959
class="fa fa-check"></i>&nbsp;Signed

0 commit comments

Comments
 (0)