1. cartwheel
  2. django-badges

Source

django-badges / badges / templates / badges / badge.html

{% comment %}
	This is the html for displaying an individual badge on the site. It expects that
	you will pass it a badge object called "badge".

	Here is an example:
	<div class="badges">
		{% for badge in user_profile.user.badges.all %}
			{% include "badges/badge.html" %}
		{% endfor %}
	</div>

{% endcomment %}

<a href="{{ badge.get_absolute_url }}" title="{{ badge.title }} ({{ badge.get_level_display }}): {{ badge.description }}">
	<span class="level_{{ badge.level}} metal"></span> {{ badge.title }}
</a>