~emersion/alps-dev

base HTML: fix nil on emails without a text part v1 APPLIED

наб: 2
 base HTML: fix nil on emails without a text part
 sourcehut theme: fix nil on emails without a text part

 2 files changed, 2 insertions(+), 2 deletions(-)
Both pushed, thanks!
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~emersion/alps-dev/patches/11581/mbox | git am -3
Learn more about email & git
View this thread in the archives

[PATCH 1/2] base HTML: fix nil on emails without a text part Export this patch

P.a. to 50e131244ad78fd1e4c216770ff69471a6fcb03b which solved
https://todo.sr.ht/~emersion/alps/100

Closes: https://todo.sr.ht/~emersion/alps/102
---
 plugins/base/public/mailbox.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/plugins/base/public/mailbox.html b/plugins/base/public/mailbox.html
index ff2e3a9..51a78d8 100644
--- a/plugins/base/public/mailbox.html
+++ b/plugins/base/public/mailbox.html
@@ -27,7 +27,7 @@
  <ul>
    {{range .Messages}}
      <li>
        <a href="{{.TextPart.URL false}}">
        <a href="{{if .TextPart}}{{.TextPart.URL false}}{{else}}{{.URL}}{{end}}">
          {{if .Envelope.Subject}}
            {{.Envelope.Subject}}
          {{else}}
-- 
2.20.1

[PATCH 2/2] sourcehut theme: fix nil on emails without a text part Export this patch

P.a. to 50e131244ad78fd1e4c216770ff69471a6fcb03b which solved
https://todo.sr.ht/~emersion/alps/100

Closes: https://todo.sr.ht/~emersion/alps/102
---
 themes/sourcehut/mailbox.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/themes/sourcehut/mailbox.html b/themes/sourcehut/mailbox.html
index 1175cbe..70b0635 100644
--- a/themes/sourcehut/mailbox.html
+++ b/themes/sourcehut/mailbox.html
@@ -53,7 +53,7 @@
          <li class="nav-item">
            <a
              class="nav-link"
              href="{{.TextPart.URL false}}"
              href="{{if .TextPart}}{{.TextPart.URL false}}{{else}}{{.URL}}{{end}}"
            >
            <span class="text-muted date">
              {{ .Envelope.Date | formatdate }}
-- 
2.20.1
Both pushed, thanks!