# HG changeset patch # User Mikael Berthe # Date 1494186890 -7200 # Node ID 4b80a53969611d16f2f3d1cc16e46d6a76e52872 # Parent 4c0206d283e5fea8a632ed215f9832fae8c69af4 Update templates / ANSI theme diff -r 4c0206d283e5 -r 4b80a5396961 templates/ansi-status.tmpl --- a/templates/ansi-status.tmpl Sun May 07 21:54:24 2017 +0200 +++ b/templates/ansi-status.tmpl Sun May 07 21:54:50 2017 +0200 @@ -13,7 +13,7 @@ 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}} @@ -27,7 +27,7 @@ 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 4c0206d283e5 -r 4b80a5396961 templates/themes/ansi/context.tmpl --- a/templates/themes/ansi/context.tmpl Sun May 07 21:54:24 2017 +0200 +++ b/templates/themes/ansi/context.tmpl Sun May 07 21:54:50 2017 +0200 @@ -9,7 +9,7 @@ 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}} @@ -26,7 +26,7 @@ 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 4c0206d283e5 -r 4b80a5396961 templates/themes/ansi/instance.tmpl --- a/templates/themes/ansi/instance.tmpl Sun May 07 21:54:24 2017 +0200 +++ b/templates/themes/ansi/instance.tmpl Sun May 07 21:54:50 2017 +0200 @@ -2,4 +2,4 @@ URI: {{color "magenta"}}{{.uri}}{{color "reset"}} Email: {{.email}} Version: {{.version}} - Description: {{color "blue"}}{{.description | fromhtml}}{{color "reset"}} + Description: {{color "blue"}}{{.description | fromhtml | wrap " " 80 | trim}}{{color "reset"}} diff -r 4c0206d283e5 -r 4b80a5396961 templates/themes/ansi/results.tmpl --- a/templates/themes/ansi/results.tmpl Sun May 07 21:54:24 2017 +0200 +++ b/templates/themes/ansi/results.tmpl Sun May 07 21:54:50 2017 +0200 @@ -10,7 +10,7 @@ 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}}{{end}}{{/* of range */}} {{end}}{{/* of accounts */}} @@ -24,7 +24,7 @@ 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 4c0206d283e5 -r 4b80a5396961 templates/themes/ansi/status.tmpl --- a/templates/themes/ansi/status.tmpl Sun May 07 21:54:24 2017 +0200 +++ b/templates/themes/ansi/status.tmpl Sun May 07 21:54:50 2017 +0200 @@ -13,7 +13,7 @@ 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}} @@ -27,7 +27,7 @@ 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}}