author | Mikael Berthe <mikael@lilotux.net> |
Tue, 20 Mar 2018 15:50:32 +0100 | |
changeset 195 | 1c655ba64ecf |
parent 172 | 0d651f070319 |
child 207 | 56afbe03a7d4 |
permissions | -rw-r--r-- |
172
0d651f070319
Update types to reflect Mastodon 2.0.0 API changes
Mikael Berthe <mikael@lilotux.net>
parents:
138
diff
changeset
|
1 |
- Account ID: {{color "red"}}{{.id}}{{color "reset"}} {{color "magenta"}}@{{.username}}{{color "reset"}} |
52
2ffe0d622db9
Use the color function in the ANSI templates
Mikael Berthe <mikael@lilotux.net>
parents:
23
diff
changeset
|
2 |
UID: {{color "red"}}{{.acct}}{{color "reset"}} |
195 | 3 |
Display name: {{color "black,,bold"}}{{.display_name}}{{color "reset"}} |
138
04cc4b4f8862
Account templates: use local time
Mikael Berthe <mikael@lilotux.net>
parents:
124
diff
changeset
|
4 |
Date: {{.created_at | tolocal}} |
52
2ffe0d622db9
Use the color function in the ANSI templates
Mikael Berthe <mikael@lilotux.net>
parents:
23
diff
changeset
|
5 |
URL: {{color "cyan"}}{{.url}}{{color "reset"}} |
23 | 6 |
Statuses: {{.statuses_count}} |
7 |
Followers: {{.followers_count}} |
|
8 |
Following: {{.following_count}} |
|
52
2ffe0d622db9
Use the color function in the ANSI templates
Mikael Berthe <mikael@lilotux.net>
parents:
23
diff
changeset
|
9 |
{{- with .note}}{{if ne . "<p></p>"}} |
124 | 10 |
Note: {{color "yellow"}}{{. | fromhtml | wrap " " 79 | trim}}{{color "reset"}}{{end}}{{end}} |
23 | 11 |
{{- if eq .locked true}} |
12 |
Locked: true{{end}} |