templates/themes/ansi-dark/results.tmpl
author Mikael Berthe <mikael@lilotux.net>
Sat, 21 Oct 2017 19:12:11 +0200
changeset 172 0d651f070319
parent 134 a057c44144a4
child 229 d4c099a67c86
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)

{{with .accounts}}
{{- color ",,bold"}}Accounts:{{color "reset"}}
{{- range .}}
  - Account ID: {{color "red"}}{{.id}}{{color "reset"}}  {{color "magenta"}}@{{.username}}{{color "reset"}}
    UID: {{color "red"}}{{.acct}}{{color "reset"}}
    Display name: {{color "white,,bold"}}{{.display_name}}{{color "reset"}}
    Date: {{.created_at}}
    URL: {{color "cyan"}}{{.url}}{{color "reset"}}
    Statuses: {{.statuses_count}}
    Followers: {{.followers_count}}
    Following: {{.following_count}}
  {{- with .note}}{{if ne . "<p></p>"}}
    Note: {{color "yellow"}}{{. | fromhtml | wrap "     " 80 | trim}}{{color "reset"}}{{end}}{{end}}
  {{- if eq .locked true}}
    Locked: true{{end}}{{end}}{{/* of range */}}
{{end}}{{/* of accounts */}}
{{- with .statuses}}{{color ",,bold"}}Statuses:{{color "reset"}}
{{- range .}}
  - 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 .sensitive}}
    Sensitive: true{{end}}
{{- with .spoiler_text}}
    Spoiler: {{.}}{{end}}
    Message: {{color "blue"}}{{.content | fromhtml | wrap "     " 80 | 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}}{{/* of range */}}{{end}}{{/* of statuses */}}
{{- with .hashtags}}{{color ",,bold"}}Hashtags:{{color "reset"}}
{{- range .}}
  - {{.}}{{end}}{{/* of range */}}
{{end}}{{/* of statuses */ -}}