From d49bd72a729f0862fc17b93750208be87ba1fbb2 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Wed, 15 Dec 2004 20:17:28 +0000
Subject: [PATCH] Use comments to hide the reply box if no replies.

---
 web/templates/msgs/msg.inc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/web/templates/msgs/msg.inc b/web/templates/msgs/msg.inc
index a44b289510..44cebe3394 100644
--- a/web/templates/msgs/msg.inc
+++ b/web/templates/msgs/msg.inc
@@ -40,7 +40,9 @@
     <td class="msgnavright">@@nextlink@@</td>
 </tr>
 @@JS:if(template.replyto!=undefined) '<tr class="msg"><td colspan="4"><b>In Reply To: </b><a href="msg.ssjs?msg_sub='+sub+'&amp;message='+template.replyto.number+'">'+template.replyto.subject+'</a> ('+template.replyto.from+')</td></tr>'; else '';@@
-@@JS:if(template.replies.length>0) '<tr class="msg"><td colspan="4"><b>Replies: </b><<REPEAT replies>><a href="msg.ssjs?msg_sub=^^sub:code^^&amp;message=^^replies:number^^">%%replies:subject%%</a> (%%replies:from%%)<<END REPEAT replies>></td></tr>'; else '';@@
+@@JS:if(template.replies.length<=0) '<!--' else ''@@
+<tr class="msg"><td colspan="4"><b>Replies: </b><<REPEAT replies>><a href="msg.ssjs?msg_sub=^^sub:code^^&amp;message=^^replies:number^^">%%replies:subject%%</a> (%%replies:from%%)<<END REPEAT replies>></td></tr>
+@@JS:if(template.replies.length<=0) '-->' else ''@@
 @@JS:if(template.attachments==undefined) '<!--'; else '';@@
 <tr class="msg"><td colspan="4"><b>Attachments:</b><br />
 <<REPEAT attachments>>
-- 
GitLab