22
33{% block body %}
44 < div class ="container main ">
5- < div class ="row mobile-hide ">
6- < div class ="col-sm-10 ">
7- < h3 class ="page-title "> Active Packets</ h3 >
5+ < div class ="ml-4 ">
6+ < div class ="row justify-content-between w-100 ">
7+ < div class ="col-xs-10 ">
8+ < h4 class ="page-title "> Active Packets</ h4 >
9+ </ div >
10+ < div class ="col-xs-2 ">
11+ < select id ="sig-filter " class ="form-control ">
12+ < option > Total</ option >
13+ < option > Upperclassmen</ option >
14+ < option > Freshmen</ option >
15+ </ select >
16+ </ div >
817 </ div >
918 </ div >
1019 < div id ="eval-blocks ">
@@ -18,6 +27,10 @@ <h3 class="page-title">Active Packets</h3>
1827 < thead >
1928 < tr >
2029 < th > Name</ th >
30+ {% if info.realm == "csh" %}
31+ < th > Signatures</ th >
32+ < th > Signatures</ th >
33+ {% endif %}
2134 < th > Signatures</ th >
2235 {% if can_sign %}
2336 < th > Sign</ th >
@@ -27,7 +40,7 @@ <h3 class="page-title">Active Packets</h3>
2740 < tbody >
2841 {% for packet in packets %}
2942 < tr {% if packet.did_sign_result %}style ="background-color: #4caf505e " {% endif %} >
30- < td >
43+ < td data-priority =" 1 " >
3144 < a href ="{{ url_for('freshman_packet', packet_id=packet.id) }} ">
3245 < img class ="eval-user-img "
3346 alt ="{{ get_rit_name(packet.freshman_username) }} "
@@ -36,6 +49,22 @@ <h3 class="page-title">Active Packets</h3>
3649 height ="25 "/> {{ get_rit_name(packet.freshman_username) }}
3750 </ a >
3851 </ td >
52+ < td data-sort ="{{ packet.signatures_received_result.upper }} ">
53+ {% if packet.signatures_received_result.upper == packet.signatures_required_result.upper %}
54+ 💯 {# 100% emoji #}
55+ {% else %}
56+ {{ packet.signatures_received_result.upper }} /
57+ {{ packet.signatures_required_result.upper }}
58+ {% endif %}
59+ </ td >
60+ < td data-sort ="{{ packet.signatures_received_result.fresh }} ">
61+ {% if packet.signatures_received_result.fresh == packet.signatures_required_result.fresh %}
62+ 💯 {# 100% emoji #}
63+ {% else %}
64+ {{ packet.signatures_received_result.fresh }} /
65+ {{ packet.signatures_required_result.fresh }}
66+ {% endif %}
67+ </ td >
3968 < td data-sort ="{{ packet.signatures_received_result.total }} ">
4069 {% if packet.signatures_received_result.total == packet.signatures_required_result.total %}
4170 💯 {# 100% emoji #}
@@ -45,7 +74,7 @@ <h3 class="page-title">Active Packets</h3>
4574 {% endif %}
4675 </ td >
4776 {% if can_sign %}
48- < td class ="sign-packet " align ="right ">
77+ < td class ="sign-packet " align ="right " data-priority =" 1 " >
4978 {% if not packet.did_sign_result and info.uid != packet.freshman_username %}
5079 < button class ="btn btn-sm btn-primary sign-button "
5180 data-packet_id ="{{ packet.id }} "
0 commit comments