Skip to content

Commit

Permalink
add bulk_add_url
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastiantf committed Jun 23, 2020
1 parent 2f60d92 commit 902f548
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/retail/emails.py
Original file line number Diff line number Diff line change
Expand Up @@ -892,9 +892,11 @@ def render_grant_txn_failed(to_email, grant, tx_id):
email_style = 27

params = {
'id': grant.id,
'grant_title': grant.title,
'tx_id': tx_id,
'tx_url': "https://etherscan.io/tx/"+tx_id,
'bulk_add_url': "https://gitcoin.co/grants/cart/bulk-add/" + str(grant.id),
'email_style': email_style,
'hide_bottom_logo': True,
}
Expand Down
2 changes: 1 addition & 1 deletion app/retail/templates/emails/grant_txn_failed.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ <h1>Grants transaction failed, try again?</h1>
</div>

<div style="margin-bottom: 3em; margin-top: 3em;">
<a class="button" href="#">{% trans "Resubmit Transaction" %}</a> <!-- TODO: Replace correct href to add the failed grant to cart -->
<a class="button" href="{{ bulk_add_url }}">{% trans "Resubmit Transaction" %}</a>
<br>
<a class="etherscan-link" href="{{ tx_url }}">View on Etherscan</a>
</div>
Expand Down

0 comments on commit 902f548

Please sign in to comment.