Add ansi-dark theme
authorMikael Berthe <mikael@lilotux.net>
Sat, 13 May 2017 12:45:52 +0200
changeset 134 a057c44144a4
parent 133 bdbdafd5e665
child 135 55b4a119c7c6
Add ansi-dark theme
templates/themes/ansi-dark/account.tmpl
templates/themes/ansi-dark/card.tmpl
templates/themes/ansi-dark/client.tmpl
templates/themes/ansi-dark/context.tmpl
templates/themes/ansi-dark/instance.tmpl
templates/themes/ansi-dark/instancestats.tmpl
templates/themes/ansi-dark/notification.tmpl
templates/themes/ansi-dark/relationship.tmpl
templates/themes/ansi-dark/report.tmpl
templates/themes/ansi-dark/results.tmpl
templates/themes/ansi-dark/status.tmpl
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/templates/themes/ansi-dark/account.tmpl	Sat May 13 12:45:52 2017 +0200
@@ -0,0 +1,12 @@
+- Account ID: {{color "red"}}{{printf "%.0f" .id}}{{color "reset"}}  {{color "magenta"}}@{{.username}}{{color "reset"}}
+  UID: {{color "red"}}{{.acct}}{{color "reset"}}
+  Display name: {{color "white,,bold"}}{{.display_name}}{{color "reset"}}
+  Date: {{.created_at}}
+  URL: {{color "cyan"}}{{.url}}{{color "reset"}}
+  Statuses: {{.statuses_count}}
+  Followers: {{.followers_count}}
+  Following: {{.following_count}}
+{{- with .note}}{{if ne . "<p></p>"}}
+  Note: {{color "yellow"}}{{. | fromhtml | wrap "   " 79 | trim}}{{color "reset"}}{{end}}{{end}}
+{{- if eq .locked true}}
+  Locked: true{{end}}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/templates/themes/ansi-dark/card.tmpl	Sat May 13 12:45:52 2017 +0200
@@ -0,0 +1,4 @@
+- Title: {{color ",,bold"}}{{.title}}{{color "reset"}}
+  URL:   {{.url}}
+  Image: {{.image}}
+  Description: {{color "blue"}}{{.description}}{{color "reset"}}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/templates/themes/ansi-dark/client.tmpl	Sat May 13 12:45:52 2017 +0200
@@ -0,0 +1,2 @@
+Instance URL: {{color ",,bold"}}{{.InstanceURL}}{{color "reset"}}
+App ID: {{.ID}}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/templates/themes/ansi-dark/context.tmpl	Sat May 13 12:45:52 2017 +0200
@@ -0,0 +1,35 @@
+- Context:
+  Ancestors:
+{{- range .ancestors}}
+  - Status ID: {{color "red"}}{{printf "%.0f" .id}}{{color "reset"}}  {{color "magenta"}}@{{.account.acct}}{{color "reset"}}
+    Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}}
+    Date: {{.created_at}}
+    URL: {{.url}}
+{{- if .sensitive}}
+    Sensitive: true{{end}}
+{{- with .spoiler_text}}
+    Spoiler: {{.}}{{end}}
+    Message: {{color "blue"}}{{.content | fromhtml | wrap "     " 80 | trim}}{{color "reset"}}
+{{- range .media_attachments}}
+    - Attachment ID: {{printf "%.0f" .id}}
+{{- if .text_url}}
+      Text URL: {{.text_url}}{{else if .url}}
+      URL: {{.url}}{{else if .remote_url}}
+      Remote URL: {{.remote_url}}{{end}}{{end}}{{end}}
+  Descendants:
+{{- range .descendants}}
+  - Status ID: {{color "red"}}{{printf "%.0f" .id}}{{color "reset"}}  {{color "magenta"}}@{{.account.acct}}{{color "reset"}}
+    Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}}
+    Date: {{.created_at}}
+    URL: {{.url}}
+{{- if .sensitive}}
+    Sensitive: true{{end}}
+{{- with .spoiler_text}}
+    Spoiler: {{.}}{{end}}
+    Message: {{color "blue"}}{{.content | fromhtml | wrap "     " 80 | trim}}{{color "reset"}}
+{{- range .media_attachments}}
+    - Attachment ID: {{printf "%.0f" .id}}
+{{- if .text_url}}
+      Text URL: {{.text_url}}{{else if .url}}
+      URL: {{.url}}{{else if .remote_url}}
+      Remote URL: {{.remote_url}}{{end}}{{end}}{{end}}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/templates/themes/ansi-dark/instance.tmpl	Sat May 13 12:45:52 2017 +0200
@@ -0,0 +1,5 @@
+- Title:    {{color ",,bold"}}{{.title}}{{color "reset"}}
+  URI:      {{color "magenta"}}{{.uri}}{{color "reset"}}
+  Email:    {{.email}}
+  Version:  {{.version}}
+  Description: {{color "blue"}}{{.description | fromhtml | wrap "     " 80 | trim}}{{color "reset"}}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/templates/themes/ansi-dark/instancestats.tmpl	Sat May 13 12:45:52 2017 +0200
@@ -0,0 +1,6 @@
+- Instance:   {{color ",,bold"}}{{.instance_name}}{{color "reset"}}
+  Users:      {{.users}}
+  Statuses:   {{.statuses}}
+  Open:       {{.openRegistrations}}
+  Up:         {{.up}}
+  Timestamp:  {{.date | fromunix}}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/templates/themes/ansi-dark/notification.tmpl	Sat May 13 12:45:52 2017 +0200
@@ -0,0 +1,37 @@
+- Notification ID: {{color "red"}}{{printf "%.0f" .id}}{{color "reset"}}
+  Type: {{color ",,bold"}}{{.type}}{{color "reset"}}
+  Timestamp: {{.created_at | tolocal}}
+{{- with .url}}
+      URL: {{.url}}{{end}}
+{{- with .account}}
+  - Account: ({{printf "%.0f" .id}}) {{color "magenta"}}@{{.acct}}{{color "reset"}}{{if .display_name}} - {{color "white,,bold"}}{{.display_name}}{{color "reset"}}{{end}}{{end}}
+{{- with .status}}
+  - Status ID: {{color "red"}}{{printf "%.0f" .id}}{{color "reset"}}  {{color "magenta"}}@{{.account.acct}}{{color "reset"}}
+    Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}}
+    Date: {{.created_at | tolocal}}
+    URL: {{.url}}
+{{- if .reblog }}{{with .reblog}}
+    {{color ",,bold"}}Reblogged from: {{color "magenta"}}@{{.account.acct}}{{color "reset"}}
+      ID: {{printf "%.0f" .id}}
+      Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}}
+      Date: {{.created_at | tolocal}}
+{{- if gt .in_reply_to_id 0.0}}
+      Replying to: {{printf "%.0f" .in_reply_to_id}}{{end}}
+{{- if .sensitive}}
+      Sensitive: true{{end}}
+{{- with .spoiler_text}}
+      Spoiler: {{.}}{{end}}
+      Message: {{color "green"}}{{.content | fromhtml | wrap "        " 79 | trim}}{{color "reset"}}{{end}}{{else}}
+{{- if gt .in_reply_to_id 0.0}}
+    Replying to: {{printf "%.0f" .in_reply_to_id}}{{end}}
+{{- if .sensitive}}
+  Sensitive: true{{end}}
+{{- with .spoiler_text}}
+    Spoiler: {{.}}{{end}}
+    Message: {{color "green"}}{{.content | fromhtml | wrap "      " 79 | trim}}{{color "reset"}}
+{{- range .media_attachments}}
+    - Attachment ID: {{printf "%.0f" .id}}
+{{- if .text_url}}
+      Text URL: {{.text_url}}{{else if .url}}
+      URL: {{.url}}{{else if .remote_url}}
+      Remote URL: {{.remote_url}}{{end}}{{end}}{{end}}{{end}}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/templates/themes/ansi-dark/relationship.tmpl	Sat May 13 12:45:52 2017 +0200
@@ -0,0 +1,6 @@
+- ID: {{color "red"}}{{printf "%.0f" .id}}{{color "reset"}}
+  Following:    {{.following}}
+  Followed-by:  {{.followed_by}}
+  Blocking:     {{.blocking}}
+  Muting:       {{.muting}}
+  Requested:    {{.requested}}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/templates/themes/ansi-dark/report.tmpl	Sat May 13 12:45:52 2017 +0200
@@ -0,0 +1,2 @@
+- Report ID: {{color "red"}}{{printf "%.0f" .id}}{{color "reset"}}
+  Action taken: {{.action_taken}}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/templates/themes/ansi-dark/results.tmpl	Sat May 13 12:45:52 2017 +0200
@@ -0,0 +1,37 @@
+{{with .accounts}}
+{{- color ",,bold"}}Accounts:{{color "reset"}}
+{{- range .}}
+  - Account ID: {{color "red"}}{{printf "%.0f" .id}}{{color "reset"}}  {{color "magenta"}}@{{.username}}{{color "reset"}}
+    UID: {{color "red"}}{{.acct}}{{color "reset"}}
+    Display name: {{color "white,,bold"}}{{.display_name}}{{color "reset"}}
+    Date: {{.created_at}}
+    URL: {{color "cyan"}}{{.url}}{{color "reset"}}
+    Statuses: {{.statuses_count}}
+    Followers: {{.followers_count}}
+    Following: {{.following_count}}
+  {{- with .note}}{{if ne . "<p></p>"}}
+    Note: {{color "yellow"}}{{. | fromhtml | wrap "     " 80 | trim}}{{color "reset"}}{{end}}{{end}}
+  {{- if eq .locked true}}
+    Locked: true{{end}}{{end}}{{/* of range */}}
+{{end}}{{/* of accounts */}}
+{{- with .statuses}}{{color ",,bold"}}Statuses:{{color "reset"}}
+{{- range .}}
+  - Status ID: {{color "red"}}{{printf "%.0f" .id}}{{color "reset"}}  {{color "magenta"}}@{{.account.acct}}{{color "reset"}}
+    Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}}
+    Date: {{.created_at}}
+    URL: {{.url}}
+{{- if .sensitive}}
+    Sensitive: true{{end}}
+{{- with .spoiler_text}}
+    Spoiler: {{.}}{{end}}
+    Message: {{color "blue"}}{{.content | fromhtml | wrap "     " 80 | trim}}{{color "reset"}}
+{{- range .media_attachments}}
+    - Attachment ID: {{printf "%.0f" .id}}
+{{- if .text_url}}
+      Text URL: {{.text_url}}{{else if .url}}
+      URL: {{.url}}{{else if .remote_url}}
+      Remote URL: {{.remote_url}}{{end}}{{end}}{{end}}{{/* of range */}}{{end}}{{/* of statuses */}}
+{{- with .hashtags}}{{color ",,bold"}}Hashtags:{{color "reset"}}
+{{- range .}}
+  - {{.}}{{end}}{{/* of range */}}
+{{end}}{{/* of statuses */ -}}
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/templates/themes/ansi-dark/status.tmpl	Sat May 13 12:45:52 2017 +0200
@@ -0,0 +1,37 @@
+- Status ID: {{color "red"}}{{printf "%.0f" .id}}{{color "reset"}}  {{color "magenta"}}@{{.account.acct}}{{color "reset"}}
+  Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}}
+  Date: {{.created_at | tolocal}}
+  URL: {{.url}}
+{{- if .reblog }}{{with .reblog}}
+  {{color ",,bold"}}Reblogged from: {{color "magenta"}}@{{.account.acct}}{{color "reset"}}
+    ID: {{printf "%.0f" .id}}
+    Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}}
+    Date: {{.created_at | tolocal}}
+{{- if gt .in_reply_to_id 0.0}}
+    Replying to: {{printf "%.0f" .in_reply_to_id}}{{end}}
+{{- if .sensitive}}
+  Sensitive: true{{end}}
+{{- with .spoiler_text}}
+    Spoiler: {{.}}{{end}}
+    Message: {{color "green"}}{{.content | fromhtml | wrap "       " 79 | trim}}{{color "reset"}}
+{{- range .media_attachments}}
+    - Attachment ID: {{printf "%.0f" .id}}
+{{- if .text_url}}
+      Text URL: {{.text_url}}{{else if .url}}
+      URL: {{.url}}{{else if .remote_url}}
+      Remote URL: {{.remote_url}}{{end}}{{end}}
+{{end}}{{else}}
+{{- if gt .in_reply_to_id 0.0}}
+  Replying to: {{printf "%.0f" .in_reply_to_id}}{{end}}
+{{- if .sensitive}}
+  Sensitive: true{{end}}
+{{- with .spoiler_text}}
+  Spoiler: {{.}}{{end}}
+  Message: {{color "green"}}{{.content | fromhtml | wrap "     " 79 | trim}}{{color "reset"}}
+{{- range .media_attachments}}
+  - Attachment ID: {{printf "%.0f" .id}}
+{{- if .text_url}}
+    Text URL: {{.text_url}}{{else if .url}}
+    URL: {{.url}}{{else if .remote_url}}
+    Remote URL: {{.remote_url}}{{end}}{{end}}
+{{end -}}