templates/themes/ansi-dark/account.tmpl
author Mikael Berthe <mikael@lilotux.net>
Fri, 07 Sep 2018 19:18:30 +0200
changeset 234 f5cd55622194
parent 207 56afbe03a7d4
permissions -rw-r--r--
Display new Account fields in plaintext and templates Display information for bot (automated accounts), source (default settings) and fields (profile metadata).
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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"}}
2ffe0d622db9 Use the color function in the ANSI templates
Mikael Berthe <mikael@lilotux.net>
parents: 23
diff changeset
     3
  Display name: {{color "white,,bold"}}{{.display_name}}{{color "reset"}}
138
04cc4b4f8862 Account templates: use local time
Mikael Berthe <mikael@lilotux.net>
parents: 134
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
2ba1ea451669 Add template samples
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
     6
  Statuses: {{.statuses_count}}
2ba1ea451669 Add template samples
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
     7
  Followers: {{.followers_count}}
2ba1ea451669 Add template samples
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
     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
20d514540f37 Improve text wrapping
Mikael Berthe <mikael@lilotux.net>
parents: 99
diff changeset
    10
  Note: {{color "yellow"}}{{. | fromhtml | wrap "   " 79 | trim}}{{color "reset"}}{{end}}{{end}}
23
2ba1ea451669 Add template samples
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
    11
{{- if eq .locked true}}
2ba1ea451669 Add template samples
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
    12
  Locked: true{{end}}
234
f5cd55622194 Display new Account fields in plaintext and templates
Mikael Berthe <mikael@lilotux.net>
parents: 207
diff changeset
    13
{{- if eq .bot true}}
f5cd55622194 Display new Account fields in plaintext and templates
Mikael Berthe <mikael@lilotux.net>
parents: 207
diff changeset
    14
  Bot: true{{end}}
207
56afbe03a7d4 Printers: Display moved accounts (PlainPrinter + templates)
Mikael Berthe <mikael@lilotux.net>
parents: 172
diff changeset
    15
{{- with .moved}}
56afbe03a7d4 Printers: Display moved accounts (PlainPrinter + templates)
Mikael Berthe <mikael@lilotux.net>
parents: 172
diff changeset
    16
  MOVED to account ID: {{color "red"}}{{.id}}{{color "reset"}}  {{color "magenta"}}@{{.username}}{{color "reset"}}
56afbe03a7d4 Printers: Display moved accounts (PlainPrinter + templates)
Mikael Berthe <mikael@lilotux.net>
parents: 172
diff changeset
    17
    UID: {{color "red"}}{{.acct}}{{color "reset"}}
56afbe03a7d4 Printers: Display moved accounts (PlainPrinter + templates)
Mikael Berthe <mikael@lilotux.net>
parents: 172
diff changeset
    18
    Display name: {{color "white,,bold"}}{{.display_name}}{{color "reset"}}{{end}}
234
f5cd55622194 Display new Account fields in plaintext and templates
Mikael Berthe <mikael@lilotux.net>
parents: 207
diff changeset
    19
{{- with .source}}
f5cd55622194 Display new Account fields in plaintext and templates
Mikael Berthe <mikael@lilotux.net>
parents: 207
diff changeset
    20
  Default Privacy: {{.privacy}}
f5cd55622194 Display new Account fields in plaintext and templates
Mikael Berthe <mikael@lilotux.net>
parents: 207
diff changeset
    21
  Sensitive by default: {{.sensitive}}
f5cd55622194 Display new Account fields in plaintext and templates
Mikael Berthe <mikael@lilotux.net>
parents: 207
diff changeset
    22
{{- if .language}}
f5cd55622194 Display new Account fields in plaintext and templates
Mikael Berthe <mikael@lilotux.net>
parents: 207
diff changeset
    23
  Default Language: {{.language}}{{end}}{{end}}
f5cd55622194 Display new Account fields in plaintext and templates
Mikael Berthe <mikael@lilotux.net>
parents: 207
diff changeset
    24
{{- range .fields}}
f5cd55622194 Display new Account fields in plaintext and templates
Mikael Berthe <mikael@lilotux.net>
parents: 207
diff changeset
    25
  . {{color ",,bold"}}Profile metadata: {{color "cyan"}}{{.name}}{{color "reset"}} ยป {{.value | fromhtml | wrap "    " 79 | trim }}{{end}}