templates/ansi-status.tmpl
author Mikael Berthe <mikael@lilotux.net>
Mon, 01 May 2017 13:06:31 +0200
changeset 52 2ffe0d622db9
parent 23 2ba1ea451669
child 59 ff88978ceb55
permissions -rw-r--r--
Use the color function in the ANSI templates

- Status ID: {{color "red"}}{{.id}}{{color "reset"}}  {{color "magenta"}}@{{.account.acct}}{{color "reset"}}
  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: {{.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"}}
{{end -}}