diff --git a/packet/static/js/pfp-zoom.js b/packet/static/js/pfp-zoom.js new file mode 100644 index 00000000..3e80b5ff --- /dev/null +++ b/packet/static/js/pfp-zoom.js @@ -0,0 +1,36 @@ +$(document).ready(function () { + let photos = Array.from(document.querySelectorAll('.eval-user-img')) + + top.onclick = function (e) { + let tsib = e.target.previousElementSibling + if (tsib != null) { + if (tsib.classList.contains('eval-user-img')) { + return; + } + } + if (e.target.classList.contains('eval-user-img')) { + return; + } + document.querySelector('#zoom-photo').remove() + } + + photos.forEach((photo) => { + photo.addEventListener('click', (e) => { + let other = document.querySelector('#zoom-photo') + if (other != null) { + other.remove() + } + photo.insertAdjacentHTML('afterend', ` +
+ ${photo.alt} +
+ `) + e.preventDefault(); + }) + }) + +}) \ No newline at end of file diff --git a/packet/templates/active_packets.html b/packet/templates/active_packets.html index 3fa65640..d2c95e2a 100644 --- a/packet/templates/active_packets.html +++ b/packet/templates/active_packets.html @@ -111,6 +111,7 @@

Active Packets

{% block scripts %} {{ super() }} + {% if info.realm == "csh" %} {% endif %} diff --git a/packet/templates/mail/packet_start.html b/packet/templates/mail/packet_start.html index 722e5768..1fe41797 100644 --- a/packet/templates/mail/packet_start.html +++ b/packet/templates/mail/packet_start.html @@ -6,10 +6,9 @@

Hello {{ packet.freshman.name }},

Welcome to Computer Science House!

Soon you'll starting the introductory process for CSH, and the first part of that is Packet.

Your packet will start on {{ packet.start.strftime('%A, %B %-d') }} at {{ packet.start.strftime('%-I:%M %p') }}

-

You can view your packet at {{ config["PACKET_INTRO"] }} with - the credentials you should have been sent.

-

If you don't know your credentials, reach out to an RTP

-

If you have any questions about Packet or the introductory process, email evals@csh.rit.edu

-

If you have any questions about login credentials or any technical issues, email rtp@csh.rit.edu

+

You can view your packet at {{ config["PACKET_INTRO"] }} once you receive credentials.

+

If it is past the start date and you have still not received credentials, please reach out to an RTP

+

If it is past the start date and you have any questions about Packet or the introductory process, email evals@csh.rit.edu

+

If it is past the start date and you have any questions about login credentials or any technical issues, email rtp@csh.rit.edu

{% endblock %} diff --git a/packet/templates/mail/packet_start.txt b/packet/templates/mail/packet_start.txt index 162ec147..6cf1a615 100644 --- a/packet/templates/mail/packet_start.txt +++ b/packet/templates/mail/packet_start.txt @@ -6,9 +6,9 @@ Soon you'll starting the introductory process for CSH, and the first part of tha Your packet will start on {{ packet.start.strftime('%A, %B %-d') }} at {{ packet.start.strftime('%-I:%M %p') }} -You can view your packet at {{ config["PROTOCOL"] + config["PACKET_INTRO"] }} with the credentials you should have been sent. -If you don't know your credentials, reach out to an RTP +You can view your packet at {{ config["PROTOCOL"] + config["PACKET_INTRO"] }} once you receive credentials. +If it is past the start date and you don't know your credentials, reach out to an RTP -If you have any questions about Packet or the introductory process, email evals@csh.rit.edu +If it is past the start date and you have any questions about Packet or the introductory process, email evals@csh.rit.edu -If you have any questions about login credentials or any technical issues, email rtp@csh.rit.edu +If it is past the start date and you have any questions about login credentials or any technical issues, email rtp@csh.rit.edu diff --git a/packet/templates/packet.html b/packet/templates/packet.html index 5445f101..09e77d53 100644 --- a/packet/templates/packet.html +++ b/packet/templates/packet.html @@ -50,7 +50,7 @@
Total Score - {{ '%0.2f' % total_score }}%
aria-valuemax="100" style="width: {{ total_score }}%"> {% set upper_score = received.member_total / required.member_total * 100 %} -
Upperclassmen Score - {{ '%0.2f' % upper_score }}%
+
Upperclassmen + Alumni Score - {{ '%0.2f' % upper_score }}%
Upperclassmen Score - {{ '%0.2f' % upper_score }}%
{% endblock %} +{% block scripts %} + {{ super() }} + +{% endblock %} \ No newline at end of file