Update notification template
authorMikael Berthe <mikael@lilotux.net>
Mon, 01 May 2017 20:57:09 +0200
changeset 61 e29fec86e0c9
parent 60 1ca78111de77
child 62 d6d768380860
Update notification template
templates/ansi-notification.tmpl
--- a/templates/ansi-notification.tmpl	Mon May 01 20:49:13 2017 +0200
+++ b/templates/ansi-notification.tmpl	Mon May 01 20:57:09 2017 +0200
@@ -4,7 +4,7 @@
 {{- with .url}}
       URL: {{.url}}{{end}}
 {{- with .account}}
-  - Account: ({{.id|printf "%.0f"}}) @{{.acct}} - {{.display_name}}{{end}}
+  - Account: ({{.id|printf "%.0f"}}) {{color "magenta"}}@{{.acct}}{{color "reset"}}{{if .display_name}} - {{color "white,,bold"}}{{.display_name}}{{color "reset"}}{{end}}{{end}}
 {{- with .status}}
   - Status ID: {{color "red"}}{{.id|printf "%.0f"}}{{color "reset"}}  {{color "magenta"}}@{{.account.acct}}{{color "reset"}}
     Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}}