From cbe8d2d9d98cd3ace0eb9212e9401db64ab42de7 Mon Sep 17 00:00:00 2001
From: Faris Ansari
Date: Sun, 27 Aug 2017 14:10:34 +0530
Subject: [PATCH] minor
---
foundation/erpnext_foundation/doctype/bounty/bounty.py | 3 ++-
.../doctype/bounty/templates/bounty.html | 8 +++-----
2 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/foundation/erpnext_foundation/doctype/bounty/bounty.py b/foundation/erpnext_foundation/doctype/bounty/bounty.py
index 97c13221..203634e2 100644
--- a/foundation/erpnext_foundation/doctype/bounty/bounty.py
+++ b/foundation/erpnext_foundation/doctype/bounty/bounty.py
@@ -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
diff --git a/foundation/erpnext_foundation/doctype/bounty/templates/bounty.html b/foundation/erpnext_foundation/doctype/bounty/templates/bounty.html
index 64428bdf..1f78a014 100644
--- a/foundation/erpnext_foundation/doctype/bounty/templates/bounty.html
+++ b/foundation/erpnext_foundation/doctype/bounty/templates/bounty.html
@@ -45,11 +45,9 @@
{{ no_of_backers }}
- (
- {% for backer in paid_backers %}
- {{ backer.full_name }},
- {% endfor %}
- )
+ {% if paid_backers %}
+ ({{ paid_backers }})
+ {% endif %}
{% if doc.github_issue %}