Debian Codegraph @

templates/themes/ansi/notification.tmpl

raw
1 - Notification ID: {{color "red"}}{{.id}}{{color "reset"}}
2 Type: {{color ",,bold"}}{{.type}}{{color "reset"}}
3 Timestamp: {{.created_at | tolocal}}
4 {{- with .url}}
5 URL: {{.url}}{{end}}
6 {{- with .account}}
7 - Account: ({{.id}}) {{color "magenta"}}@{{.acct}}{{color "reset"}}{{if .display_name}} - {{color "black,,bold"}}{{.display_name}}{{color "reset"}}{{end}}{{end}}
8 {{- with .status}}
9 - Status ID: {{color "red"}}{{.id}}{{color "reset"}} {{color "magenta"}}@{{.account.acct}}{{color "reset"}}
10 Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}}
11 Visibility: {{.visibility}}
12 Date: {{.created_at | tolocal}}
13 URL: {{.url}}
14 {{- if .reblog }}{{with .reblog}}
15 {{color ",,bold"}}Reblogged from: {{color "magenta"}}@{{.account.acct}}{{color "reset"}}
16 ID: {{.id}}
17 Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}}
18 Date: {{.created_at | tolocal}}
19 {{- if .in_reply_to_id}}
20 Replying to: {{.in_reply_to_id}}{{end}}
21 {{- if .sensitive}}
22 Sensitive: true{{end}}
23 {{- with .spoiler_text}}
24 Spoiler: {{.}}{{end}}
25 Message: {{color "blue"}}{{.content | fromhtml | wrap " " 79 | trim}}{{color "reset"}}{{end}}{{else}}
26 {{- if .in_reply_to_id}}
27 Replying to: {{.in_reply_to_id}}{{end}}
28 {{- if .sensitive}}
29 Sensitive: true{{end}}
30 {{- with .spoiler_text}}
31 Spoiler: {{.}}{{end}}
32 Message: {{color "blue"}}{{.content | fromhtml | wrap " " 79 | trim}}{{color "reset"}}
33 {{- range .media_attachments}}
34 - Attachment ID: {{.id}}
35 {{- if .text_url}}
36 Text URL: {{.text_url}}{{else if .url}}
37 URL: {{.url}}{{else if .remote_url}}
38 Remote URL: {{.remote_url}}{{end}}{{end}}{{end}}{{end}}