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