From d32101989c7968a24bd8d3745f7766345b35f9f6 Mon Sep 17 00:00:00 2001
From: runemaster <>
Date: Thu, 9 Dec 2004 01:12:55 +0000
Subject: [PATCH] Clean up some code.  Too many tags depending on what is shown
 or not shown.  Fixed.  Seperated message control from message display. 
 Tightened up message header display.

---
 web/templates/msgs/msg.inc | 27 +++++++++++++--------------
 1 file changed, 13 insertions(+), 14 deletions(-)

diff --git a/web/templates/msgs/msg.inc b/web/templates/msgs/msg.inc
index 469a07e2c4..0aed40491d 100644
--- a/web/templates/msgs/msg.inc
+++ b/web/templates/msgs/msg.inc
@@ -1,17 +1,18 @@
 <p class="navigation"><a class="navigation" href="http://^^JS:system.inet_addr^^">Home</a> : <a class="navigation" href="/members/">Members</a> : <a class="navigation" href="index.ssjs">Groups</a> : <a class="navigation" href="subs.ssjs?msg_grp=^^group:name^^">%%group:description%%</a> :
 <a class="navigation" href="msgs.ssjs?msg_sub=^^sub:code^^">%%sub:description%%</a>
 <a class="navigation" href="subinfo.ssjs?msg_sub=^^sub:code^^">[?]</a><br /></p>
+
 <table class="msg" border="0" width="95%">
 <tr class="msg">
-    <td class="msgheader" nowrap="nowrap">Subject:</td>
+    <td width="1%" class="msgheader" nowrap="nowrap">Subject:</td>
     <td nowrap="nowrap">%%hdr:subject%%</td>
-    <td class="msgheader" nowrap="nowrap">To:</td>
+    <td width="1%" class="msgheader" nowrap="nowrap">To:</td>
     <td nowrap="nowrap">%%hdr:to%%</td>
 </tr>
 <tr class="msg">
-    <td class="msgheader" nowrap="nowrap">From:</td>
+    <td width="1%" class="msgheader" nowrap="nowrap">From:</td>
     <td nowrap="nowrap">%%hdr:from%%</td>
-    <td class="msgheader" nowrap="nowrap">Date:</td>
+    <td width="1%" class="msgheader" nowrap="nowrap">Date:</td>
     <td nowrap="nowrap">%%JS:system.timestr(@@hdr:when_written_time@@)%%</td>
 </tr>
 <tr><td colspan="4"><hr /></td></tr>
@@ -22,20 +23,18 @@
         </object>
     </td>
 </tr>
+</table>
+<table class="msg" width="95%">
 <tr>
-<td class="msgnavleft">@@prevlink@@</td>
-<td class="msgnavmid"><a href="reply.ssjs?msg_sub=^^sub:code^^&amp;reply_to=^^hdr:number^^">Reply</a></td>
-@@JS:template.can_delete?'<td class="msgnavmid"><a href="management.ssjs?Action=Delete+Message%28s%29&amp;msg_sub=^^sub:code^^&amp;number=^^hdr:number^^">Delete</a></td>':'<td class="msgnavmid">Delete</td>'@@
-<td class="msgnavright">@@nextlink@@</td>
+    <td class="msgnavleft">@@prevlink@@</td>
+    <td class="msgnavmid"><a href="reply.ssjs?msg_sub=^^sub:code^^&amp;reply_to=^^hdr:number^^">Reply</a></td>
+    @@JS:template.can_delete?'<td class="msgnavmid"><a href="management.ssjs?Action=Delete+Message%28s%29&amp;msg_sub=^^sub:code^^&amp;number=^^hdr:number^^">Delete</a></td>':'<td class="msgnavmid">Delete</td>'@@
+    <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>'; else '';@@
-<<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) '<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 '';@@
 </table>
+
 @@JS:if(template.attachments==undefined) '<!--'; else '';@@
 <b>Attachments:</b><br />
 <<REPEAT attachments>>
-- 
GitLab