templates/ansi-account.tmpl
author Mikael Berthe <mikael@lilotux.net>
Mon, 01 May 2017 12:25:43 +0200
changeset 49 d6b4e3b7c6c6
parent 23 2ba1ea451669
child 52 2ffe0d622db9
permissions -rw-r--r--
Add ANSI color support to templates (function "color")

- Account ID: {{"\x1b[31m"}}{{.id}}{{"\x1b[0m"}}  {{"\x1b[35m"}}@{{.username}}{{"\x1b[0m"}}
  UID: {{"\x1b[31m"}}{{.acct}}{{"\x1b[0m"}}
  Display name: {{"\x1b[1m"}}{{.display_name}}{{"\x1b[0m"}}
  Date: {{.created_at}}
  URL: {{"\x1b[36m"}}{{.url}}{{"\x1b[0m"}}
  Statuses: {{.statuses_count}}
  Followers: {{.followers_count}}
  Following: {{.following_count}}
{{- with .note}}
  Note: {{. | fromhtml}}{{end}}
{{- if eq .locked true}}
  Locked: true{{end}}