FDN-01: repository & projektgerüst
Git-Repository für bestehenden archivdms-Code initialisiert, Branch-/Commit-Konvention (feature/<ticket>-<slug>-Branches, Ticket-Prefix in Commit-Nachricht) etabliert.
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user