This commit is contained in:
Faris Ansari
2017-08-27 14:10:34 +05:30
parent ddbc915572
commit cbe8d2d9d9
2 changed files with 5 additions and 6 deletions

View File

@@ -25,8 +25,9 @@ class Bounty(WebsiteGenerator):
bounty_left = self.goal * 0.1
context.no_cache = True
context.no_breadcrumbs = False
context.days_to_go = date_diff(self.end_date, nowdate())
context.paid_backers = paid_backers
context.paid_backers = ", ".join([backer.full_name or backer.user for backer in paid_backers])
context.no_of_backers = no_of_backers
context.fmt_money = fmt_money
context.bounty_left = bounty_left

View File

@@ -45,11 +45,9 @@
</p>
<p class="lead">
<span>{{ no_of_backers }}</span>
(
{% for backer in paid_backers %}
<span class="small">{{ backer.full_name }}</span>,
{% endfor %}
)
{% if paid_backers %}
<span class="small">({{ paid_backers }})</span>
{% endif %}
</p>
{% if doc.github_issue %}
<p>