templates/ansi-status.tmpl
changeset 76 f155f9d86832
parent 59 ff88978ceb55
child 78 b40bc3a8b572
equal deleted inserted replaced
75:447ac88b67c6 76:f155f9d86832
     1 - Status ID: {{color "red"}}{{.id|printf "%.0f"}}{{color "reset"}}  {{color "magenta"}}@{{.account.acct}}{{color "reset"}}
     1 - Status ID: {{color "red"}}{{printf "%.0f" .id}}{{color "reset"}}  {{color "magenta"}}@{{.account.acct}}{{color "reset"}}
     2   Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}}
     2   Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}}
     3   Date: {{.created_at}}
     3   Date: {{.created_at}}
     4   URL: {{.url}}
     4   URL: {{.url}}
     5 {{- if gt .in_reply_to_id 0.0}}
     5 {{- if gt .in_reply_to_id 0.0}}
     6   Replying to: {{.in_reply_to_id}}{{end}}
     6   Replying to: {{printf "%.0f" .in_reply_to_id}}{{end}}
     7 {{- with .spoiler_text}}
     7 {{- with .spoiler_text}}
     8   Spoiler: {{.}}{{end}}
     8   Spoiler: {{.}}{{end}}
     9 {{- if .reblog }}{{with .reblog}}
     9 {{- if .reblog }}{{with .reblog}}
    10   {{color ",,bold"}}Reblogged from: {{color "magenta"}}@{{.account.acct}}{{color "reset"}}
    10   {{color ",,bold"}}Reblogged from: {{color "magenta"}}@{{.account.acct}}{{color "reset"}}
    11     ID: {{.id|printf "%.0f"}}
    11     ID: {{printf "%.0f" .id}}
    12     Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}}
    12     Name: {{color ",,bold"}}{{.account.display_name}}{{color "reset"}}
    13     Date: {{.created_at}}
    13     Date: {{.created_at}}
    14     Message: {{color "blue"}}{{.content | fromhtml}}{{color "reset"}}
    14     Message: {{color "blue"}}{{.content | fromhtml}}{{color "reset"}}
    15 {{- range .media_attachments}}
    15 {{- range .media_attachments}}
    16     - Attachment ID: {{.id|printf "%.0f"}}
    16     - Attachment ID: {{printf "%.0f" .id}}
    17 {{- if .text_url}}
    17 {{- if .text_url}}
    18       Text URL: {{.text_url}}{{else if .url}}
    18       Text URL: {{.text_url}}{{else if .url}}
    19       URL: {{.url}}{{else if .remote_url}}
    19       URL: {{.url}}{{else if .remote_url}}
    20       Remote URL: {{.remote_url}}{{end}}{{end}}
    20       Remote URL: {{.remote_url}}{{end}}{{end}}
    21 {{end}}{{else}}
    21 {{end}}{{else}}
    22   Message: {{color "blue"}}{{.content | fromhtml}}{{color "reset"}}
    22   Message: {{color "blue"}}{{.content | fromhtml}}{{color "reset"}}
    23 {{- range .media_attachments}}
    23 {{- range .media_attachments}}
    24   - Attachment ID: {{.id|printf "%.0f"}}
    24   - Attachment ID: {{printf "%.0f" .id}}
    25 {{- if .text_url}}
    25 {{- if .text_url}}
    26     Text URL: {{.text_url}}{{else if .url}}
    26     Text URL: {{.text_url}}{{else if .url}}
    27     URL: {{.url}}{{else if .remote_url}}
    27     URL: {{.url}}{{else if .remote_url}}
    28     Remote URL: {{.remote_url}}{{end}}{{end}}
    28     Remote URL: {{.remote_url}}{{end}}{{end}}
    29 {{end -}}
    29 {{end -}}