templates/ansi-notification.tmpl
changeset 60 1ca78111de77
child 61 e29fec86e0c9
equal deleted inserted replaced
59:ff88978ceb55 60:1ca78111de77
       
     1 - Notification ID: {{color "red"}}{{.id|printf "%.0f"}}{{color "reset"}}
       
     2   Type: {{color ",,bold"}}{{.type}}{{color "reset"}}
       
     3   Timestamp: {{.created_at}}
       
     4 {{- with .url}}
       
     5       URL: {{.url}}{{end}}
       
     6 {{- with .account}}
       
     7   - Account: ({{.id|printf "%.0f"}}) @{{.acct}} - {{.display_name}}{{end}}
       
     8 {{- with .status}}
       
     9   - Status ID: {{color "red"}}{{.id|printf "%.0f"}}{{color "reset"}}  {{color "magenta"}}@{{.account.acct}}{{color "reset"}}
       
    10     Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}}
       
    11     Date: {{.created_at}}
       
    12     URL: {{.url}}
       
    13 {{- if gt .in_reply_to_id 0.0}}
       
    14     Replying to: {{.in_reply_to_id}}{{end}}
       
    15 {{- with .spoiler_text}}
       
    16     Spoiler: {{.}}{{end}}
       
    17 {{- if .reblog }}{{with .reblog}}
       
    18     {{color ",,bold"}}Reblogged from: {{color "magenta"}}@{{.account.acct}}{{color "reset"}}
       
    19       ID: {{.id|printf "%.0f"}}
       
    20       Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}}
       
    21       Date: {{.created_at}}
       
    22       Message: {{color "blue"}}{{.content | fromhtml}}{{color "reset"}}{{end}}{{else}}
       
    23     Message: {{color "blue"}}{{.content | fromhtml}}{{color "reset"}}
       
    24 {{- range .media_attachments}}
       
    25     - Attachment ID: {{.id|printf "%.0f"}}
       
    26 {{- if .text_url}}
       
    27       Text URL: {{.text_url}}{{else if .url}}
       
    28       URL: {{.url}}{{else if .remote_url}}
       
    29       Remote URL: {{.remote_url}}{{end}}{{end}}{{end}}{{end}}