author | Mikael Berthe <mikael@lilotux.net> |
Thu, 06 Sep 2018 00:27:32 +0200 | |
changeset 229 | d4c099a67c86 |
parent 172 | 0d651f070319 |
permissions | -rw-r--r-- |
88
028f7b02bd3e
Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
1 |
{{with .accounts}} |
028f7b02bd3e
Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
2 |
{{- color ",,bold"}}Accounts:{{color "reset"}} |
028f7b02bd3e
Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
3 |
{{- range .}} |
172
0d651f070319
Update types to reflect Mastodon 2.0.0 API changes
Mikael Berthe <mikael@lilotux.net>
parents:
134
diff
changeset
|
4 |
- Account ID: {{color "red"}}{{.id}}{{color "reset"}} {{color "magenta"}}@{{.username}}{{color "reset"}} |
88
028f7b02bd3e
Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
5 |
UID: {{color "red"}}{{.acct}}{{color "reset"}} |
028f7b02bd3e
Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
6 |
Display name: {{color "white,,bold"}}{{.display_name}}{{color "reset"}} |
028f7b02bd3e
Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
7 |
Date: {{.created_at}} |
028f7b02bd3e
Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
8 |
URL: {{color "cyan"}}{{.url}}{{color "reset"}} |
028f7b02bd3e
Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
9 |
Statuses: {{.statuses_count}} |
028f7b02bd3e
Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
10 |
Followers: {{.followers_count}} |
028f7b02bd3e
Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
11 |
Following: {{.following_count}} |
028f7b02bd3e
Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
12 |
{{- with .note}}{{if ne . "<p></p>"}} |
95
4b80a5396961
Update templates / ANSI theme
Mikael Berthe <mikael@lilotux.net>
parents:
88
diff
changeset
|
13 |
Note: {{color "yellow"}}{{. | fromhtml | wrap " " 80 | trim}}{{color "reset"}}{{end}}{{end}} |
88
028f7b02bd3e
Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
14 |
{{- if eq .locked true}} |
028f7b02bd3e
Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
15 |
Locked: true{{end}}{{end}}{{/* of range */}} |
028f7b02bd3e
Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
16 |
{{end}}{{/* of accounts */}} |
028f7b02bd3e
Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
17 |
{{- with .statuses}}{{color ",,bold"}}Statuses:{{color "reset"}} |
028f7b02bd3e
Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
18 |
{{- range .}} |
172
0d651f070319
Update types to reflect Mastodon 2.0.0 API changes
Mikael Berthe <mikael@lilotux.net>
parents:
134
diff
changeset
|
19 |
- Status ID: {{color "red"}}{{.id}}{{color "reset"}} {{color "magenta"}}@{{.account.acct}}{{color "reset"}} |
88
028f7b02bd3e
Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
20 |
Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}} |
028f7b02bd3e
Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
21 |
Date: {{.created_at}} |
028f7b02bd3e
Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
22 |
URL: {{.url}} |
028f7b02bd3e
Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
23 |
{{- if .sensitive}} |
028f7b02bd3e
Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
24 |
Sensitive: true{{end}} |
028f7b02bd3e
Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
25 |
{{- with .spoiler_text}} |
028f7b02bd3e
Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
26 |
Spoiler: {{.}}{{end}} |
95
4b80a5396961
Update templates / ANSI theme
Mikael Berthe <mikael@lilotux.net>
parents:
88
diff
changeset
|
27 |
Message: {{color "blue"}}{{.content | fromhtml | wrap " " 80 | trim}}{{color "reset"}} |
88
028f7b02bd3e
Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
28 |
{{- range .media_attachments}} |
172
0d651f070319
Update types to reflect Mastodon 2.0.0 API changes
Mikael Berthe <mikael@lilotux.net>
parents:
134
diff
changeset
|
29 |
- Attachment ID: {{.id}} |
88
028f7b02bd3e
Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
30 |
{{- if .text_url}} |
028f7b02bd3e
Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
31 |
Text URL: {{.text_url}}{{else if .url}} |
028f7b02bd3e
Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
32 |
URL: {{.url}}{{else if .remote_url}} |
028f7b02bd3e
Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
33 |
Remote URL: {{.remote_url}}{{end}}{{end}}{{end}}{{/* of range */}}{{end}}{{/* of statuses */}} |
028f7b02bd3e
Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
34 |
{{- with .hashtags}}{{color ",,bold"}}Hashtags:{{color "reset"}} |
028f7b02bd3e
Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
35 |
{{- range .}} |
229
d4c099a67c86
Sync 'Results' type with madon update
Mikael Berthe <mikael@lilotux.net>
parents:
172
diff
changeset
|
36 |
- Tag: {{.name}}{{end}}{{/* of range */}} |
88
028f7b02bd3e
Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
37 |
{{end}}{{/* of statuses */ -}} |