diff options
author | Arun Isaac <arunisaac@systemreboot.net> | 2019-01-27 16:08:15 +0530 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2019-01-27 12:55:39 +0100 |
commit | 77c5c2a02bcca08aded181a82c85befbc111fe4a (patch) | |
tree | 02ae81b8a96364ffc7d60ea49dfb13665aee1be6 | |
parent | bfd96ce76b4600ae232e6548b26c9365095fd174 (diff) |
Display subject only when message actually has a subject.
* mumi/web/view/html.scm (issue-page): Check if message actually has a
subject field before attempting to display it.
-rw-r--r-- | mumi/web/view/html.scm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mumi/web/view/html.scm b/mumi/web/view/html.scm index 4af8d5f..ad2888c 100644 --- a/mumi/web/view/html.scm +++ b/mumi/web/view/html.scm @@ -1,6 +1,6 @@ ;;; mumi -- Mediocre, uh, mail interface ;;; Copyright © 2016, 2017, 2018 Ricardo Wurmus <rekado@elephly.net> -;;; Copyright © 2018 Arun Isaac <arunisaac@systemreboot.net> +;;; Copyright © 2018, 2019 Arun Isaac <arunisaac@systemreboot.net> ;;; ;;; This program is free software: you can redistribute it and/or ;;; modify it under the terms of the GNU Affero General Public License @@ -281,8 +281,9 @@ range. The supported arguments are the same as for " (a (@ (href ,(string-append "#" (number->string message-number)))) ,(date->string (date message))))) - ,@(if (string-suffix? (or previous-subject "") - (or (subject message) "")) + ,@(if (or (string-suffix? (or previous-subject "") + (or (subject message) "")) + (not (subject message))) '() `((div (@ (class "subject")) ,(subject message)))) (div |