Skip to content

Commit 25709c2

Browse files
committed
Moving can_sign
1 parent 98e7a4d commit 25709c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packet/templates/active_packets.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ <h3 class="page-title">Active Packets</h3>
99
</div>
1010
<div id="eval-blocks">
1111
{% if packets|length > 0 %}
12+
{% set can_sign = info.onfloor or info.realm == "csh" %}
1213
<div id="eval-table">
1314
<div class="card">
1415
<div class="card-body table-fill">
@@ -18,14 +19,13 @@ <h3 class="page-title">Active Packets</h3>
1819
<tr>
1920
<th>Name</th>
2021
<th>Signatures</th>
21-
{% if info.onfloor or info.realm == "csh" %}
22+
{% if can_sign %}
2223
<th>Sign</th>
2324
{% endif %}
2425
</tr>
2526
</thead>
2627
<tbody>
2728
{% for packet in packets %}
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 }}">

0 commit comments

Comments
 (0)