# HG changeset patch # User Mikael Berthe # Date 1500109212 -7200 # Node ID 1e9e5e3ae30c203d61d5c5ec36d3aa7e418d7720 # Parent 3118ab97c8dfd6db6ccbcc36517b976ae2027ab3 Add private message information to templates for notifications as well Thanks to @wxl. diff -r 3118ab97c8df -r 1e9e5e3ae30c templates/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}} diff -r 3118ab97c8df -r 1e9e5e3ae30c templates/themes/ansi-dark/notification.tmpl --- 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}} diff -r 3118ab97c8df -r 1e9e5e3ae30c templates/themes/ansi/notification.tmpl --- 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}}