templates/ansi-notification.tmpl
changeset 120 54b6f2a4098b
parent 117 e742059aa3e1
child 124 20d514540f37
equal deleted inserted replaced
119:cf398230331a 120:54b6f2a4098b
     1 - Notification ID: {{color "red"}}{{printf "%.0f" .id}}{{color "reset"}}
     1 - Notification ID: {{color "red"}}{{printf "%.0f" .id}}{{color "reset"}}
     2   Type: {{color ",,bold"}}{{.type}}{{color "reset"}}
     2   Type: {{color ",,bold"}}{{.type}}{{color "reset"}}
     3   Timestamp: {{.created_at}}
     3   Timestamp: {{.created_at | tolocal}}
     4 {{- with .url}}
     4 {{- with .url}}
     5       URL: {{.url}}{{end}}
     5       URL: {{.url}}{{end}}
     6 {{- with .account}}
     6 {{- with .account}}
     7   - Account: ({{printf "%.0f" .id}}) {{color "magenta"}}@{{.acct}}{{color "reset"}}{{if .display_name}} - {{color "white,,bold"}}{{.display_name}}{{color "reset"}}{{end}}{{end}}
     7   - Account: ({{printf "%.0f" .id}}) {{color "magenta"}}@{{.acct}}{{color "reset"}}{{if .display_name}} - {{color "white,,bold"}}{{.display_name}}{{color "reset"}}{{end}}{{end}}
     8 {{- with .status}}
     8 {{- with .status}}
     9   - Status ID: {{color "red"}}{{printf "%.0f" .id}}{{color "reset"}}  {{color "magenta"}}@{{.account.acct}}{{color "reset"}}
     9   - Status ID: {{color "red"}}{{printf "%.0f" .id}}{{color "reset"}}  {{color "magenta"}}@{{.account.acct}}{{color "reset"}}
    10     Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}}
    10     Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}}
    11     Date: {{.created_at}}
    11     Date: {{.created_at | tolocal}}
    12     URL: {{.url}}
    12     URL: {{.url}}
    13 {{- if .reblog }}{{with .reblog}}
    13 {{- if .reblog }}{{with .reblog}}
    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 | tolocal}}
    18 {{- if gt .in_reply_to_id 0.0}}
    18 {{- if gt .in_reply_to_id 0.0}}
    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}}