templates/ansi-notification.tmpl
changeset 124 20d514540f37
parent 120 54b6f2a4098b
child 163 1e9e5e3ae30c
equal deleted inserted replaced
123:24ab59ba57b2 124:20d514540f37
    19       Replying to: {{printf "%.0f" .in_reply_to_id}}{{end}}
    19       Replying to: {{printf "%.0f" .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 | wrap "     " 80 | trim}}{{color "reset"}}{{end}}{{else}}
    24       Message: {{color "blue"}}{{.content | fromhtml | wrap "        " 79 | 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: {{printf "%.0f" .in_reply_to_id}}{{end}}
    26     Replying to: {{printf "%.0f" .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 | wrap "     " 80 | trim}}{{color "reset"}}
    31     Message: {{color "blue"}}{{.content | fromhtml | wrap "      " 79 | 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}}