templates/ansi-notification.tmpl
changeset 117 e742059aa3e1
parent 99 a179dc99a044
child 120 54b6f2a4098b
equal deleted inserted replaced
116:3dd35bdb63ac 117:e742059aa3e1
    14     {{color ",,bold"}}Reblogged from: {{color "magenta"}}@{{.account.acct}}{{color "reset"}}
    14     {{color ",,bold"}}Reblogged from: {{color "magenta"}}@{{.account.acct}}{{color "reset"}}
    15       ID: {{printf "%.0f" .id}}
    15       ID: {{printf "%.0f" .id}}
    16       Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}}
    16       Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}}
    17       Date: {{.created_at}}
    17       Date: {{.created_at}}
    18 {{- if gt .in_reply_to_id 0.0}}
    18 {{- if gt .in_reply_to_id 0.0}}
    19       Replying to: {{.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 "     " 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: {{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 "     " 80 | trim}}{{color "reset"}}