author | Mikael Berthe <mikael@lilotux.net> |
Mon, 01 May 2017 13:06:31 +0200 | |
changeset 52 | 2ffe0d622db9 |
parent 23 | 2ba1ea451669 |
child 59 | ff88978ceb55 |
permissions | -rw-r--r-- |
52
2ffe0d622db9
Use the color function in the ANSI templates
Mikael Berthe <mikael@lilotux.net>
parents:
23
diff
changeset
|
1 |
- Status ID: {{color "red"}}{{.id}}{{color "reset"}} {{color "magenta"}}@{{.account.acct}}{{color "reset"}} |
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"}} |
23 | 11 |
ID: {{.id}} |
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"}} |
23 | 15 |
{{end}}{{else}} |
52
2ffe0d622db9
Use the color function in the ANSI templates
Mikael Berthe <mikael@lilotux.net>
parents:
23
diff
changeset
|
16 |
Message: {{color "blue"}}{{.content | fromhtml}}{{color "reset"}} |
23 | 17 |
{{end -}} |