templates/ansi-account.tmpl
author Mikael Berthe <mikael@lilotux.net>
Sat, 06 May 2017 19:52:39 +0200
changeset 76 f155f9d86832
parent 59 ff88978ceb55
child 99 a179dc99a044
permissions -rw-r--r--
Fix in_reply_to ID format in templates The default format for numbers in templates is double, so we have to explicitly set the format string. BTW, replace ".var | printf FMT" with "printf FMT .var"... It is slightly more readable.

- Account ID: {{color "red"}}{{printf "%.0f" .id}}{{color "reset"}}  {{color "magenta"}}@{{.username}}{{color "reset"}}
  UID: {{color "red"}}{{.acct}}{{color "reset"}}
  Display name: {{color "white,,bold"}}{{.display_name}}{{color "reset"}}
  Date: {{.created_at}}
  URL: {{color "cyan"}}{{.url}}{{color "reset"}}
  Statuses: {{.statuses_count}}
  Followers: {{.followers_count}}
  Following: {{.following_count}}
{{- with .note}}{{if ne . "<p></p>"}}
  Note: {{. | fromhtml}}{{end}}{{end}}
{{- if eq .locked true}}
  Locked: true{{end}}