Git-Repository für bestehenden archivdms-Code initialisiert, Branch-/Commit-Konvention (feature/<ticket>-<slug>-Branches, Ticket-Prefix in Commit-Nachricht) etabliert.
21 lines
783 B
Go
21 lines
783 B
Go
package mailer
|
|
|
|
import "fmt"
|
|
|
|
// ReminderDueTemplate renders subject/HTML/text bodies for a reminder
|
|
// ("Wiedervorlage") that has reached its due date. Used by the
|
|
// `archivdms reminders notify` cron subcommand.
|
|
func ReminderDueTemplate(documentTitle, note, dueDate, appURL string) (subject, html, text string) {
|
|
subject = fmt.Sprintf("Wiedervorlage fällig: %s", documentTitle)
|
|
|
|
html = fmt.Sprintf(`<p>Eine Wiedervorlage ist fällig:</p>
|
|
<p><strong>Dokument:</strong> %s<br>
|
|
<strong>Fällig am:</strong> %s</p>
|
|
<p>%s</p>
|
|
<p><a href="%s">Zum Dokument</a></p>`, documentTitle, dueDate, note, appURL)
|
|
|
|
text = fmt.Sprintf("Eine Wiedervorlage ist fällig:\nDokument: %s\nFällig am: %s\n%s\n\nZum Dokument: %s",
|
|
documentTitle, dueDate, note, appURL)
|
|
return subject, html, text
|
|
}
|