templates/themes/ansi/status.tmpl
author Mikael Berthe <mikael@lilotux.net>
Sat, 21 Oct 2017 19:12:11 +0200
changeset 172 0d651f070319
parent 169 26a1f0e705c9
child 195 1c655ba64ecf
permissions -rw-r--r--
Update types to reflect Mastodon 2.0.0 API changes This patch requires madon v2.0.0(-dev). (Fixes issue #9)

- Status ID: {{color "red"}}{{.id}}{{color "reset"}}  {{color "magenta"}}@{{.account.acct}}{{color "reset"}}
  Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}}
  Visibility: {{.visibility}}
  Date: {{.created_at | tolocal}}
  URL: {{.url}}
{{- 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 | tolocal}}
{{- if .in_reply_to_id}}
    Replying to: {{.in_reply_to_id}}{{end}}
{{- if .sensitive}}
  Sensitive: true{{end}}
{{- with .spoiler_text}}
    Spoiler: {{.}}{{end}}
    Message: {{color "blue"}}{{.content | fromhtml | wrap "       " 79 | trim}}{{color "reset"}}
{{- range .media_attachments}}
    - Attachment ID: {{.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 .in_reply_to_id}}
  Replying to: {{.in_reply_to_id}}{{end}}
{{- if .sensitive}}
  Sensitive: true{{end}}
{{- with .spoiler_text}}
  Spoiler: {{.}}{{end}}
  Message: {{color "blue"}}{{.content | fromhtml | wrap "     " 79 | trim}}{{color "reset"}}
{{- range .media_attachments}}
  - Attachment ID: {{.id}}
{{- if .text_url}}
    Text URL: {{.text_url}}{{else if .url}}
    URL: {{.url}}{{else if .remote_url}}
    Remote URL: {{.remote_url}}{{end}}{{end}}
{{end -}}