author | Mikael Berthe <mikael@lilotux.net> |
Sat, 15 Jul 2017 11:00:12 +0200 | |
changeset 163 | 1e9e5e3ae30c |
parent 124 | 20d514540f37 |
child 169 | 26a1f0e705c9 |
permissions | -rw-r--r-- |
76
f155f9d86832
Fix in_reply_to ID format in templates
Mikael Berthe <mikael@lilotux.net>
parents:
61
diff
changeset
|
1 |
- Notification ID: {{color "red"}}{{printf "%.0f" .id}}{{color "reset"}} |
60
1ca78111de77
Add template for notifications
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
2 |
Type: {{color ",,bold"}}{{.type}}{{color "reset"}} |
120
54b6f2a4098b
Add template command tolocal; update templates and documentation
Mikael Berthe <mikael@lilotux.net>
parents:
117
diff
changeset
|
3 |
Timestamp: {{.created_at | tolocal}} |
60
1ca78111de77
Add template for notifications
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
4 |
{{- with .url}} |
1ca78111de77
Add template for notifications
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
5 |
URL: {{.url}}{{end}} |
1ca78111de77
Add template for notifications
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
6 |
{{- with .account}} |
76
f155f9d86832
Fix in_reply_to ID format in templates
Mikael Berthe <mikael@lilotux.net>
parents:
61
diff
changeset
|
7 |
- Account: ({{printf "%.0f" .id}}) {{color "magenta"}}@{{.acct}}{{color "reset"}}{{if .display_name}} - {{color "white,,bold"}}{{.display_name}}{{color "reset"}}{{end}}{{end}} |
60
1ca78111de77
Add template for notifications
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
8 |
{{- with .status}} |
76
f155f9d86832
Fix in_reply_to ID format in templates
Mikael Berthe <mikael@lilotux.net>
parents:
61
diff
changeset
|
9 |
- Status ID: {{color "red"}}{{printf "%.0f" .id}}{{color "reset"}} {{color "magenta"}}@{{.account.acct}}{{color "reset"}} |
60
1ca78111de77
Add template for notifications
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
10 |
Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}} |
163
1e9e5e3ae30c
Add private message information to templates for notifications as well
Mikael Berthe <mikael@lilotux.net>
parents:
124
diff
changeset
|
11 |
{{- if eq .visibility "private"}} |
1e9e5e3ae30c
Add private message information to templates for notifications as well
Mikael Berthe <mikael@lilotux.net>
parents:
124
diff
changeset
|
12 |
Private: true{{end}} |
120
54b6f2a4098b
Add template command tolocal; update templates and documentation
Mikael Berthe <mikael@lilotux.net>
parents:
117
diff
changeset
|
13 |
Date: {{.created_at | tolocal}} |
60
1ca78111de77
Add template for notifications
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
14 |
URL: {{.url}} |
1ca78111de77
Add template for notifications
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
15 |
{{- if .reblog }}{{with .reblog}} |
1ca78111de77
Add template for notifications
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
16 |
{{color ",,bold"}}Reblogged from: {{color "magenta"}}@{{.account.acct}}{{color "reset"}} |
76
f155f9d86832
Fix in_reply_to ID format in templates
Mikael Berthe <mikael@lilotux.net>
parents:
61
diff
changeset
|
17 |
ID: {{printf "%.0f" .id}} |
60
1ca78111de77
Add template for notifications
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
18 |
Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}} |
120
54b6f2a4098b
Add template command tolocal; update templates and documentation
Mikael Berthe <mikael@lilotux.net>
parents:
117
diff
changeset
|
19 |
Date: {{.created_at | tolocal}} |
78 | 20 |
{{- if gt .in_reply_to_id 0.0}} |
117
e742059aa3e1
Fix in_reply_to_id format in templates
Mikael Berthe <mikael@lilotux.net>
parents:
99
diff
changeset
|
21 |
Replying to: {{printf "%.0f" .in_reply_to_id}}{{end}} |
78 | 22 |
{{- if .sensitive}} |
23 |
Sensitive: true{{end}} |
|
24 |
{{- with .spoiler_text}} |
|
25 |
Spoiler: {{.}}{{end}} |
|
124 | 26 |
Message: {{color "blue"}}{{.content | fromhtml | wrap " " 79 | trim}}{{color "reset"}}{{end}}{{else}} |
78 | 27 |
{{- if gt .in_reply_to_id 0.0}} |
117
e742059aa3e1
Fix in_reply_to_id format in templates
Mikael Berthe <mikael@lilotux.net>
parents:
99
diff
changeset
|
28 |
Replying to: {{printf "%.0f" .in_reply_to_id}}{{end}} |
78 | 29 |
{{- if .sensitive}} |
30 |
Sensitive: true{{end}} |
|
31 |
{{- with .spoiler_text}} |
|
32 |
Spoiler: {{.}}{{end}} |
|
124 | 33 |
Message: {{color "blue"}}{{.content | fromhtml | wrap " " 79 | trim}}{{color "reset"}} |
60
1ca78111de77
Add template for notifications
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
34 |
{{- range .media_attachments}} |
76
f155f9d86832
Fix in_reply_to ID format in templates
Mikael Berthe <mikael@lilotux.net>
parents:
61
diff
changeset
|
35 |
- Attachment ID: {{printf "%.0f" .id}} |
60
1ca78111de77
Add template for notifications
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
36 |
{{- if .text_url}} |
1ca78111de77
Add template for notifications
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
37 |
Text URL: {{.text_url}}{{else if .url}} |
1ca78111de77
Add template for notifications
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
38 |
URL: {{.url}}{{else if .remote_url}} |
1ca78111de77
Add template for notifications
Mikael Berthe <mikael@lilotux.net>
parents:
diff
changeset
|
39 |
Remote URL: {{.remote_url}}{{end}}{{end}}{{end}}{{end}} |