{% load static %}

Leaderboard

{% if days == 7 %}Last 7 Days{% else %}Last 30 Days{% endif %} · Top {{ top_n }} Contributors

{% for entry in leaderboard %}
{# Mobile layout #}
{% if forloop.counter0 == 0 %}🥇{% elif forloop.counter0 == 1 %}🥈{% elif forloop.counter0 == 2 %}🥉{% else %}🏅{% endif %}
#{{ forloop.counter }}
{% with name=entry.user.get_full_name|default:entry.user.username %}
{{ name|make_list|first|upper }}
{% endwith %}

{{ entry.user.get_full_name|default:entry.user.username }}

Total Score: {{ entry.score|floatformat:0 }}

{{ entry.tickets_created }}

Tickets

{{ entry.status_changes }}

Updates

{{ entry.comments_made }}

Comments

{{ entry.active_days }}

Active Days

{# Desktop layout #}
{% empty %}
🏆

No Contributors Found

No user activity found for the selected time period.

{% endfor %}

📊 Scoring System

How contribution scores are calculated

📐 Score Calculation Formula:

Total Score = (Status Changes × 5) + (Tickets Created × 2) + (Comments Made × 2) + (Active Days × 1)