Skip to content

Commit

Permalink
Adding an Icon Alongside Each Gradeable Display
Browse files Browse the repository at this point in the history
  • Loading branch information
ryvaru committed Nov 13, 2024
1 parent 50dbc4f commit 8362f62
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions output.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -663,8 +663,9 @@ 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 = "<a href=\"" + fullUrl + "\" style=\"color:black;\">" + gradeable_name + "&nbsp;&nbsp; <i class='fas fa-external-link-alt'></i></a>";
gradeable_name = GRADEABLES[g].getCorrespondence(gradeable_id).second;
gradeable_name = gradeable_name + " <i class='fa-solid fa-arrow-up-right-from-square' style='color:blue;'></i>";
gradeable_name = "<a href=\"" + fullUrl + "\" style=\"color:black; text-decoration:none;\" title=\"View Gradeable\">" + gradeable_name + "</a>";
}

if (gradeable_name == "")
Expand Down

0 comments on commit 8362f62

Please sign in to comment.