templates/ansi-status.tmpl
author convert-repo
Fri, 05 May 2017 21:55:09 +0000
changeset 69 7217174c217a
parent 59 ff88978ceb55
child 76 f155f9d86832
permissions -rw-r--r--
update tags

- 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 -}}