templates/themes/ansi/notification.tmpl
changeset 99 a179dc99a044
parent 88 028f7b02bd3e
child 117 e742059aa3e1
equal deleted inserted replaced
98:dd260cff924e 99:a179dc99a044
    19       Replying to: {{.in_reply_to_id}}{{end}}
    19       Replying to: {{.in_reply_to_id}}{{end}}
    20 {{- if .sensitive}}
    20 {{- if .sensitive}}
    21       Sensitive: true{{end}}
    21       Sensitive: true{{end}}
    22 {{- with .spoiler_text}}
    22 {{- with .spoiler_text}}
    23       Spoiler: {{.}}{{end}}
    23       Spoiler: {{.}}{{end}}
    24       Message: {{color "blue"}}{{.content | fromhtml}}{{color "reset"}}{{end}}{{else}}
    24       Message: {{color "blue"}}{{.content | fromhtml | wrap "     " 80 | trim}}{{color "reset"}}{{end}}{{else}}
    25 {{- if gt .in_reply_to_id 0.0}}
    25 {{- if gt .in_reply_to_id 0.0}}
    26     Replying to: {{.in_reply_to_id}}{{end}}
    26     Replying to: {{.in_reply_to_id}}{{end}}
    27 {{- if .sensitive}}
    27 {{- if .sensitive}}
    28   Sensitive: true{{end}}
    28   Sensitive: true{{end}}
    29 {{- with .spoiler_text}}
    29 {{- with .spoiler_text}}
    30     Spoiler: {{.}}{{end}}
    30     Spoiler: {{.}}{{end}}
    31     Message: {{color "blue"}}{{.content | fromhtml}}{{color "reset"}}
    31     Message: {{color "blue"}}{{.content | fromhtml | wrap "     " 80 | trim}}{{color "reset"}}
    32 {{- range .media_attachments}}
    32 {{- range .media_attachments}}
    33     - Attachment ID: {{printf "%.0f" .id}}
    33     - Attachment ID: {{printf "%.0f" .id}}
    34 {{- if .text_url}}
    34 {{- if .text_url}}
    35       Text URL: {{.text_url}}{{else if .url}}
    35       Text URL: {{.text_url}}{{else if .url}}
    36       URL: {{.url}}{{else if .remote_url}}
    36       URL: {{.url}}{{else if .remote_url}}