From 10d30cd19c8ef6f1e6bae82cee34ff48ddfb2a09 Mon Sep 17 00:00:00 2001 From: Ryan Varughese Date: Fri, 15 Nov 2024 06:55:48 -0500 Subject: [PATCH] Adding Additional Check to Construct Link Made an extra check to see that the gradeable has actually been released to view the link to the gradeable itself, otherwise this would be useless. Also, added the blue box permanently to be displayed along with the gradeable names that have links. --- output.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/output.cpp b/output.cpp index 4adc26b..d45dd94 100644 --- a/output.cpp +++ b/output.cpp @@ -663,9 +663,13 @@ void start_table_output( bool /*for_instructor*/, std::string fullUrl = base_url + "courses/" + semester + "/" + course + "/gradeable/" + gradeable_id; if (GRADEABLES[g].hasCorrespondence(gradeable_id)) { - gradeable_name = GRADEABLES[g].getCorrespondence(gradeable_id).second; - gradeable_name = gradeable_name + " "; - gradeable_name = "" + gradeable_name + ""; + gradeable_name = GRADEABLES[g].getCorrespondence(gradeable_id).second; + bool checkReleased = GRADEABLES[g].isReleased(gradeable_id); + if(checkReleased){ + // g != GRADEABLE_ENUM::LAB ... + gradeable_name = gradeable_name + " "; + gradeable_name = "" + gradeable_name + ""; + } } if (gradeable_name == "")