From 77c5c2a02bcca08aded181a82c85befbc111fe4a Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Sun, 27 Jan 2019 16:08:15 +0530 Subject: 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. --- mumi/web/view/html.scm | 7 ++++--- 1 file 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 -;;; Copyright © 2018 Arun Isaac +;;; Copyright © 2018, 2019 Arun Isaac ;;; ;;; 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 -- cgit v1.2.3