author | Mikael Berthe <mikael@lilotux.net> |
Sun, 11 Jul 2021 10:35:56 +0200 | |
changeset 256 | 6d9efbef00a9 |
parent 195 | 1c655ba64ecf |
permissions | -rw-r--r-- |
172
0d651f070319
Update types to reflect Mastodon 2.0.0 API changes
Mikael Berthe <mikael@lilotux.net>
parents:
169
diff
changeset
|
1 |
- Status ID: {{color "red"}}{{.id}}{{color "reset"}} {{color "magenta"}}@{{.account.acct}}{{color "reset"}} |
52
2ffe0d622db9
Use the color function in the ANSI templates
Mikael Berthe <mikael@lilotux.net>
parents:
23
diff
changeset
|
2 |
Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}} |
195 | 3 |
{{- if .pinned}} |
4 |
Pinned: {{.pinned}}{{end}} |
|
169
26a1f0e705c9
ansi themes: display visibility
Mikael Berthe <mikael@lilotux.net>
parents:
161
diff
changeset
|
5 |
Visibility: {{.visibility}} |
120
54b6f2a4098b
Add template command tolocal; update templates and documentation
Mikael Berthe <mikael@lilotux.net>
parents:
95
diff
changeset
|
6 |
Date: {{.created_at | tolocal}} |
23 | 7 |
URL: {{.url}} |
8 |
{{- if .reblog }}{{with .reblog}} |
|
52
2ffe0d622db9
Use the color function in the ANSI templates
Mikael Berthe <mikael@lilotux.net>
parents:
23
diff
changeset
|
9 |
{{color ",,bold"}}Reblogged from: {{color "magenta"}}@{{.account.acct}}{{color "reset"}} |
172
0d651f070319
Update types to reflect Mastodon 2.0.0 API changes
Mikael Berthe <mikael@lilotux.net>
parents:
169
diff
changeset
|
10 |
ID: {{.id}} |
52
2ffe0d622db9
Use the color function in the ANSI templates
Mikael Berthe <mikael@lilotux.net>
parents:
23
diff
changeset
|
11 |
Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}} |
120
54b6f2a4098b
Add template command tolocal; update templates and documentation
Mikael Berthe <mikael@lilotux.net>
parents:
95
diff
changeset
|
12 |
Date: {{.created_at | tolocal}} |
172
0d651f070319
Update types to reflect Mastodon 2.0.0 API changes
Mikael Berthe <mikael@lilotux.net>
parents:
169
diff
changeset
|
13 |
{{- if .in_reply_to_id}} |
0d651f070319
Update types to reflect Mastodon 2.0.0 API changes
Mikael Berthe <mikael@lilotux.net>
parents:
169
diff
changeset
|
14 |
Replying to: {{.in_reply_to_id}}{{end}} |
78 | 15 |
{{- if .sensitive}} |
16 |
Sensitive: true{{end}} |
|
17 |
{{- with .spoiler_text}} |
|
18 |
Spoiler: {{.}}{{end}} |
|
124 | 19 |
Message: {{color "blue"}}{{.content | fromhtml | wrap " " 79 | trim}}{{color "reset"}} |
59 | 20 |
{{- range .media_attachments}} |
172
0d651f070319
Update types to reflect Mastodon 2.0.0 API changes
Mikael Berthe <mikael@lilotux.net>
parents:
169
diff
changeset
|
21 |
- Attachment ID: {{.id}} |
195 | 22 |
{{- if .description}} |
23 |
Description: {{color ",,bold"}}{{.description}}{{color "reset"}}{{end}} |
|
59 | 24 |
{{- if .text_url}} |
25 |
Text URL: {{.text_url}}{{else if .url}} |
|
26 |
URL: {{.url}}{{else if .remote_url}} |
|
27 |
Remote URL: {{.remote_url}}{{end}}{{end}} |
|
23 | 28 |
{{end}}{{else}} |
172
0d651f070319
Update types to reflect Mastodon 2.0.0 API changes
Mikael Berthe <mikael@lilotux.net>
parents:
169
diff
changeset
|
29 |
{{- if .in_reply_to_id}} |
0d651f070319
Update types to reflect Mastodon 2.0.0 API changes
Mikael Berthe <mikael@lilotux.net>
parents:
169
diff
changeset
|
30 |
Replying to: {{.in_reply_to_id}}{{end}} |
78 | 31 |
{{- if .sensitive}} |
32 |
Sensitive: true{{end}} |
|
33 |
{{- with .spoiler_text}} |
|
34 |
Spoiler: {{.}}{{end}} |
|
124 | 35 |
Message: {{color "blue"}}{{.content | fromhtml | wrap " " 79 | trim}}{{color "reset"}} |
59 | 36 |
{{- range .media_attachments}} |
172
0d651f070319
Update types to reflect Mastodon 2.0.0 API changes
Mikael Berthe <mikael@lilotux.net>
parents:
169
diff
changeset
|
37 |
- Attachment ID: {{.id}} |
59 | 38 |
{{- if .text_url}} |
39 |
Text URL: {{.text_url}}{{else if .url}} |
|
40 |
URL: {{.url}}{{else if .remote_url}} |
|
41 |
Remote URL: {{.remote_url}}{{end}}{{end}} |
|
23 | 42 |
{{end -}} |