feat: emails on messages
This commit is contained in:
12
community/templates/emails/lms_daily_digest.html
Normal file
12
community/templates/emails/lms_daily_digest.html
Normal file
@@ -0,0 +1,12 @@
|
||||
{% for batch in batches %}
|
||||
<h3> {{ batch }}</h3>
|
||||
<div>
|
||||
{% for message in batches[batch] %}
|
||||
<div style="border: 1px solid #DBDBDB;padding: 10px; margin: 10px;">
|
||||
<p> {{ frappe.utils.md_to_html(message.message) }} </p>
|
||||
<p class="text-right">By {{message.author}}</p>
|
||||
<div class="small text-muted text-right">{{ frappe.utils.format_datetime(message.creation, "medium") }}</div>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
13
community/templates/emails/lms_message.html
Normal file
13
community/templates/emails/lms_message.html
Normal file
@@ -0,0 +1,13 @@
|
||||
<!-- <div style="border: 1px solid #DBDBDB; padding-bottom: 10px;">
|
||||
<h6 style="padding-left: 10px;">{{ author }}</h6>
|
||||
<hr style="border: 1px solid #DBDBDB;">
|
||||
<div style="padding: 10px;">
|
||||
{{ message }}
|
||||
<div class="small text-muted text-right">{{ creation }}</div>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<p> {{ message }} </p>
|
||||
<p class="text-right">By {{author}}</p>
|
||||
<div class="small text-muted text-right">{{ creation }}</div>
|
||||
<a href="courses/course?course={{course}}">Open Course</a>
|
||||
Reference in New Issue
Block a user