Skip to content

Commit

Permalink
Add link to mark listing as sold.
Browse files Browse the repository at this point in the history
  • Loading branch information
fatlotus committed Apr 30, 2016
1 parent 8ab6735 commit 67ea8bd
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 3 deletions.
9 changes: 8 additions & 1 deletion caravel/templates/email/inquiry.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
<td style="font: 18px Arial, sans-serif;
padding: 1em;">
Hello again!<br/><br/>
We've received a new inquiry for {{ listing.title }}:
We've received a new inquiry for
<a href="{{ url_for('show_listing', listing=listing, _external=True)
}}" style="color:#39c;">{{ listing.title }}</a>:
</td>
</tr>
<tr>
Expand All @@ -39,6 +41,11 @@
padding: 1em;">
Simply reply to this email if you'd like to get in contact.<br/>
<br/>
If you've already sold this item, visit the
<a href="{{ url_for('show_listing', listing=listing, _external=True)
}}" style="color:#39c;">listing page</a> and click the "Sold" button.
That will block future messages.<br/>
<br/>
Cheers,<br/>
The Marketplace Team
</td>
Expand Down
5 changes: 5 additions & 0 deletions caravel/templates/email/inquiry.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,10 @@ We've received a new inquiry for {{ listing.title }}:

Simply reply to this email if you'd like to get in contact.

If you've already sold this item, visit the following page, and click the
"Sold" button. That will block future messages.

{{ url_for('show_listing', listing=listing, _external=True) }}

Cheers,
The Marketplace Team
9 changes: 8 additions & 1 deletion caravel/tests/test_listings_post_inquiry_expect.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,21 @@ We've received a new inquiry for Listing ☆B:
Buyer: buyer@foo.com
message☆ goes here
Simply reply to this email if you'd like to get in contact.
If you've already sold this item, visit the following page, and click the
"Sold" button. That will block future messages.
http://localhost/listing_b
Cheers,
The Marketplace Team
---
Marketplace
Hello again!
We've received a new inquiry for Listing ☆B:
We've received a new inquiry for
Listing ☆B :
Buyer: buyer@foo.com
message☆ goes here
Simply reply to this email if you'd like to get in contact.
If you've already sold this item, visit the
listing page and click the "Sold" button.
That will block future messages.
Cheers,
The Marketplace Team
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,21 @@ We've received a new inquiry for Listing ☆B:
Buyer: visitor@uchicago.edu
message☆ goes here
Simply reply to this email if you'd like to get in contact.
If you've already sold this item, visit the following page, and click the
"Sold" button. That will block future messages.
http://localhost/listing_b
Cheers,
The Marketplace Team
---
Marketplace
Hello again!
We've received a new inquiry for Listing ☆B:
We've received a new inquiry for
Listing ☆B :
Buyer: visitor@uchicago.edu
message☆ goes here
Simply reply to this email if you'd like to get in contact.
If you've already sold this item, visit the
listing page and click the "Sold" button.
That will block future messages.
Cheers,
The Marketplace Team
Empty file.
Empty file.

0 comments on commit 67ea8bd

Please sign in to comment.