templates/ansi-notification.tmpl
changeset 78 b40bc3a8b572
parent 76 f155f9d86832
child 99 a179dc99a044
--- a/templates/ansi-notification.tmpl	Sat May 06 20:25:23 2017 +0200
+++ b/templates/ansi-notification.tmpl	Sat May 06 20:26:12 2017 +0200
@@ -10,16 +10,24 @@
     Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}}
     Date: {{.created_at}}
     URL: {{.url}}
-{{- if gt .in_reply_to_id 0.0}}
-    Replying to: {{.in_reply_to_id}}{{end}}
-{{- with .spoiler_text}}
-    Spoiler: {{.}}{{end}}
 {{- if .reblog }}{{with .reblog}}
     {{color ",,bold"}}Reblogged from: {{color "magenta"}}@{{.account.acct}}{{color "reset"}}
       ID: {{printf "%.0f" .id}}
       Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}}
       Date: {{.created_at}}
+{{- if gt .in_reply_to_id 0.0}}
+      Replying to: {{.in_reply_to_id}}{{end}}
+{{- if .sensitive}}
+      Sensitive: true{{end}}
+{{- with .spoiler_text}}
+      Spoiler: {{.}}{{end}}
       Message: {{color "blue"}}{{.content | fromhtml}}{{color "reset"}}{{end}}{{else}}
+{{- if gt .in_reply_to_id 0.0}}
+    Replying to: {{.in_reply_to_id}}{{end}}
+{{- if .sensitive}}
+  Sensitive: true{{end}}
+{{- with .spoiler_text}}
+    Spoiler: {{.}}{{end}}
     Message: {{color "blue"}}{{.content | fromhtml}}{{color "reset"}}
 {{- range .media_attachments}}
     - Attachment ID: {{printf "%.0f" .id}}