<div class="awards-grid">
    {% for award in awards %}
    <article class="award-tile" id="award-{{ award['slug'] }}">
        <img src="{{ award['image_url'] }}" alt="{{ award['description'] }}" title="{{ award['description'] }}" class="award-tile-image" loading="lazy">
        <div class="award-tile-desc rendered-content">{{ render_content(award['description']) }}</div>
        <div class="award-tile-meta">
            {% if award.get('giver') %}
            <a href="/profile/{{ award['giver']['username'] }}" class="award-tile-giver">
                <img src="{{ avatar_url('multiavatar', avatar_seed(award['giver']), 24) }}" class="avatar-img avatar-xs" alt="{{ award['giver']['username'] }}" loading="lazy">
                <span>@{{ award['giver']['username'] }}</span>
            </a>
            {% endif %}
            {% if award.get('generated_at') %}
            <span class="award-tile-date">{{ award_date(award['generated_at']) }}</span>
            {% endif %}
        </div>
        {% if viewer_is_admin %}
        <form method="POST" action="/admin/awards/{{ award['uid'] }}/revoke" class="award-revoke-form">
            <button type="submit"
                    class="award-revoke-btn"
                    data-confirm="Revoke this award from @{{ profile_user['username'] }}? It will disappear from their profile, media gallery, and avatar badge."
                    data-confirm-danger
                    data-confirm-title="Revoke award"
                    aria-label="Revoke award">Revoke</button>
        </form>
        {% endif %}
        {% set _type = "award" %}{% set _uid = award['uid'] %}{% set _owner = award.get('receiver_uid', '') %}{% set _owner_name = "" %}{% set _class = "award-report-btn" %}{% include "_report_button.html" %}
    </article>
    {% else %}
    <div class="empty-state">No awards yet.</div>
    {% endfor %}
</div>