templates/ansi-status.tmpl
author Mikael Berthe <mikael@lilotux.net>
Sun, 07 May 2017 21:54:50 +0200
changeset 95 4b80a5396961
parent 78 b40bc3a8b572
child 120 54b6f2a4098b
permissions -rw-r--r--
Update templates / ANSI theme

- 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}}
{{- 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: {{printf "%.0f" .in_reply_to_id}}{{end}}
{{- if .sensitive}}
  Sensitive: true{{end}}
{{- with .spoiler_text}}
    Spoiler: {{.}}{{end}}
    Message: {{color "blue"}}{{.content | fromhtml | wrap "     " 80 | trim}}{{color "reset"}}
{{- range .media_attachments}}
    - Attachment ID: {{printf "%.0f" .id}}
{{- if .text_url}}
      Text URL: {{.text_url}}{{else if .url}}
      URL: {{.url}}{{else if .remote_url}}
      Remote URL: {{.remote_url}}{{end}}{{end}}
{{end}}{{else}}
{{- if gt .in_reply_to_id 0.0}}
  Replying to: {{printf "%.0f" .in_reply_to_id}}{{end}}
{{- if .sensitive}}
  Sensitive: true{{end}}
{{- with .spoiler_text}}
  Spoiler: {{.}}{{end}}
  Message: {{color "blue"}}{{.content | fromhtml | wrap "     " 80 | trim}}{{color "reset"}}
{{- range .media_attachments}}
  - Attachment ID: {{printf "%.0f" .id}}
{{- if .text_url}}
    Text URL: {{.text_url}}{{else if .url}}
    URL: {{.url}}{{else if .remote_url}}
    Remote URL: {{.remote_url}}{{end}}{{end}}
{{end -}}