Send mail message when cron has hit.

This commit is contained in:
James Cole
2018-06-25 16:01:45 +02:00
parent 89f8f9b45b
commit 7591f3fa29
8 changed files with 261 additions and 5 deletions

View File

@@ -0,0 +1,32 @@
{% include 'emails.header-html' %}
<p style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;">
{% if journals.count == 1 %}
Firefly III has created a transaction for you.
{% endif %}
{% if journals.count > 1 %}
Firefly III has created {{ journals.count }} transactions for you.
{% endif %}
</p>
{% if journals.count == 1 %}
<p style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;">
You can find in in your Firefly III installation:
{% for journal in journals %}
<a href="{{ route('transactions.show', journal.id) }}">{{ journal.description }}</a>
{% endfor %}
</p>
{% endif %}
{% if journals.count > 1 %}
<p style="font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;font-size:13px;">
You can find them in your Firefly III installation:
</p>
<ul>
{% for journal in journals %}
<li><a href="{{ route('transactions.show', journal.id) }}">{{ journal.description }}</a></li>
{% endfor %}
</ul>
{% endif %}
{% include 'emails.footer-html' %}

View File

@@ -0,0 +1,25 @@
{% include 'emails.header-text' %}
{% if journals.count == 1 %}
Firefly III has created a transaction for you.
{% endif %}
{% if journals.count > 1 %}
Firefly III has created {{ journals.count }} transactions for you.
{% endif %}
{% if journals.count == 1 %}
You can find in in your Firefly III installation:
{% for journal in journals %}
{{ journal.description }}: {{ route('transactions.show', journal.id) }}
{% endfor %}
{% endif %}
{% if journals.count > 1 %}
You can find them in your Firefly III installation:
{% for journal in journals %}
- {{ journal.description }}: {{ route('transactions.show', journal.id) }}
{% endfor %}
{% endif %}
{% include 'emails.footer-text' %}