templates/themes/ansi-dark/context.tmpl
changeset 172 0d651f070319
parent 134 a057c44144a4
equal deleted inserted replaced
171:611c211534d0 172:0d651f070319
     1 - Context:
     1 - Context:
     2   Ancestors:
     2   Ancestors:
     3 {{- range .ancestors}}
     3 {{- range .ancestors}}
     4   - Status ID: {{color "red"}}{{printf "%.0f" .id}}{{color "reset"}}  {{color "magenta"}}@{{.account.acct}}{{color "reset"}}
     4   - Status ID: {{color "red"}}{{.id}}{{color "reset"}}  {{color "magenta"}}@{{.account.acct}}{{color "reset"}}
     5     Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}}
     5     Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}}
     6     Date: {{.created_at}}
     6     Date: {{.created_at}}
     7     URL: {{.url}}
     7     URL: {{.url}}
     8 {{- if .sensitive}}
     8 {{- if .sensitive}}
     9     Sensitive: true{{end}}
     9     Sensitive: true{{end}}
    10 {{- with .spoiler_text}}
    10 {{- with .spoiler_text}}
    11     Spoiler: {{.}}{{end}}
    11     Spoiler: {{.}}{{end}}
    12     Message: {{color "blue"}}{{.content | fromhtml | wrap "     " 80 | trim}}{{color "reset"}}
    12     Message: {{color "blue"}}{{.content | fromhtml | wrap "     " 80 | trim}}{{color "reset"}}
    13 {{- range .media_attachments}}
    13 {{- range .media_attachments}}
    14     - Attachment ID: {{printf "%.0f" .id}}
    14     - Attachment ID: {{.id}}
    15 {{- if .text_url}}
    15 {{- if .text_url}}
    16       Text URL: {{.text_url}}{{else if .url}}
    16       Text URL: {{.text_url}}{{else if .url}}
    17       URL: {{.url}}{{else if .remote_url}}
    17       URL: {{.url}}{{else if .remote_url}}
    18       Remote URL: {{.remote_url}}{{end}}{{end}}{{end}}
    18       Remote URL: {{.remote_url}}{{end}}{{end}}{{end}}
    19   Descendants:
    19   Descendants:
    20 {{- range .descendants}}
    20 {{- range .descendants}}
    21   - Status ID: {{color "red"}}{{printf "%.0f" .id}}{{color "reset"}}  {{color "magenta"}}@{{.account.acct}}{{color "reset"}}
    21   - Status ID: {{color "red"}}{{.id}}{{color "reset"}}  {{color "magenta"}}@{{.account.acct}}{{color "reset"}}
    22     Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}}
    22     Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}}
    23     Date: {{.created_at}}
    23     Date: {{.created_at}}
    24     URL: {{.url}}
    24     URL: {{.url}}
    25 {{- if .sensitive}}
    25 {{- if .sensitive}}
    26     Sensitive: true{{end}}
    26     Sensitive: true{{end}}
    27 {{- with .spoiler_text}}
    27 {{- with .spoiler_text}}
    28     Spoiler: {{.}}{{end}}
    28     Spoiler: {{.}}{{end}}
    29     Message: {{color "blue"}}{{.content | fromhtml | wrap "     " 80 | trim}}{{color "reset"}}
    29     Message: {{color "blue"}}{{.content | fromhtml | wrap "     " 80 | trim}}{{color "reset"}}
    30 {{- range .media_attachments}}
    30 {{- range .media_attachments}}
    31     - Attachment ID: {{printf "%.0f" .id}}
    31     - Attachment ID: {{.id}}
    32 {{- if .text_url}}
    32 {{- if .text_url}}
    33       Text URL: {{.text_url}}{{else if .url}}
    33       Text URL: {{.text_url}}{{else if .url}}
    34       URL: {{.url}}{{else if .remote_url}}
    34       URL: {{.url}}{{else if .remote_url}}
    35       Remote URL: {{.remote_url}}{{end}}{{end}}{{end}}
    35       Remote URL: {{.remote_url}}{{end}}{{end}}{{end}}