[prev] [thread] [next] [lurker] [Date index for 2005/02/08]
Author: simon
Date: 2005-02-08 12:53:01 +0000 (Tue, 08 Feb 2005)
New Revision: 1840
Added:
trunk/buscador/templates/atom
trunk/buscador/templates/custom/atom
trunk/buscador/templates/date/
trunk/buscador/templates/date/list
trunk/buscador/templates/date/month
trunk/buscador/templates/date/year
Modified:
trunk/buscador/templates/custom/footer
trunk/buscador/templates/custom/header
trunk/buscador/templates/macros
trunk/buscador/templates/mail/header
trunk/buscador/templates/mail/lurker
trunk/buscador/templates/mail/thread
trunk/buscador/templates/mail/thread_view
trunk/buscador/templates/mail/view
Log:
Update and fix various templates
Added: trunk/buscador/templates/atom
===================================================================
--- trunk/buscador/templates/atom 2005-02-08 11:11:58 UTC (rev 1839)
+++ trunk/buscador/templates/atom 2005-02-08 12:53:01 UTC (rev 1840)
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+[%- USE date -%]
+[%- PROCESS macros -%]
+<feed version="0.3" xmlns="http://purl.org/atom/ns#">
+<title>[% title || "Buscador" %]</title>
+<link rel="alternate" type="text/html" href="[% link || base %]"/>
+<modified>[% date.format(modified, '%Y-%m-%dT%H:%M:%SZ', 'en_US', 1) %]</modified>
+
+[% FOR mail = mails %]
+<entry>
+ <id>mailto:[% mail.id | html %]</id>
+ <title>[% mail.subject | html %]</title>
+ <link rel="alternate" type="text/html" href="[% base |remove('/$') %]/mail/view/[% mail.message_id | html %]" />
+ <issued>[% date.format(mail.epoch_date, '%Y-%m-%dT%H:%M:%SZ', 'en_US', 1) %]</issued>
+ <modified>[% date.format(mail.epoch_date, '%Y-%m-%dT%H:%M:%SZ', 'en_US', 1)%]</modified>
+ <author>
+ [%- SET name = from_mail(mail) -%]
+ <name>[% name || "Unknown" | html %]</name>
+ </author>
+ <summary mode="escaped" type="text/plain">[%- mail.original | html -%]</summary>
+ <content mode="escaped" type="text/plain">[%- mail.body | html -%]</content>
+</entry>
+[% END %]
+
+</feed>
Added: trunk/buscador/templates/custom/atom
===================================================================
--- trunk/buscador/templates/custom/atom 2005-02-08 11:11:58 UTC (rev 1839)
+++ trunk/buscador/templates/custom/atom 2005-02-08 12:53:01 UTC (rev 1840)
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="utf-8"?>
+[%- USE date -%]
+[%- PROCESS macros -%]
+<feed version="0.3" xmlns="http://purl.org/atom/ns#">
+<title>[% title || "Buscador" %]</title>
+<link rel="alternate" type="text/html" href="[% link || base %]"/>
+<modified>[% date.format(modified, '%Y-%m-%dT%H:%M:%SZ', 'en_US', 1) %]</modified>
+
+[% FOR mail = mails %]
+<entry>
+ <id>mailto:[% mail.id | html %]</id>
+ <title>[% mail.subject | html %]</title>
+ <link rel="alternate" type="text/html" href="[% base |remove('/$') %]/mail/view/[% mail.message_id | html %]" />
+ <issued>[% date.format(mail.epoch_date, '%Y-%m-%dT%H:%M:%SZ', 'en_US', 1) %]</issued>
+ <modified>[% date.format(mail.epoch_date, '%Y-%m-%dT%H:%M:%SZ', 'en_US', 1)%]</modified>
+ <author>
+ [%- SET name = from_mail(mail) -%]
+ <name>[% name || "Unknown" | html %]</name>
+ </author>
+ <summary mode="escaped" type="text/plain">[%- mail.original | html -%]</summary>
+ <content mode="escaped" type="text/plain">[%- mail.body | html -%]</content>
+</entry>
+[% END %]
+
+</feed>
Modified: trunk/buscador/templates/custom/footer
===================================================================
--- trunk/buscador/templates/custom/footer 2005-02-08 11:11:58 UTC (rev 1839)
+++ trunk/buscador/templates/custom/footer 2005-02-08 12:53:01 UTC (rev 1840)
@@ -4,3 +4,5 @@
[% INCLUDE pager %]
</DIV>
[% END %]
+</body>
+</html>
Modified: trunk/buscador/templates/custom/header
===================================================================
--- trunk/buscador/templates/custom/header 2005-02-08 11:11:58 UTC (rev 1839)
+++ trunk/buscador/templates/custom/header 2005-02-08 12:53:01 UTC (rev 1840)
@@ -4,7 +4,7 @@
<META http-equiv=Content-Type content="text/html; charset=utf-8">
-<LINK title=myStyle href="/buscador.css" type=text/css rel=stylesheet>
+<LINK title=myStyle href="[% config.img_base %]/buscador.css" type=text/css rel=stylesheet>
</HEAD>
<BODY>
Added: trunk/buscador/templates/date/list
===================================================================
--- trunk/buscador/templates/date/list 2005-02-08 11:11:58 UTC (rev 1839)
+++ trunk/buscador/templates/date/list 2005-02-08 12:53:01 UTC (rev 1840)
@@ -0,0 +1,14 @@
+[% SET title = date.strftime("%Y-%m-%d") %]
+[% INCLUDE header title="Mails for $title" %]
+[% PROCESS macros %]
+<h1> Mails for [% title %] </h1>
+
+[% INCLUDE searchbox %]
+
+[% FOR mail = mails %]
+<P>
+ [% summary(mail); %]
+</P>
+
+[% END %]
+[% INCLUDE footer %]
Added: trunk/buscador/templates/date/month
===================================================================
--- trunk/buscador/templates/date/month 2005-02-08 11:11:58 UTC (rev 1839)
+++ trunk/buscador/templates/date/month 2005-02-08 12:53:01 UTC (rev 1840)
@@ -0,0 +1,20 @@
+[% SET title = date.strftime("%B,%Y") %]
+[% INCLUDE header title="Mails for the month of $title" %]
+[% PROCESS macros %]
+<h1> Mails for the month of [% title %] </h1>
+
+[% INCLUDE searchbox %]
+
+[% SET count = 1 %]
+[% SET ym = date.strftime("%Y/%m") %]
+[% SET url = "${base}date/list/$ym" %]
+[% FOR day = days %]
+ [% IF day>0 -%]
+ <a href="[% url %]/[% count | format("%.2d") %]">[% count %]</a>
+ [%- ELSE -%]
+ [% count %]
+ [%- END -%]
+ - [% day %]<br />
+ [% count = count + 1%]
+[% END %]
+[% INCLUDE footer %]
Added: trunk/buscador/templates/date/year
===================================================================
--- trunk/buscador/templates/date/year 2005-02-08 11:11:58 UTC (rev 1839)
+++ trunk/buscador/templates/date/year 2005-02-08 12:53:01 UTC (rev 1840)
@@ -0,0 +1,23 @@
+[% INCLUDE header title="Mails for $year" %]
+[% PROCESS macros %]
+<h1> Mails for [% year %] </h1>
+
+[% INCLUDE searchbox %]
+
+[% mapping = [ 'January', 'Febuary', 'March', 'April', 'May', 'June',
+ 'July', 'August', 'September', 'October', 'November', 'December' ];
+%]
+
+
+[% count = 0 %]
+[% FOR month = months %]
+ [%- IF month > 0 -%]
+ <a href="[% base | remove('/$') %]/date/list/[% year %]/[% count + 1 | format("%.2d") %]">[% mapping.$count %]</a>
+ [%- ELSE -%]
+ [%- mapping.$count -%]
+ [%- END -%]
+ - [% month %]
+ [% count = count + 1 %]
+<br />
+[% END %]
+[% INCLUDE footer %]
Modified: trunk/buscador/templates/macros
===================================================================
--- trunk/buscador/templates/macros 2005-02-08 11:11:58 UTC (rev 1839)
+++ trunk/buscador/templates/macros 2005-02-08 12:53:01 UTC (rev 1840)
@@ -43,7 +43,7 @@
[% MACRO summary(mail, date) BLOCK; %]
[% summary_link(mail) %]
[% IF date %]
- ([%mail.date.ymd%])
+ (<a href="[% base | remove('/$') %]/date/list/[% mail.date.strftime("%Y/%m/%d/") %]">[%mail.date.ymd%]</a>)
[% END %]
<BR>
[%show_lists(mail)%]
Modified: trunk/buscador/templates/mail/header
===================================================================
--- trunk/buscador/templates/mail/header 2005-02-08 11:11:58 UTC (rev 1839)
+++ trunk/buscador/templates/mail/header 2005-02-08 12:53:01 UTC (rev 1840)
@@ -4,9 +4,9 @@
<META http-equiv=Content-Type content="text/html; charset=utf-8">
-<LINK title=myStyle href="/buscador.css" type=text/css rel=stylesheet>
-<LINK REL="stylesheet" HREF="/mktree.css">
-<SCRIPT SRC="/mktree.js" LANGUAGE="JavaScript"></SCRIPT>
+<LINK title=myStyle href="[% config.img_base %]/buscador.css" type=text/css rel=stylesheet>
+<LINK REL="stylesheet" HREF="[% config.img_base %]/mktree.css">
+<SCRIPT SRC="[% config.img_base %]/mktree.js" LANGUAGE="JavaScript"></SCRIPT>
</HEAD>
<BODY>
Modified: trunk/buscador/templates/mail/lurker
===================================================================
--- trunk/buscador/templates/mail/lurker 2005-02-08 11:11:58 UTC (rev 1839)
+++ trunk/buscador/templates/mail/lurker 2005-02-08 12:53:01 UTC (rev 1840)
@@ -1,17 +1,8 @@
-[%- FOREACH row = root -%]
- [%- FOREACH cell = row -%]
- [%- SET tmp = cell.message -%]
- [%- IF tmp.subject; subject = tmp.subject; END -%]
- [%- LAST IF subject -%]
- [%- END -%]
-[%- LAST IF subject -%]
-[%- END -%]
-
[% PROCESS header title="$subject - Chronological View" %]
[% PROCESS macros %]
[% PROCESS view_macros %]
-<h1> [% subject %] </h1>
+<h1> [% mail.subject | html %] </h1>
[% INCLUDE searchbox %]
<div id="content">
@@ -34,10 +25,10 @@
[% FOREACH row = root %]
[% y = loop.count %]
<tr height="24" class="[% loop.count % 2 == 0 ? "row1" : "row2" %]" id="row_[% loop.count %]"
- onMouseOver="rollIn(this)" onMouseOut="rollOut(this)">
+ onMouseOver="rollIn(this)" onMouseOut="rollOut(this)">
[% FOREACH cell = row %]
[% tmp = loop.count ; x = loop.count - 1 %]
- [% IF cell.message %]
+ [% IF cell.message %]
[% message = cell.message %]
[% IF root.$y && root.$y.$x && root.$y.$x != ' ' && root.$y.$x != '-' %][%# something beneath us %]
[% IF row.$tmp && row.$tmp != ' ' && row.$tmp != '|' %]
@@ -48,29 +39,29 @@
[% ELSE %]
[% img = 'message-terminal' %]
[% END %]
- <td width="24"><a name="[% message.id %]" href="[% base | remove('/$') %]/mail/view/[% message.id %]"><img src="/[% img %].png" height="24" width="24" alt="*" border="0"></a></td>
- [% ELSE %]
+ <td width="24"><a name="[% message.id %]" href="[% base | remove('/$') %]/mail/view/[% message.id %]"><img src="[% config.img_base %]/[% img %].png" height="24" width="24" alt="*" border="0"></a></td>
+ [% ELSE %]
[% IF cell == '+' || cell == 'L' %][%# may really be a tee, or a corner %]
[% cell = row.$tmp.match('[+{-]') ? 'T' : 'L' %]
- [% END %]
- <td width="24"><img src="/[% mapping.$cell %].png" height="24" width="24" alt="[% cell %]"></td>
- [% END %]
- [% END %]
- <td width="48"><img src="/blank.png" width="48" height="24"></td>
- <td rowspan="2"><small> [% IF message.subject %][% summary_link(message) %]<i>[% message.date.cdate %]</i><br/>[% message.original %][% END %]</small></td>
+ [% END %]
+ <td width="24"><img src="[% config.img_base %]/[% mapping.$cell %].png" height="24" width="24" alt="[% cell %]"></td>
+ [% END %]
+ [% END %]
+ <td width="48"><img src="[% config.img_base %]/blank.png" width="48" height="24"></td>
+ <td rowspan="2"><small> [% IF message.subject %][% summary_link(message) %]<i>[% message.date.cdate %]</i><br/>[% message.original %][% END %]</small></td>
</tr>
<tr class="[% loop.count % 2 == 0 ? "row1" : "row2" %]">
[% FOREACH cell = row %]
- [% x = loop.count - 1 %]
- [% IF cell != ' ' && root.$y && root.$y.$x && !root.$y.$x.match('[ +-]') %][%# something beneath %]
- <td width="24" background="[% mariachi.url %]/images/vertical.png"> </td>
- [% ELSE %]
- <td width="24"></td>
+ [% x = loop.count - 1 %]
+ [% IF cell != ' ' && root.$y && root.$y.$x && !root.$y.$x.match('[ +-]') %][%# something beneath %]
+ <td width="24" background="[% config.img_base %]/vertical.png"> </td>
+ [% ELSE %]
+ <td width="24"></td>
[% END %]
[% END %]
<td></td>
<td></td>
- </tr>
+ </tr>
[% END %]
</table>
Modified: trunk/buscador/templates/mail/thread
===================================================================
--- trunk/buscador/templates/mail/thread 2005-02-08 11:11:58 UTC (rev 1839)
+++ trunk/buscador/templates/mail/thread 2005-02-08 12:53:01 UTC (rev 1840)
@@ -2,7 +2,7 @@
[%- PROCESS macros -%]
[%- PROCESS view_macros -%]
-<h1> [% thread.subject %]</h1>
+<h1> [% mail.subject | html %]</h1>
<P class="searchhints">You can also view this thread in <A
HREF="[%base|remove('/$')%]/mail/lurker/[%mail.id%]">chronological
Modified: trunk/buscador/templates/mail/thread_view
===================================================================
--- trunk/buscador/templates/mail/thread_view 2005-02-08 11:11:58 UTC (rev 1839)
+++ trunk/buscador/templates/mail/thread_view 2005-02-08 12:53:01 UTC (rev 1840)
@@ -1,9 +1,11 @@
[% BLOCK display_thread_rec; %]
-<li class="thread" id="m_[% thread.message.id %]">
+<li class="thread" id="m_[% thread.mail.id %]">
[%- IF thread.message -%]
- [%- summary_link(thread.message) %] <i>[% thread.message.date.cdate %]</i><br />
- [%- thread.message.original %]
+ [%- summary_link(thread.message) %] <i>
+ <a href="[% base | remove('/$') %]/date/list/[% thread.message.date.strftime("%Y/%m/%d/") %]">[% thread.message.date.cdate %]</a>
+ </i><br />
+ [%- thread.message.original %]
[%- ELSE -%]
(no message)
[%- END -%]
Modified: trunk/buscador/templates/mail/view
===================================================================
--- trunk/buscador/templates/mail/view 2005-02-08 11:11:58 UTC (rev 1839)
+++ trunk/buscador/templates/mail/view 2005-02-08 12:53:01 UTC (rev 1840)
@@ -25,7 +25,9 @@
lists_row(mail);
%]
<TR>
- <TD class="field">Date</TD><TD>[%mail.date.ymd%]</TD></TR>
+ <TD class="field">Date</TD>
+ <TD><a href="[% base | remove('/$') %]/date/list/[% mail.date.strftime("%Y/%m/%d/") %]">[%mail.date.ymd%]</a></TD>
+ </TR>
</TABLE>
<PRE> [% mail.format_body %]
</PRE>
Generated at 13:00 on 08 Feb 2005 by mariachi 0.52