diff options
author | Robin Jarry <robin@jarry.cc> | 2023-03-03 17:37:05 +0100 |
---|---|---|
committer | Robin Jarry <robin@jarry.cc> | 2023-03-08 00:42:56 +0100 |
commit | 35040bec9962cac3c92039fac85a4068e148b0a0 (patch) | |
tree | ca33752e9ad3d00894468ae489497d3d168faeee /models | |
parent | 159ad244ee23d69f2491b139fd4384c7620b83c2 (diff) | |
download | aerc-35040bec9962cac3c92039fac85a4068e148b0a0.tar.gz |
templates: separate thread prefix from subject
Extract {{.ThreadPrefix}} from {{.Subject}} so that the prefix can be
styled in a different color.
Signed-off-by: Robin Jarry <robin@jarry.cc>
Acked-by: Tim Culverhouse <tim@timculverhouse.com>
Diffstat (limited to 'models')
-rw-r--r-- | models/templates.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/models/templates.go b/models/templates.go index 916b3974..5ee516ac 100644 --- a/models/templates.go +++ b/models/templates.go @@ -19,6 +19,7 @@ type TemplateData interface { Date() time.Time DateAutoFormat(date time.Time) string Header(name string) string + ThreadPrefix() string Subject() string Number() int Labels() []string |