Skip to content

Commit dfe6f1b

Browse files
Use same leaderboard display logic in dashboard as course page
Only show leaderboard button when course.first_homework_scored is True 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 77e86a7 commit dfe6f1b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

courses/templates/courses/dashboard.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,11 @@ <h1 class="mb-4">
1414

1515
<!-- Navigation Links -->
1616
<div class="mb-4">
17+
{% if course.first_homework_scored %}
1718
<a href="{% url 'leaderboard' course.slug %}" class="btn btn-primary">
1819
<i class="fas fa-trophy"></i> View Leaderboard
1920
</a>
21+
{% endif %}
2022
</div>
2123

2224
<!-- Total Enrollment -->

0 commit comments

Comments
 (0)