# HG changeset patch # User Mikael Berthe # Date 1494197162 -7200 # Node ID a179dc99a04414971b9ce1174df8c40619348976 # Parent dd260cff924eddc60dcd6504c42d10307dc57d8c Update templates diff -r dd260cff924e -r a179dc99a044 templates/ansi-account.tmpl --- a/templates/ansi-account.tmpl Sun May 07 23:22:28 2017 +0200 +++ b/templates/ansi-account.tmpl Mon May 08 00:46:02 2017 +0200 @@ -7,6 +7,6 @@ Followers: {{.followers_count}} Following: {{.following_count}} {{- with .note}}{{if ne . "

"}} - Note: {{. | fromhtml}}{{end}}{{end}} + Note: {{color "yellow"}}{{. | fromhtml | wrap " " 80 | trim}}{{color "reset"}}{{end}}{{end}} {{- if eq .locked true}} Locked: true{{end}} diff -r dd260cff924e -r a179dc99a044 templates/ansi-notification.tmpl --- a/templates/ansi-notification.tmpl Sun May 07 23:22:28 2017 +0200 +++ b/templates/ansi-notification.tmpl Mon May 08 00:46:02 2017 +0200 @@ -21,14 +21,14 @@ Sensitive: true{{end}} {{- with .spoiler_text}} Spoiler: {{.}}{{end}} - Message: {{color "blue"}}{{.content | fromhtml}}{{color "reset"}}{{end}}{{else}} + Message: {{color "blue"}}{{.content | fromhtml | wrap " " 80 | trim}}{{color "reset"}}{{end}}{{else}} {{- if gt .in_reply_to_id 0.0}} Replying to: {{.in_reply_to_id}}{{end}} {{- if .sensitive}} Sensitive: true{{end}} {{- with .spoiler_text}} Spoiler: {{.}}{{end}} - Message: {{color "blue"}}{{.content | fromhtml}}{{color "reset"}} + Message: {{color "blue"}}{{.content | fromhtml | wrap " " 80 | trim}}{{color "reset"}} {{- range .media_attachments}} - Attachment ID: {{printf "%.0f" .id}} {{- if .text_url}} diff -r dd260cff924e -r a179dc99a044 templates/themes/ansi/account.tmpl --- a/templates/themes/ansi/account.tmpl Sun May 07 23:22:28 2017 +0200 +++ b/templates/themes/ansi/account.tmpl Mon May 08 00:46:02 2017 +0200 @@ -7,6 +7,6 @@ Followers: {{.followers_count}} Following: {{.following_count}} {{- with .note}}{{if ne . "

"}} - Note: {{. | fromhtml}}{{end}}{{end}} + Note: {{color "yellow"}}{{. | fromhtml | wrap " " 80 | trim}}{{color "reset"}}{{end}}{{end}} {{- if eq .locked true}} Locked: true{{end}} diff -r dd260cff924e -r a179dc99a044 templates/themes/ansi/notification.tmpl --- a/templates/themes/ansi/notification.tmpl Sun May 07 23:22:28 2017 +0200 +++ b/templates/themes/ansi/notification.tmpl Mon May 08 00:46:02 2017 +0200 @@ -21,14 +21,14 @@ Sensitive: true{{end}} {{- with .spoiler_text}} Spoiler: {{.}}{{end}} - Message: {{color "blue"}}{{.content | fromhtml}}{{color "reset"}}{{end}}{{else}} + Message: {{color "blue"}}{{.content | fromhtml | wrap " " 80 | trim}}{{color "reset"}}{{end}}{{else}} {{- if gt .in_reply_to_id 0.0}} Replying to: {{.in_reply_to_id}}{{end}} {{- if .sensitive}} Sensitive: true{{end}} {{- with .spoiler_text}} Spoiler: {{.}}{{end}} - Message: {{color "blue"}}{{.content | fromhtml}}{{color "reset"}} + Message: {{color "blue"}}{{.content | fromhtml | wrap " " 80 | trim}}{{color "reset"}} {{- range .media_attachments}} - Attachment ID: {{printf "%.0f" .id}} {{- if .text_url}}