templates/ansi-status.tmpl
author Mikael Berthe <mikael@lilotux.net>
Mon, 01 May 2017 20:48:07 +0200
changeset 59 ff88978ceb55
parent 52 2ffe0d622db9
child 76 f155f9d86832
permissions -rw-r--r--
Update templates - Force IDs to be displayed as integers - Add media attachment URLs in statuses

- Status ID: {{color "red"}}{{.id|printf "%.0f"}}{{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|printf "%.0f"}}
    Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}}
    Date: {{.created_at}}
    Message: {{color "blue"}}{{.content | fromhtml}}{{color "reset"}}
{{- range .media_attachments}}
    - Attachment ID: {{.id|printf "%.0f"}}
{{- if .text_url}}
      Text URL: {{.text_url}}{{else if .url}}
      URL: {{.url}}{{else if .remote_url}}
      Remote URL: {{.remote_url}}{{end}}{{end}}
{{end}}{{else}}
  Message: {{color "blue"}}{{.content | fromhtml}}{{color "reset"}}
{{- range .media_attachments}}
  - Attachment ID: {{.id|printf "%.0f"}}
{{- if .text_url}}
    Text URL: {{.text_url}}{{else if .url}}
    URL: {{.url}}{{else if .remote_url}}
    Remote URL: {{.remote_url}}{{end}}{{end}}
{{end -}}