From 6a43c847cdebd930730c444b609ee2523226f0f8 Mon Sep 17 00:00:00 2001 From: Shreyas Jain Date: Mon, 7 Oct 2024 23:56:26 -0400 Subject: [PATCH] Always show star icon on published submissions (#85) --- tin/templates/submissions/repr.html | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tin/templates/submissions/repr.html b/tin/templates/submissions/repr.html index 34ada815..4d76e07e 100644 --- a/tin/templates/submissions/repr.html +++ b/tin/templates/submissions/repr.html @@ -5,12 +5,10 @@ {% else %} {{ submission.points | floatformat:"-3" }} / {{ submission.points_possible | floatformat:"-3" }} ({{ submission.grade_percent_num | floatformat:"-2" }}%) {% if submission.is_published %} - {% if submission.comments.count <= 0 or request.user.is_teacher or request.user.is_superuser %} - {% if submission.is_latest_publish %} - - {% else %} - - {% endif %} + {% if submission.is_latest_publish %} + + {% else %} + {% endif %} {% endif %} {% if submission.last_run %}