diff --git a/foundation/erpnext_foundation/doctype/bounty/bounty.py b/foundation/erpnext_foundation/doctype/bounty/bounty.py index 9e2b8d6b..423c5114 100644 --- a/foundation/erpnext_foundation/doctype/bounty/bounty.py +++ b/foundation/erpnext_foundation/doctype/bounty/bounty.py @@ -37,6 +37,7 @@ class Bounty(WebsiteGenerator): context.comment_list = get_comment_list(self.doctype, self.name) context.can_edit = can_edit + def validate(self): from frappe.utils.user import get_user_fullname @@ -70,14 +71,14 @@ def get_list_context(context): context.introduction = '''
{{doc.description}}
+Created by {{doc.owner}}
diff --git a/foundation/erpnext_foundation/doctype/bounty/templates/bounty_row.html b/foundation/erpnext_foundation/doctype/bounty/templates/bounty_row.html index 04b90e94..94fc47de 100644 --- a/foundation/erpnext_foundation/doctype/bounty/templates/bounty_row.html +++ b/foundation/erpnext_foundation/doctype/bounty/templates/bounty_row.html @@ -13,19 +13,18 @@
{{ fmt_money(doc.goal, currency="USD") }} {% if comments %} - {{ comments }} + {{ comments }} {% endif %} - {% set paid_backers = get_paid_backers(doc.bounty_backer) %} {% if paid_backers|len > 0 %} - - {{ paid_backers|len }} - {% if paid_backers|len > 1 %} - Backers - {% else %} - Backer - {% endif %} - + + {{ paid_backers|len }} + {% if paid_backers|len > 1 %} + Backers + {% else %} + Backer + {% endif %} + {% endif %}
{{ html2text(doc.description[:200]) }}{% if doc.description|len > 200 %}...{% endif %}