Debian Codegraph @

templates/themes/ansi/context.tmpl

raw
1 - Context:
2 Ancestors:
3 {{- range .ancestors}}
4 - Status ID: {{color "red"}}{{.id}}{{color "reset"}} {{color "magenta"}}@{{.account.acct}}{{color "reset"}}
5 Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}}
6 Date: {{.created_at}}
7 URL: {{.url}}
8 {{- if .sensitive}}
9 Sensitive: true{{end}}
10 {{- with .spoiler_text}}
11 Spoiler: {{.}}{{end}}
12 Message: {{color "blue"}}{{.content | fromhtml | wrap " " 80 | trim}}{{color "reset"}}
13 {{- range .media_attachments}}
14 - Attachment ID: {{.id}}
15 {{- if .text_url}}
16 Text URL: {{.text_url}}{{else if .url}}
17 URL: {{.url}}{{else if .remote_url}}
18 Remote URL: {{.remote_url}}{{end}}{{end}}{{end}}
19 Descendants:
20 {{- range .descendants}}
21 - Status ID: {{color "red"}}{{.id}}{{color "reset"}} {{color "magenta"}}@{{.account.acct}}{{color "reset"}}
22 Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}}
23 Date: {{.created_at}}
24 URL: {{.url}}
25 {{- if .sensitive}}
26 Sensitive: true{{end}}
27 {{- with .spoiler_text}}
28 Spoiler: {{.}}{{end}}
29 Message: {{color "blue"}}{{.content | fromhtml | wrap " " 80 | trim}}{{color "reset"}}
30 {{- range .media_attachments}}
31 - Attachment ID: {{.id}}
32 {{- if .text_url}}
33 Text URL: {{.text_url}}{{else if .url}}
34 URL: {{.url}}{{else if .remote_url}}
35 Remote URL: {{.remote_url}}{{end}}{{end}}{{end}}