Debian Codegraph @

templates/themes/ansi/results.tmpl

raw
1 {{with .accounts}}
2 {{- color ",,bold"}}Accounts:{{color "reset"}}
3 {{- range .}}
4 - Account ID: {{color "red"}}{{.id}}{{color "reset"}} {{color "magenta"}}@{{.username}}{{color "reset"}}
5 UID: {{color "red"}}{{.acct}}{{color "reset"}}
6 Display name: {{color "black,,bold"}}{{.display_name}}{{color "reset"}}
7 Date: {{.created_at}}
8 URL: {{color "cyan"}}{{.url}}{{color "reset"}}
9 Statuses: {{.statuses_count}}
10 Followers: {{.followers_count}}
11 Following: {{.following_count}}
12 {{- with .note}}{{if ne . "<p></p>"}}
13 Note: {{color "yellow"}}{{. | fromhtml | wrap " " 80 | trim}}{{color "reset"}}{{end}}{{end}}
14 {{- if eq .locked true}}
15 Locked: true{{end}}{{end}}{{/* of range */}}
16 {{end}}{{/* of accounts */}}
17 {{- with .statuses}}{{color ",,bold"}}Statuses:{{color "reset"}}
18 {{- range .}}
19 - Status ID: {{color "red"}}{{.id}}{{color "reset"}} {{color "magenta"}}@{{.account.acct}}{{color "reset"}}
20 Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}}
21 Date: {{.created_at}}
22 URL: {{.url}}
23 {{- if .sensitive}}
24 Sensitive: true{{end}}
25 {{- with .spoiler_text}}
26 Spoiler: {{.}}{{end}}
27 Message: {{color "blue"}}{{.content | fromhtml | wrap " " 80 | trim}}{{color "reset"}}
28 {{- range .media_attachments}}
29 - Attachment ID: {{.id}}
30 {{- if .text_url}}
31 Text URL: {{.text_url}}{{else if .url}}
32 URL: {{.url}}{{else if .remote_url}}
33 Remote URL: {{.remote_url}}{{end}}{{end}}{{end}}{{/* of range */}}{{end}}{{/* of statuses */}}
34 {{- with .hashtags}}{{color ",,bold"}}Hashtags:{{color "reset"}}
35 {{- range .}}
36 - Tag: {{.name}}{{end}}{{/* of range */}}
37 {{end}}{{/* of statuses */ -}}