diff options
author | 2023-09-10 22:04:20 +0200 | |
---|---|---|
committer | 2023-09-20 00:05:09 +0900 | |
commit | 1e069e98c98f07e06e4994f22aa9f55d34de29be (patch) | |
tree | 8fa9efa90b19df9354beedc79eaa472e5e0f673d | |
parent | e4efb374a1a57cc00829e7b796b9a2f2ceeccd02 (diff) | |
download | alps-1e069e98c98f07e06e4994f22aa9f55d34de29be.tar.gz alps-1e069e98c98f07e06e4994f22aa9f55d34de29be.tar.bz2 alps-1e069e98c98f07e06e4994f22aa9f55d34de29be.zip |
themes/sourcehut: fix sourcehut theme
With the newer version of `go-imap` some properties got renamed and
sourcehut theme stop working.
-rw-r--r-- | themes/sourcehut/mailbox.html | 6 | ||||
-rw-r--r-- | themes/sourcehut/message.html | 10 |
2 files changed, 8 insertions, 8 deletions
diff --git a/themes/sourcehut/mailbox.html b/themes/sourcehut/mailbox.html index e4bada5..e775b98 100644 --- a/themes/sourcehut/mailbox.html +++ b/themes/sourcehut/mailbox.html @@ -60,10 +60,10 @@ </span> <span class="text-normal from"> {{ range .Envelope.From }} - {{ if .PersonalName }} - {{ .PersonalName }} + {{ if .Name }} + {{ .Name }} {{ else }} - {{ .MailboxName }}@{{ .HostName }} + {{ .Addr }} {{ end }} {{ end }} </span> diff --git a/themes/sourcehut/message.html b/themes/sourcehut/message.html index 077d33c..f107e81 100644 --- a/themes/sourcehut/message.html +++ b/themes/sourcehut/message.html @@ -78,8 +78,8 @@ {{define "addr-list"}} {{range $i, $addr := .}} {{- if $i}},{{end}} - {{.PersonalName}} - <<a href="/compose?to={{.Address}}">{{.Address}}</a>> + {{.Name}} + <<a href="/compose?to={{.Addr}}">{{.Addr}}</a>> {{- end}} {{end}} @@ -125,7 +125,7 @@ <details> <summary>Move to another mailbox</summary> <form method="post" action="/message/{{.Mailbox.Name | pathescape}}/move"> - <input type="hidden" name="uids" value="{{.Message.Uid}}"> + <input type="hidden" name="uids" value="{{.Message.UID}}"> <div class="form-group"> <select class="form-control" name="to" id="move-to"> {{range .Mailboxes}} @@ -142,7 +142,7 @@ <details> <summary>Delete</summary> <form method="post" action="/message/{{.Mailbox.Name | pathescape}}/delete"> - <input type="hidden" name="uids" value="{{.Message.Uid}}"> + <input type="hidden" name="uids" value="{{.Message.UID}}"> <p>Are you sure?</p> <div class="pull-right"> <button class="btn btn-danger">Delete</button> @@ -154,7 +154,7 @@ <details> <summary>Edit flags</summary> <form method="post" action="/message/{{.Mailbox.Name | pathescape}}/flag"> - <input type="hidden" name="uids" value="{{.Message.Uid}}"> + <input type="hidden" name="uids" value="{{.Message.UID}}"> <div class="form-group"> {{range $name, $has := .Flags}} {{if ismutableflag $name}} |