Skip to content

Commit

Permalink
refresh the page every 30 seconds if status is "sent"
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustavo-SF committed Oct 1, 2024
1 parent cbbda1b commit f2def52
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions portal/portal/templates/academy/common/unit_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,14 @@ <h5>Description:</h5>
</div>
</div>
{% endblock content %}

{% block extra_js %}
{% if grade.status == "sent" %}
<script>
// Refresh the page every 30 seconds (30000 milliseconds)
setTimeout(function(){
location.reload();
}, 30000);
</script>
{% endif %}
{% endblock %}

0 comments on commit f2def52

Please sign in to comment.