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