Commit d3210198 authored by runemaster's avatar runemaster
Browse files

Clean up some code. Too many tags depending on what is shown or not shown. ...

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.
parent 94ac2b94
<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>>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment