templates/ansi-status.tmpl
author convert-repo
Fri, 05 May 2017 21:55:09 +0000
changeset 69 7217174c217a
parent 59 ff88978ceb55
child 76 f155f9d86832
permissions -rw-r--r--
update tags
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
59
ff88978ceb55 Update templates
Mikael Berthe <mikael@lilotux.net>
parents: 52
diff changeset
     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
2ba1ea451669 Add template samples
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
     3
  Date: {{.created_at}}
2ba1ea451669 Add template samples
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
     4
  URL: {{.url}}
2ba1ea451669 Add template samples
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
     5
{{- if gt .in_reply_to_id 0.0}}
2ba1ea451669 Add template samples
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
     6
  Replying to: {{.in_reply_to_id}}{{end}}
2ba1ea451669 Add template samples
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
     7
{{- with .spoiler_text}}
2ba1ea451669 Add template samples
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
     8
  Spoiler: {{.}}{{end}}
2ba1ea451669 Add template samples
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
     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
ff88978ceb55 Update templates
Mikael Berthe <mikael@lilotux.net>
parents: 52
diff changeset
    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
2ba1ea451669 Add template samples
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
    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
ff88978ceb55 Update templates
Mikael Berthe <mikael@lilotux.net>
parents: 52
diff changeset
    15
{{- range .media_attachments}}
ff88978ceb55 Update templates
Mikael Berthe <mikael@lilotux.net>
parents: 52
diff changeset
    16
    - Attachment ID: {{.id|printf "%.0f"}}
ff88978ceb55 Update templates
Mikael Berthe <mikael@lilotux.net>
parents: 52
diff changeset
    17
{{- if .text_url}}
ff88978ceb55 Update templates
Mikael Berthe <mikael@lilotux.net>
parents: 52
diff changeset
    18
      Text URL: {{.text_url}}{{else if .url}}
ff88978ceb55 Update templates
Mikael Berthe <mikael@lilotux.net>
parents: 52
diff changeset
    19
      URL: {{.url}}{{else if .remote_url}}
ff88978ceb55 Update templates
Mikael Berthe <mikael@lilotux.net>
parents: 52
diff changeset
    20
      Remote URL: {{.remote_url}}{{end}}{{end}}
23
2ba1ea451669 Add template samples
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
    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
ff88978ceb55 Update templates
Mikael Berthe <mikael@lilotux.net>
parents: 52
diff changeset
    23
{{- range .media_attachments}}
ff88978ceb55 Update templates
Mikael Berthe <mikael@lilotux.net>
parents: 52
diff changeset
    24
  - Attachment ID: {{.id|printf "%.0f"}}
ff88978ceb55 Update templates
Mikael Berthe <mikael@lilotux.net>
parents: 52
diff changeset
    25
{{- if .text_url}}
ff88978ceb55 Update templates
Mikael Berthe <mikael@lilotux.net>
parents: 52
diff changeset
    26
    Text URL: {{.text_url}}{{else if .url}}
ff88978ceb55 Update templates
Mikael Berthe <mikael@lilotux.net>
parents: 52
diff changeset
    27
    URL: {{.url}}{{else if .remote_url}}
ff88978ceb55 Update templates
Mikael Berthe <mikael@lilotux.net>
parents: 52
diff changeset
    28
    Remote URL: {{.remote_url}}{{end}}{{end}}
23
2ba1ea451669 Add template samples
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
    29
{{end -}}