Add private message information to templates for notifications as well
authorMikael Berthe <mikael@lilotux.net>
Sat, 15 Jul 2017 11:00:12 +0200
changeset 163 1e9e5e3ae30c
parent 162 3118ab97c8df
child 164 5bcecd848240
Add private message information to templates for notifications as well Thanks to @wxl.
templates/ansi-notification.tmpl
templates/themes/ansi-dark/notification.tmpl
templates/themes/ansi/notification.tmpl
--- a/templates/ansi-notification.tmpl	Fri Jul 14 21:57:09 2017 +0200
+++ b/templates/ansi-notification.tmpl	Sat Jul 15 11:00:12 2017 +0200
@@ -8,6 +8,8 @@
 {{- with .status}}
   - Status ID: {{color "red"}}{{printf "%.0f" .id}}{{color "reset"}}  {{color "magenta"}}@{{.account.acct}}{{color "reset"}}
     Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}}
+{{- if eq .visibility "private"}}
+    Private: true{{end}}
     Date: {{.created_at | tolocal}}
     URL: {{.url}}
 {{- if .reblog }}{{with .reblog}}
--- a/templates/themes/ansi-dark/notification.tmpl	Fri Jul 14 21:57:09 2017 +0200
+++ b/templates/themes/ansi-dark/notification.tmpl	Sat Jul 15 11:00:12 2017 +0200
@@ -8,6 +8,8 @@
 {{- with .status}}
   - Status ID: {{color "red"}}{{printf "%.0f" .id}}{{color "reset"}}  {{color "magenta"}}@{{.account.acct}}{{color "reset"}}
     Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}}
+{{- if eq .visibility "private"}}
+    Private: true{{end}}
     Date: {{.created_at | tolocal}}
     URL: {{.url}}
 {{- if .reblog }}{{with .reblog}}
--- a/templates/themes/ansi/notification.tmpl	Fri Jul 14 21:57:09 2017 +0200
+++ b/templates/themes/ansi/notification.tmpl	Sat Jul 15 11:00:12 2017 +0200
@@ -8,6 +8,8 @@
 {{- with .status}}
   - Status ID: {{color "red"}}{{printf "%.0f" .id}}{{color "reset"}}  {{color "magenta"}}@{{.account.acct}}{{color "reset"}}
     Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}}
+{{- if eq .visibility "private"}}
+    Private: true{{end}}
     Date: {{.created_at | tolocal}}
     URL: {{.url}}
 {{- if .reblog }}{{with .reblog}}