diff --git a/core/templates/base.html b/core/templates/base.html index f00b4c1c..472d3697 100644 --- a/core/templates/base.html +++ b/core/templates/base.html @@ -116,8 +116,9 @@
Links
diff --git a/core/templates/donors.html b/core/templates/donors.html new file mode 100644 index 00000000..b1fd7216 --- /dev/null +++ b/core/templates/donors.html @@ -0,0 +1,78 @@ +{% extends 'base.html' %} +{% load static %} +{% block title %}Apoiadores - Brasil.IO{% endblock %} +{% load thumbnail %} +{% load endswith %} +{% block head %} +{{ block.super }} + + + +{% endblock %} + +{% block content %} +
+

Doadores

+
+ +
+

+ A lista abaixo é de pessoas que apoiam nossa campanha pela plataforma Apoia.se de + financiamento coletivo. + Colabore você também clicando aqui. +

+
+
+ {% for donor in donors %} +
+ + + {% if donor.image|endswith:"?d=mp" %} + + {% else %} + {% thumbnail donor.image "170x170" as im %} + + {% endthumbnail %} + {% endif %} + +
{{ donor.name }}
+
+ {% endfor %} +
+ +
+ {% if donors.has_next %} + + {% endif %} +
+
+ + +{% endblock %} \ No newline at end of file diff --git a/core/templatetags/endswith.py b/core/templatetags/endswith.py new file mode 100644 index 00000000..33a97d27 --- /dev/null +++ b/core/templatetags/endswith.py @@ -0,0 +1,9 @@ +from django import template +from django.template.defaultfilters import stringfilter + +register = template.Library() + +@register.filter(name="endswith") +@stringfilter +def endswith(value, suffix): + return value.endswith(suffix) \ No newline at end of file