Skip to content

Commit

Permalink
Updated reserved email to be more scalable
Browse files Browse the repository at this point in the history
  • Loading branch information
vince0656 committed Aug 28, 2019
1 parent 647b4b6 commit e4dc0e8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
10 changes: 8 additions & 2 deletions app/retail/templates/emails/reserved_issue.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,14 @@ <h1>{% trans "Reserved Issue" %}</h1>
<div style="text-align: left! important">
<p>{% trans "Hello" %} @{{ user.handle }},</p>
<p>
{% trans "Good news! An "%} <a href="{{ bounty.url }}">{% trans "issue" %}</a>. {% trans " has been reserved for you on gitcoin. "%}
{% trans "Please start working on the issue, in the next 72 hours, before it is opened up for other bounty hunters to try as well." %}
{% trans "Good news! An "%} <a href="{{ bounty.url }}">{% trans "issue" %}</a> {% trans " has been reserved for you on gitcoin. "%}
{% if bounty.total_reserved_length_label == "indefinitely" %}
{% trans "Please start working on the issue and release it to the public if you cannot commit to the work." %}
{% else %}
{% blocktrans with total_reserved_length_label=bounty.total_reserved_length_label %}
Please start working on the issue, within the next {{ total_reserved_length_label }}, before it is opened up for other bounty hunters to try as well.
{% endblocktrans %}
{% endif %}
</p>
<br>
{% include 'emails/bounty.html' with bounty=bounty %}
Expand Down
9 changes: 8 additions & 1 deletion app/retail/templates/emails/reserved_issue.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
{% load i18n %}
{% trans "Good news! An issue has been reserved for you on gitcoin. Please start working on the issue, in the next 72 hours, before it is opened up for other bounty hunters to try as well. " %}
{% trans "Good news! An issue has been reserved for you on gitcoin. " %}
{% if bounty.total_reserved_length_label == "indefinitely" %}
{% trans "Please start working on the issue and release it to the public if you cannot commit to the work." %}
{% else %}
{% blocktrans with total_reserved_length_label=bounty.total_reserved_length_label %}
Please start working on the issue, within the next {{ total_reserved_length_label }}, before it is opened up for other bounty hunters to try as well.
{% endblocktrans %}
{% endif %}
{% include 'emails/bounty.txt' with bounty=bounty %}
{% trans "As always, if you have questions, please reach out to the project owner!" %}

0 comments on commit e4dc0e8

Please sign in to comment.