templates/themes/ansi/context.tmpl
author Mikael Berthe <mikael@lilotux.net>
Sun, 07 May 2017 21:54:50 +0200
changeset 95 4b80a5396961
parent 88 028f7b02bd3e
child 172 0d651f070319
permissions -rw-r--r--
Update templates / ANSI theme
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
88
028f7b02bd3e Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
     1
- Context:
028f7b02bd3e Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
     2
  Ancestors:
028f7b02bd3e Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
     3
{{- range .ancestors}}
028f7b02bd3e Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
     4
  - Status ID: {{color "red"}}{{printf "%.0f" .id}}{{color "reset"}}  {{color "magenta"}}@{{.account.acct}}{{color "reset"}}
028f7b02bd3e Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
     5
    Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}}
028f7b02bd3e Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
     6
    Date: {{.created_at}}
028f7b02bd3e Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
     7
    URL: {{.url}}
028f7b02bd3e Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
     8
{{- if .sensitive}}
028f7b02bd3e Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
     9
    Sensitive: true{{end}}
028f7b02bd3e Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
    10
{{- with .spoiler_text}}
028f7b02bd3e Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
    11
    Spoiler: {{.}}{{end}}
95
4b80a5396961 Update templates / ANSI theme
Mikael Berthe <mikael@lilotux.net>
parents: 88
diff changeset
    12
    Message: {{color "blue"}}{{.content | fromhtml | wrap "     " 80 | trim}}{{color "reset"}}
88
028f7b02bd3e Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
    13
{{- range .media_attachments}}
028f7b02bd3e Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
    14
    - Attachment ID: {{printf "%.0f" .id}}
028f7b02bd3e Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
    15
{{- if .text_url}}
028f7b02bd3e Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
    16
      Text URL: {{.text_url}}{{else if .url}}
028f7b02bd3e Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
    17
      URL: {{.url}}{{else if .remote_url}}
028f7b02bd3e Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
    18
      Remote URL: {{.remote_url}}{{end}}{{end}}{{end}}
028f7b02bd3e Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
    19
  Descendants:
028f7b02bd3e Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
    20
{{- range .descendants}}
028f7b02bd3e Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
    21
  - Status ID: {{color "red"}}{{printf "%.0f" .id}}{{color "reset"}}  {{color "magenta"}}@{{.account.acct}}{{color "reset"}}
028f7b02bd3e Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
    22
    Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}}
028f7b02bd3e Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
    23
    Date: {{.created_at}}
028f7b02bd3e Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
    24
    URL: {{.url}}
028f7b02bd3e Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
    25
{{- if .sensitive}}
028f7b02bd3e Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
    26
    Sensitive: true{{end}}
028f7b02bd3e Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
    27
{{- with .spoiler_text}}
028f7b02bd3e Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
    28
    Spoiler: {{.}}{{end}}
95
4b80a5396961 Update templates / ANSI theme
Mikael Berthe <mikael@lilotux.net>
parents: 88
diff changeset
    29
    Message: {{color "blue"}}{{.content | fromhtml | wrap "     " 80 | trim}}{{color "reset"}}
88
028f7b02bd3e Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
    30
{{- range .media_attachments}}
028f7b02bd3e Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
    31
    - Attachment ID: {{printf "%.0f" .id}}
028f7b02bd3e Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
    32
{{- if .text_url}}
028f7b02bd3e Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
    33
      Text URL: {{.text_url}}{{else if .url}}
028f7b02bd3e Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
    34
      URL: {{.url}}{{else if .remote_url}}
028f7b02bd3e Add 'ansi' theme for UNIX-like systems
Mikael Berthe <mikael@lilotux.net>
parents:
diff changeset
    35
      Remote URL: {{.remote_url}}{{end}}{{end}}{{end}}