1
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
4
<xsl:import href="common.xsl"/>
6
<!-- Format a new thread row -->
7
<xsl:template name="max">
8
<xsl:param name="args"/>
9
<xsl:variable name="rest" select="$args[position() > 1]"/>
10
<xsl:variable name="first">
11
<xsl:value-of select="$args[position()=1]"/>
13
<xsl:variable name="best">
15
<xsl:when test="count($args) > 0">
16
<xsl:call-template name="max">
17
<xsl:with-param name="args" select="$rest"/>
20
<xsl:otherwise>0</xsl:otherwise>
24
<xsl:when test="$best > $first"><xsl:value-of select="$best"/></xsl:when>
25
<xsl:otherwise><xsl:value-of select="$first"/></xsl:otherwise>
28
<xsl:template match="row" mode="newthreads">
29
<xsl:element name="tr">
30
<xsl:attribute name="onClick">
31
<xsl:text>self.location='</xsl:text>
32
<xsl:value-of select="../server/doc-url"/>
34
<xsl:when test="sum(day) <= 1"><xsl:text>/message/</xsl:text></xsl:when>
35
<xsl:otherwise><xsl:text>/thread/</xsl:text></xsl:otherwise>
37
<xsl:value-of select="summary/id"/>
38
<xsl:text>.</xsl:text>
39
<xsl:value-of select="$ext"/>
40
<xsl:text>';</xsl:text>
42
<xsl:attribute name="onDblClick">
43
<xsl:text>self.location='</xsl:text>
44
<xsl:value-of select="../server/doc-url"/>
45
<xsl:text>/message/</xsl:text>
46
<xsl:value-of select="summary/id"/>
47
<xsl:text>.</xsl:text>
48
<xsl:value-of select="$ext"/>
49
<xsl:text>';</xsl:text>
51
<xsl:attribute name="onMouseOver">rollIn(this);</xsl:attribute>
52
<xsl:attribute name="onMouseOut">rollOut(this);</xsl:attribute>
53
<xsl:attribute name="class">
55
<xsl:when test="@selected">lit</xsl:when>
56
<xsl:when test="(position() mod 2) = 0">row1</xsl:when>
57
<xsl:otherwise>row2</xsl:otherwise>
61
<div class="squash" onclick="this.firstChild.removeAttribute('href');">
63
<xsl:when test="sum(day) <= 1">
64
<a href="../message/{summary/id}.{$ext}"><xsl:value-of select="title"/></a>
67
<a href="../thread/{summary/id}.{$ext}"><xsl:value-of select="title"/></a>
74
<xsl:apply-templates mode="email-name" select="summary/email"/>
77
<td nowrap="NOWRAP" class="chart">
78
<xsl:variable name="maxval">
79
<xsl:call-template name="max">
80
<xsl:with-param name="args" select="day"/>
83
<xsl:for-each select="day">
84
<img src="../imgs/bar.png" height="{(number(.)*21 div $maxval)+1}" width="5" alt=""/>
88
<xsl:value-of select="sum(day)"/>
91
<xsl:text> </xsl:text>
95
<!-- Format a list request -->
96
<xsl:template match="list">
99
<link rel="stylesheet" href="../fmt/default.css" type="text/css"/>
100
<title><xsl:value-of select="list/email/@name"/></title>
101
<script type="text/javascript" src="../fmt/common.js"/>
105
<table class="external">
107
<td align="left"><h1><xsl:value-of select="list/email/@name"/></h1></td>
108
<td align="right"><xsl:call-template name="navbar"/></td>
112
<table class="navigation">
113
<tr><th align="left" colspan="2"><xsl:value-of select="$jump-to-date"/></th></tr>
116
<!-- make this the same height as mindex -->
117
<img src="../imgs/a.png" width="1" height="24" alt=""/>
119
<td nowrap="NOWRAP" align="center" width="100%">
120
<form action="{server/cgi-url}/jump.cgi" onsubmit="form_timezone(this)">
121
<input type="hidden" name="doc-url" value="{server/doc-url}"/>
122
<input type="hidden" name="format" value="{$ext}"/>
123
<input type="hidden" name="list" value="{list/id}"/>
125
<xsl:call-template name="date-fields">
126
<xsl:with-param name="date" select="$jump-date"/>
128
<input type="submit" value="{$jump-button}"/>
133
<td colspan="2" align="center">
134
[ <a href="../mindex/{list/id}@{$last-date}.{$ext}"><xsl:value-of select="$newest-messages"/></a> ]
135
[ <a href="../splash/index.{$ext}#{list/group}"><xsl:value-of select="$jump-group"/></a> ]
136
<xsl:if test="list/email/@address">
137
[ <a href="mailto:{list/email/@address}"><xsl:value-of select="$post-new"/></a> ]
139
<xsl:if test="list/link">
140
[ <a href="{list/link}"><xsl:value-of select="$subscribe"/></a> ]
150
<table class="index squash">
151
<col width="60%" align="left"/>
152
<col width="30%" align="left"/>
153
<col width="85" align="left"/>
154
<col width="40" align="right"/>
156
<th align="left"><xsl:value-of select="$new-threads"/></th>
157
<th align="left"><xsl:value-of select="$recent-poster"/></th>
158
<th align="left"><xsl:value-of select="$activity-chart"/></th>
159
<th align="right"><xsl:value-of select="$post-count"/></th>
161
<xsl:apply-templates mode="newthreads" select="row"/>
168
<xsl:if test="list/description">
169
<h2><xsl:value-of select="list/description"/></h2>
176
<table class="navigation">
177
<tr><th align="left" colspan="2"><xsl:value-of select="$search-list"/></th></tr>
180
<!-- make this the same height as mindex -->
181
<img src="../imgs/a.png" width="1" height="24" alt=""/>
183
<td nowrap="NOWRAP" align="center">
184
<form action="{server/cgi-url}/keyword.cgi" accept-charset="UTF-8">
185
<input type="hidden" name="doc-url" value="{server/doc-url}"/>
186
<input type="hidden" name="format" value="{$ext}"/>
187
<input type="text" name="query" value="ml:{list/id} " class="longtext"/>
188
<input type="submit" name="submit" value="{$search-button}"/>
193
<td colspan="2" align="center">
194
<xsl:value-of select="$use-special-word-list"/>
195
<b>ml:<xsl:value-of select="list/id"/></b>
196
<xsl:value-of select="$to-search-list"/>
200
<xsl:call-template name="lurker-signature"/>