templates/themes/ansi-dark/notification.tmpl
changeset 172 0d651f070319
parent 169 26a1f0e705c9
equal deleted inserted replaced
171:611c211534d0 172:0d651f070319
     1 - Notification ID: {{color "red"}}{{printf "%.0f" .id}}{{color "reset"}}
     1 - Notification ID: {{color "red"}}{{.id}}{{color "reset"}}
     2   Type: {{color ",,bold"}}{{.type}}{{color "reset"}}
     2   Type: {{color ",,bold"}}{{.type}}{{color "reset"}}
     3   Timestamp: {{.created_at | tolocal}}
     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: ({{.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"}}{{.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     Visibility: {{.visibility}}
    11     Visibility: {{.visibility}}
    12     Date: {{.created_at | tolocal}}
    12     Date: {{.created_at | tolocal}}
    13     URL: {{.url}}
    13     URL: {{.url}}
    14 {{- if .reblog }}{{with .reblog}}
    14 {{- if .reblog }}{{with .reblog}}
    15     {{color ",,bold"}}Reblogged from: {{color "magenta"}}@{{.account.acct}}{{color "reset"}}
    15     {{color ",,bold"}}Reblogged from: {{color "magenta"}}@{{.account.acct}}{{color "reset"}}
    16       ID: {{printf "%.0f" .id}}
    16       ID: {{.id}}
    17       Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}}
    17       Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}}
    18       Date: {{.created_at | tolocal}}
    18       Date: {{.created_at | tolocal}}
    19 {{- if gt .in_reply_to_id 0.0}}
    19 {{- if .in_reply_to_id}}
    20       Replying to: {{printf "%.0f" .in_reply_to_id}}{{end}}
    20       Replying to: {{.in_reply_to_id}}{{end}}
    21 {{- if .sensitive}}
    21 {{- if .sensitive}}
    22       Sensitive: true{{end}}
    22       Sensitive: true{{end}}
    23 {{- with .spoiler_text}}
    23 {{- with .spoiler_text}}
    24       Spoiler: {{.}}{{end}}
    24       Spoiler: {{.}}{{end}}
    25       Message: {{color "green"}}{{.content | fromhtml | wrap "        " 79 | trim}}{{color "reset"}}{{end}}{{else}}
    25       Message: {{color "green"}}{{.content | fromhtml | wrap "        " 79 | trim}}{{color "reset"}}{{end}}{{else}}
    26 {{- if gt .in_reply_to_id 0.0}}
    26 {{- if .in_reply_to_id}}
    27     Replying to: {{printf "%.0f" .in_reply_to_id}}{{end}}
    27     Replying to: {{.in_reply_to_id}}{{end}}
    28 {{- if .sensitive}}
    28 {{- if .sensitive}}
    29   Sensitive: true{{end}}
    29   Sensitive: true{{end}}
    30 {{- with .spoiler_text}}
    30 {{- with .spoiler_text}}
    31     Spoiler: {{.}}{{end}}
    31     Spoiler: {{.}}{{end}}
    32     Message: {{color "green"}}{{.content | fromhtml | wrap "      " 79 | trim}}{{color "reset"}}
    32     Message: {{color "green"}}{{.content | fromhtml | wrap "      " 79 | trim}}{{color "reset"}}
    33 {{- range .media_attachments}}
    33 {{- range .media_attachments}}
    34     - Attachment ID: {{printf "%.0f" .id}}
    34     - Attachment ID: {{.id}}
    35 {{- if .text_url}}
    35 {{- if .text_url}}
    36       Text URL: {{.text_url}}{{else if .url}}
    36       Text URL: {{.text_url}}{{else if .url}}
    37       URL: {{.url}}{{else if .remote_url}}
    37       URL: {{.url}}{{else if .remote_url}}
    38       Remote URL: {{.remote_url}}{{end}}{{end}}{{end}}{{end}}
    38       Remote URL: {{.remote_url}}{{end}}{{end}}{{end}}{{end}}