author | convert-repo |
Fri, 05 May 2017 21:55:09 +0000 | |
changeset 69 | 7217174c217a |
parent 59 | ff88978ceb55 |
child 76 | f155f9d86832 |
permissions | -rw-r--r-- |
59 | 1 |
- Status ID: {{color "red"}}{{.id|printf "%.0f"}}{{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"}} |
23 | 3 |
Date: {{.created_at}} |
4 |
URL: {{.url}} |
|
5 |
{{- if gt .in_reply_to_id 0.0}} |
|
6 |
Replying to: {{.in_reply_to_id}}{{end}} |
|
7 |
{{- with .spoiler_text}} |
|
8 |
Spoiler: {{.}}{{end}} |
|
9 |
{{- if .reblog }}{{with .reblog}} |
|
52
2ffe0d622db9
Use the color function in the ANSI templates
Mikael Berthe <mikael@lilotux.net>
parents:
23
diff
changeset
|
10 |
{{color ",,bold"}}Reblogged from: {{color "magenta"}}@{{.account.acct}}{{color "reset"}} |
59 | 11 |
ID: {{.id|printf "%.0f"}} |
52
2ffe0d622db9
Use the color function in the ANSI templates
Mikael Berthe <mikael@lilotux.net>
parents:
23
diff
changeset
|
12 |
Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}} |
23 | 13 |
Date: {{.created_at}} |
52
2ffe0d622db9
Use the color function in the ANSI templates
Mikael Berthe <mikael@lilotux.net>
parents:
23
diff
changeset
|
14 |
Message: {{color "blue"}}{{.content | fromhtml}}{{color "reset"}} |
59 | 15 |
{{- range .media_attachments}} |
16 |
- Attachment ID: {{.id|printf "%.0f"}} |
|
17 |
{{- if .text_url}} |
|
18 |
Text URL: {{.text_url}}{{else if .url}} |
|
19 |
URL: {{.url}}{{else if .remote_url}} |
|
20 |
Remote URL: {{.remote_url}}{{end}}{{end}} |
|
23 | 21 |
{{end}}{{else}} |
52
2ffe0d622db9
Use the color function in the ANSI templates
Mikael Berthe <mikael@lilotux.net>
parents:
23
diff
changeset
|
22 |
Message: {{color "blue"}}{{.content | fromhtml}}{{color "reset"}} |
59 | 23 |
{{- range .media_attachments}} |
24 |
- Attachment ID: {{.id|printf "%.0f"}} |
|
25 |
{{- if .text_url}} |
|
26 |
Text URL: {{.text_url}}{{else if .url}} |
|
27 |
URL: {{.url}}{{else if .remote_url}} |
|
28 |
Remote URL: {{.remote_url}}{{end}}{{end}} |
|
23 | 29 |
{{end -}} |