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