templates/themes/ansi-dark/status.tmpl
author Mikael Berthe <mikael@lilotux.net>
Sat, 21 Oct 2017 19:12:11 +0200
changeset 172 0d651f070319
parent 169 26a1f0e705c9
child 195 1c655ba64ecf
permissions -rw-r--r--
Update types to reflect Mastodon 2.0.0 API changes This patch requires madon v2.0.0(-dev). (Fixes issue #9)
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: 169
diff changeset
     1
- Status ID: {{color "red"}}{{.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"}}
169
26a1f0e705c9 ansi themes: display visibility
Mikael Berthe <mikael@lilotux.net>
parents: 161
diff changeset
     3
  Visibility: {{.visibility}}
120
54b6f2a4098b Add template command tolocal; update templates and documentation
Mikael Berthe <mikael@lilotux.net>
parents: 95
diff changeset
     4
  Date: {{.created_at | tolocal}}
23
2ba1ea451669 Add template samples
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
     5
  URL: {{.url}}
2ba1ea451669 Add template samples
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
     6
{{- if .reblog }}{{with .reblog}}
52
2ffe0d622db9 Use the color function in the ANSI templates
Mikael Berthe <mikael@lilotux.net>
parents: 23
diff changeset
     7
  {{color ",,bold"}}Reblogged from: {{color "magenta"}}@{{.account.acct}}{{color "reset"}}
172
0d651f070319 Update types to reflect Mastodon 2.0.0 API changes
Mikael Berthe <mikael@lilotux.net>
parents: 169
diff changeset
     8
    ID: {{.id}}
52
2ffe0d622db9 Use the color function in the ANSI templates
Mikael Berthe <mikael@lilotux.net>
parents: 23
diff changeset
     9
    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
    10
    Date: {{.created_at | tolocal}}
172
0d651f070319 Update types to reflect Mastodon 2.0.0 API changes
Mikael Berthe <mikael@lilotux.net>
parents: 169
diff changeset
    11
{{- if .in_reply_to_id}}
0d651f070319 Update types to reflect Mastodon 2.0.0 API changes
Mikael Berthe <mikael@lilotux.net>
parents: 169
diff changeset
    12
    Replying to: {{.in_reply_to_id}}{{end}}
78
b40bc3a8b572 Update ANSI templates
Mikael Berthe <mikael@lilotux.net>
parents: 76
diff changeset
    13
{{- if .sensitive}}
b40bc3a8b572 Update ANSI templates
Mikael Berthe <mikael@lilotux.net>
parents: 76
diff changeset
    14
  Sensitive: true{{end}}
b40bc3a8b572 Update ANSI templates
Mikael Berthe <mikael@lilotux.net>
parents: 76
diff changeset
    15
{{- with .spoiler_text}}
b40bc3a8b572 Update ANSI templates
Mikael Berthe <mikael@lilotux.net>
parents: 76
diff changeset
    16
    Spoiler: {{.}}{{end}}
134
a057c44144a4 Add ansi-dark theme
Mikael Berthe <mikael@lilotux.net>
parents: 124
diff changeset
    17
    Message: {{color "green"}}{{.content | fromhtml | wrap "       " 79 | trim}}{{color "reset"}}
59
ff88978ceb55 Update templates
Mikael Berthe <mikael@lilotux.net>
parents: 52
diff changeset
    18
{{- range .media_attachments}}
172
0d651f070319 Update types to reflect Mastodon 2.0.0 API changes
Mikael Berthe <mikael@lilotux.net>
parents: 169
diff changeset
    19
    - Attachment ID: {{.id}}
59
ff88978ceb55 Update templates
Mikael Berthe <mikael@lilotux.net>
parents: 52
diff changeset
    20
{{- if .text_url}}
ff88978ceb55 Update templates
Mikael Berthe <mikael@lilotux.net>
parents: 52
diff changeset
    21
      Text URL: {{.text_url}}{{else if .url}}
ff88978ceb55 Update templates
Mikael Berthe <mikael@lilotux.net>
parents: 52
diff changeset
    22
      URL: {{.url}}{{else if .remote_url}}
ff88978ceb55 Update templates
Mikael Berthe <mikael@lilotux.net>
parents: 52
diff changeset
    23
      Remote URL: {{.remote_url}}{{end}}{{end}}
23
2ba1ea451669 Add template samples
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
    24
{{end}}{{else}}
172
0d651f070319 Update types to reflect Mastodon 2.0.0 API changes
Mikael Berthe <mikael@lilotux.net>
parents: 169
diff changeset
    25
{{- if .in_reply_to_id}}
0d651f070319 Update types to reflect Mastodon 2.0.0 API changes
Mikael Berthe <mikael@lilotux.net>
parents: 169
diff changeset
    26
  Replying to: {{.in_reply_to_id}}{{end}}
78
b40bc3a8b572 Update ANSI templates
Mikael Berthe <mikael@lilotux.net>
parents: 76
diff changeset
    27
{{- if .sensitive}}
b40bc3a8b572 Update ANSI templates
Mikael Berthe <mikael@lilotux.net>
parents: 76
diff changeset
    28
  Sensitive: true{{end}}
b40bc3a8b572 Update ANSI templates
Mikael Berthe <mikael@lilotux.net>
parents: 76
diff changeset
    29
{{- with .spoiler_text}}
b40bc3a8b572 Update ANSI templates
Mikael Berthe <mikael@lilotux.net>
parents: 76
diff changeset
    30
  Spoiler: {{.}}{{end}}
134
a057c44144a4 Add ansi-dark theme
Mikael Berthe <mikael@lilotux.net>
parents: 124
diff changeset
    31
  Message: {{color "green"}}{{.content | fromhtml | wrap "     " 79 | trim}}{{color "reset"}}
59
ff88978ceb55 Update templates
Mikael Berthe <mikael@lilotux.net>
parents: 52
diff changeset
    32
{{- range .media_attachments}}
172
0d651f070319 Update types to reflect Mastodon 2.0.0 API changes
Mikael Berthe <mikael@lilotux.net>
parents: 169
diff changeset
    33
  - Attachment ID: {{.id}}
59
ff88978ceb55 Update templates
Mikael Berthe <mikael@lilotux.net>
parents: 52
diff changeset
    34
{{- if .text_url}}
ff88978ceb55 Update templates
Mikael Berthe <mikael@lilotux.net>
parents: 52
diff changeset
    35
    Text URL: {{.text_url}}{{else if .url}}
ff88978ceb55 Update templates
Mikael Berthe <mikael@lilotux.net>
parents: 52
diff changeset
    36
    URL: {{.url}}{{else if .remote_url}}
ff88978ceb55 Update templates
Mikael Berthe <mikael@lilotux.net>
parents: 52
diff changeset
    37
    Remote URL: {{.remote_url}}{{end}}{{end}}
23
2ba1ea451669 Add template samples
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
    38
{{end -}}