templates/ansi-notification.tmpl
changeset 76 f155f9d86832
parent 61 e29fec86e0c9
child 78 b40bc3a8b572
--- a/templates/ansi-notification.tmpl	Sat May 06 19:44:48 2017 +0200
+++ b/templates/ansi-notification.tmpl	Sat May 06 19:52:39 2017 +0200
@@ -1,12 +1,12 @@
-- Notification ID: {{color "red"}}{{.id|printf "%.0f"}}{{color "reset"}}
+- Notification ID: {{color "red"}}{{printf "%.0f" .id}}{{color "reset"}}
   Type: {{color ",,bold"}}{{.type}}{{color "reset"}}
   Timestamp: {{.created_at}}
 {{- with .url}}
       URL: {{.url}}{{end}}
 {{- with .account}}
-  - Account: ({{.id|printf "%.0f"}}) {{color "magenta"}}@{{.acct}}{{color "reset"}}{{if .display_name}} - {{color "white,,bold"}}{{.display_name}}{{color "reset"}}{{end}}{{end}}
+  - Account: ({{printf "%.0f" .id}}) {{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"}}
+  - Status ID: {{color "red"}}{{printf "%.0f" .id}}{{color "reset"}}  {{color "magenta"}}@{{.account.acct}}{{color "reset"}}
     Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}}
     Date: {{.created_at}}
     URL: {{.url}}
@@ -16,13 +16,13 @@
     Spoiler: {{.}}{{end}}
 {{- if .reblog }}{{with .reblog}}
     {{color ",,bold"}}Reblogged from: {{color "magenta"}}@{{.account.acct}}{{color "reset"}}
-      ID: {{.id|printf "%.0f"}}
+      ID: {{printf "%.0f" .id}}
       Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}}
       Date: {{.created_at}}
       Message: {{color "blue"}}{{.content | fromhtml}}{{color "reset"}}{{end}}{{else}}
     Message: {{color "blue"}}{{.content | fromhtml}}{{color "reset"}}
 {{- range .media_attachments}}
-    - Attachment ID: {{.id|printf "%.0f"}}
+    - Attachment ID: {{printf "%.0f" .id}}
 {{- if .text_url}}
       Text URL: {{.text_url}}{{else if .url}}
       URL: {{.url}}{{else if .remote_url}}