{% extends "base.html.jinja" %}
{% from "components/timestamp.html.jinja" import timeago as ts %}
{% block content %}
{# Avatar placeholder #}
{{ profile.username[:1] | upper }}
{{ profile.username }}
{% if profile.created_at %}
Member since
{{ ts(profile.created_at) }}
{% endif %}
{{ heatmap.total }} contribution{{ 's' if heatmap.total != 1 else '' }} in the last year
{% if heatmap.weeks | length > 0 %}
{# Month labels #}
{% set ns = namespace(last_col=-2) %}
{% for m in heatmap.month_labels %}
{% set gap = m.col - ns.last_col %}
{{ m.label }}
{% set ns.last_col = m.col %}
{% endfor %}
{# Day-of-week labels #}
MonWedFri
{# Grid of weeks #}
{% for week in heatmap.weeks %}
{% for day in week %}
{% if day.in_range %}
{% if day.count > 0 %}
{% else %}
{% endif %}
{% else %}
{% endif %}
{% endfor %}