Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
<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> : <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="msgs.ssjs?msg_sub=^^sub:code^^">%%sub:description%%</a>
<a class="navigation" href="subinfo.ssjs?msg_sub=^^sub:code^^">[?]</a><br /></p> <a class="navigation" href="subinfo.ssjs?msg_sub=^^sub:code^^">[?]</a><br /></p>
<table class="msg" border="0" width="95%"> <table class="msg" border="0" width="95%">
<tr class="msg"> <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 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> <td nowrap="nowrap">%%hdr:to%%</td>
</tr> </tr>
<tr class="msg"> <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 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> <td nowrap="nowrap">%%JS:system.timestr(@@hdr:when_written_time@@)%%</td>
</tr> </tr>
<tr><td colspan="4"><hr /></td></tr> <tr><td colspan="4"><hr /></td></tr>
...@@ -22,20 +23,18 @@ ...@@ -22,20 +23,18 @@
</object> </object>
</td> </td>
</tr> </tr>
</table>
<table class="msg" width="95%">
<tr> <tr>
<td class="msgnavleft">@@prevlink@@</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> <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>'@@ @@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="msgnavright">@@nextlink@@</td>
</tr> </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.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 '';@@ @@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 '';@@
<<REPEAT replies>>
<a href="msg.ssjs?msg_sub=^^sub:code^^&amp;message=^^replies:number^^">%%replies:subject%%</a> (%%replies:from%%)
<<END REPEAT replies>>
</td>
</tr>
</table> </table>
@@JS:if(template.attachments==undefined) '<!--'; else '';@@ @@JS:if(template.attachments==undefined) '<!--'; else '';@@
<b>Attachments:</b><br /> <b>Attachments:</b><br />
<<REPEAT attachments>> <<REPEAT attachments>>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment