X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/8d1372958ce4a205f11fcdd44cf6e9cac8429a69..357027375ff8867f42ca34bcbfb5a78b5b185fc3:/apps/funding/templatetags/funding_tags.py diff --git a/apps/funding/templatetags/funding_tags.py b/apps/funding/templatetags/funding_tags.py deleted file mode 100755 index c533672b5..000000000 --- a/apps/funding/templatetags/funding_tags.py +++ /dev/null @@ -1,17 +0,0 @@ -from django import template -from ..models import Offer - -register = template.Library() - - -@register.inclusion_tag("funding/tags/funding.html") -def funding(offer=None, link=False, add_class=""): - if offer is None: - offer = Offer.current() - - return { - 'offer': offer, - 'percentage': 100 * offer.sum() / offer.target, - 'link': link, - 'add_class': add_class, - }