templates/themes/ansi/context.tmpl
changeset 95 4b80a5396961
parent 88 028f7b02bd3e
child 172 0d651f070319
equal deleted inserted replaced
94:4c0206d283e5 95:4b80a5396961
     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}}{{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: {{printf "%.0f" .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}}
    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}}{{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: {{printf "%.0f" .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}}