From 6dff6d870e60abb04e11d7448f8b6441405677af Mon Sep 17 00:00:00 2001 From: Tyler Allen Date: Sun, 24 Aug 2025 18:15:48 -0400 Subject: [PATCH 1/4] Updated Packet Start email --- packet/templates/mail/packet_start.html | 9 ++++----- packet/templates/mail/packet_start.txt | 8 ++++---- 2 files changed, 8 insertions(+), 9 deletions(-) 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 From 129daa0d8c32fade48a1c9fe6dac85491afb0b44 Mon Sep 17 00:00:00 2001 From: Ian Kopke <90466377+ikopke23@users.noreply.github.com> Date: Fri, 29 Aug 2025 12:08:12 -0400 Subject: [PATCH 2/4] Changed name of Upperclassman total Bar --- packet/templates/packet.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packet/templates/packet.html b/packet/templates/packet.html index 5445f101..ecdee427 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 }}%
Date: Fri, 29 Aug 2025 22:47:11 -0400 Subject: [PATCH 3/4] Zoom photo --- packet/static/js/active-packets.js | 36 ++++++++++++++++++++++++++++ packet/templates/active_packets.html | 1 + 2 files changed, 37 insertions(+) create mode 100644 packet/static/js/active-packets.js diff --git a/packet/static/js/active-packets.js b/packet/static/js/active-packets.js new file mode 100644 index 00000000..3e80b5ff --- /dev/null +++ b/packet/static/js/active-packets.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..62f7fe8c 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 %} From f42f65382539d4b45f940d9d25a4c2596b086abf Mon Sep 17 00:00:00 2001 From: Tyler Allen Date: Fri, 29 Aug 2025 23:03:21 -0400 Subject: [PATCH 4/4] add to packets too --- packet/static/js/{active-packets.js => pfp-zoom.js} | 0 packet/templates/active_packets.html | 2 +- packet/templates/packet.html | 4 ++++ 3 files changed, 5 insertions(+), 1 deletion(-) rename packet/static/js/{active-packets.js => pfp-zoom.js} (100%) diff --git a/packet/static/js/active-packets.js b/packet/static/js/pfp-zoom.js similarity index 100% rename from packet/static/js/active-packets.js rename to packet/static/js/pfp-zoom.js diff --git a/packet/templates/active_packets.html b/packet/templates/active_packets.html index 62f7fe8c..d2c95e2a 100644 --- a/packet/templates/active_packets.html +++ b/packet/templates/active_packets.html @@ -111,7 +111,7 @@

Active Packets

{% block scripts %} {{ super() }} - + {% if info.realm == "csh" %} {% endif %} diff --git a/packet/templates/packet.html b/packet/templates/packet.html index 5445f101..2d5a7a45 100644 --- a/packet/templates/packet.html +++ b/packet/templates/packet.html @@ -192,3 +192,7 @@
Upperclassmen Score - {{ '%0.2f' % upper_score }}%
{% endblock %} +{% block scripts %} + {{ super() }} + +{% endblock %} \ No newline at end of file