Hide download for deleted refused emails
This commit is contained in:
parent
71a9fc38a9
commit
e21e27eefa
|
@ -27,9 +27,12 @@
|
||||||
Sent {{ refused_email.created_at | dt }}
|
Sent {{ refused_email.created_at | dt }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{% if refused_email.deleted %}
|
||||||
<a href="{{ refused_email.get_url() }}" class="mt-4">View →</a>
|
Email deleted {{ refused_email.deleted_at | dt }}
|
||||||
<div class="small-text">This will download a ".eml" file that you can open in your favorite email client</div>
|
{% else %}
|
||||||
|
<a href="{{ refused_email.get_url() }}" class="mt-4">Download →</a>
|
||||||
|
<div class="small-text">This will download a ".eml" file that you can open in your favorite email client</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
2
cron.py
2
cron.py
|
@ -189,7 +189,7 @@ if __name__ == "__main__":
|
||||||
"notify_trial_end",
|
"notify_trial_end",
|
||||||
"notify_manual_subscription_end",
|
"notify_manual_subscription_end",
|
||||||
"notify_premium_end",
|
"notify_premium_end",
|
||||||
"delete_refused_emails"
|
"delete_refused_emails",
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
Loading…
Reference in New Issue