{% from '_functions.html' import badge_thumbnail, pluralize with context %}
{% extends '_base.html' %}
{% block head %}
{% endblock %}
{% block body %}
Badge Info
{{ badge_thumbnail(badge, 256, 100) }}
{{ badge.name }}
{{ badge_description_html |safe }}
{% if badge.tags %}
Tagged with:
{% with tag_list = badge.tags[:-1].split(',') %}
{% for tag in tag_list %}
{{tag}}
{%- if not loop.last %},{% endif %}
{% endfor %}
{% endwith %}
{% if badge.stl %}
{% for assertion in g.oidc_user.awarded_assertions %}
{% if assertion.badge == badge %}
{% endif %}
{% endfor %}
{% endif %}
{% if user_id_admin %}
Add tags to this badge
{% endif %}
{% if badge.authorized(g.oidc_user.person) %}
Award this badge
{% endif %}
Badge Statistics
{% for assertion in g.oidc_user.awarded_assertions %}
{% if assertion.badge == badge %}
You were awarded this badge on
{% if assertion.issued_for %}
{{ assertion.issued_on.strftime("%Y-%m-%d") }}
due to this event.
{% else %}
{{ assertion.issued_on.strftime("%Y-%m-%d") }}.
{% endif %}
{% endif %}
{% endfor %}
Created on {{badge.created_on.strftime("%Y-%m-%d") }}.