author | Mikael Berthe <mikael@lilotux.net> |
Sat, 22 Jul 2017 23:20:33 +0200 | |
changeset 169 | 26a1f0e705c9 |
parent 161 | d417a821e85a |
child 172 | 0d651f070319 |
permissions | -rw-r--r-- |
76
f155f9d86832
Fix in_reply_to ID format in templates
Mikael Berthe <mikael@lilotux.net>
parents:
59
diff
changeset
|
1 |
- Status ID: {{color "red"}}{{printf "%.0f" .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"}} |
169
26a1f0e705c9
ansi themes: display visibility
Mikael Berthe <mikael@lilotux.net>
parents:
161
diff
changeset
|
3 |
Visibility: {{.visibility}} |
120
54b6f2a4098b
Add template command tolocal; update templates and documentation
Mikael Berthe <mikael@lilotux.net>
parents:
95
diff
changeset
|
4 |
Date: {{.created_at | tolocal}} |
23 | 5 |
URL: {{.url}} |
6 |
{{- if .reblog }}{{with .reblog}} |
|
52
2ffe0d622db9
Use the color function in the ANSI templates
Mikael Berthe <mikael@lilotux.net>
parents:
23
diff
changeset
|
7 |
{{color ",,bold"}}Reblogged from: {{color "magenta"}}@{{.account.acct}}{{color "reset"}} |
76
f155f9d86832
Fix in_reply_to ID format in templates
Mikael Berthe <mikael@lilotux.net>
parents:
59
diff
changeset
|
8 |
ID: {{printf "%.0f" .id}} |
52
2ffe0d622db9
Use the color function in the ANSI templates
Mikael Berthe <mikael@lilotux.net>
parents:
23
diff
changeset
|
9 |
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
|
10 |
Date: {{.created_at | tolocal}} |
78 | 11 |
{{- if gt .in_reply_to_id 0.0}} |
12 |
Replying to: {{printf "%.0f" .in_reply_to_id}}{{end}} |
|
13 |
{{- if .sensitive}} |
|
14 |
Sensitive: true{{end}} |
|
15 |
{{- with .spoiler_text}} |
|
16 |
Spoiler: {{.}}{{end}} |
|
124 | 17 |
Message: {{color "blue"}}{{.content | fromhtml | wrap " " 79 | trim}}{{color "reset"}} |
59 | 18 |
{{- range .media_attachments}} |
76
f155f9d86832
Fix in_reply_to ID format in templates
Mikael Berthe <mikael@lilotux.net>
parents:
59
diff
changeset
|
19 |
- Attachment ID: {{printf "%.0f" .id}} |
59 | 20 |
{{- if .text_url}} |
21 |
Text URL: {{.text_url}}{{else if .url}} |
|
22 |
URL: {{.url}}{{else if .remote_url}} |
|
23 |
Remote URL: {{.remote_url}}{{end}}{{end}} |
|
23 | 24 |
{{end}}{{else}} |
78 | 25 |
{{- if gt .in_reply_to_id 0.0}} |
26 |
Replying to: {{printf "%.0f" .in_reply_to_id}}{{end}} |
|
27 |
{{- if .sensitive}} |
|
28 |
Sensitive: true{{end}} |
|
29 |
{{- with .spoiler_text}} |
|
30 |
Spoiler: {{.}}{{end}} |
|
124 | 31 |
Message: {{color "blue"}}{{.content | fromhtml | wrap " " 79 | trim}}{{color "reset"}} |
59 | 32 |
{{- range .media_attachments}} |
76
f155f9d86832
Fix in_reply_to ID format in templates
Mikael Berthe <mikael@lilotux.net>
parents:
59
diff
changeset
|
33 |
- Attachment ID: {{printf "%.0f" .id}} |
59 | 34 |
{{- if .text_url}} |
35 |
Text URL: {{.text_url}}{{else if .url}} |
|
36 |
URL: {{.url}}{{else if .remote_url}} |
|
37 |
Remote URL: {{.remote_url}}{{end}}{{end}} |
|
23 | 38 |
{{end -}} |