blob: 5b3565611848b81a99f9aed5339845b0b77fbafd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
from django import template
register = template.Library()
@register.simple_tag
def country_flag(country):
if not country:
return ''
return '<span class="fam-flag fam-flag-%s" title="%s"></span> ' % (
unicode(country.code).lower(), unicode(country.name))
# vim: set ts=4 sw=4 et:
|