Skip to content

Commit

Permalink
show no daily action (#6937)
Browse files Browse the repository at this point in the history
* daily action in different timezone

* no daily action
  • Loading branch information
molecula451 authored Jun 22, 2020
1 parent 0537d9c commit c7544bd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/marketing/mails.py
Original file line number Diff line number Diff line change
Expand Up @@ -1228,6 +1228,8 @@ def new_bounty_daily(bounties, old_bounties, to_emails=None):
has_offer = is_email_townsquare_enabled(to_emails[0]) and is_there_an_action_available()
if has_offer:
offers = f"⚡️ 1 New Action"
else:
offers = ""

new_bounties = ""
if bounties:
Expand Down
5 changes: 5 additions & 0 deletions app/retail/templates/emails/new_bounty.html
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,11 @@ <h3 class="no-subtitle" style="margin-top: 15px;">{% trans "🌈1 New Daily Acti
</a>

<HR>
{% else %}
<h3 class="no-subtitle" style="margin-top: 15px;">{% trans "🌈0 New Daily Action" %}</h3>
<a href={{base_url}}>
<img style="width: 306px; height: 80px; margin-top: 5px; margin-bottom: 5px;" src={{base_url}}static/v2/images/offer.gif>
</a>
{% endif %}

{% if bounties %}
Expand Down

0 comments on commit c7544bd

Please sign in to comment.