You are not logged in Log in Join
You are here: Home » Members » jim » StructuredTextWiki » RecentChanges

Log in
Name

Password

 
 

History for RecentChanges

??changed:
-
<dtml-let 
Catalog=catalog
wiki_url=wiki_url
num="50"
>
<dtml-try>
<dtml-raise type="nocatalog">nocatalog</dtml-raise>
avoid catalog search.. seems troublesome on zope.org right now
<dtml-unless Catalog>
</dtml-unless>
<!-- using catalog search -->
<dtml-let 
 includepages="REQUEST.get('includepages','changed')"
 summaries="REQUEST.get('summaries',0)"
 period="REQUEST.get('period','Day')"
 days="{
  'Day':1,
  'Week':7,
  'Month':30,
  'Year':365,
  'Ever':999999,
  'default':3}[period]"
 newdays="7"
 now=ZopeTime
 results="Catalog(
     lastEditTime=now-days,
     lastEditTime_usage='range:min',)
 #((includepages=='changed') and
    Catalog(
     lastEditTime=now-days,
     lastEditTime_usage='range:min',))
  or Catalog(
      creationTime=now-days,
      creationTime_usage='range:min',
      ) #logic error when no changed pages"
 number="_.len(results)"
>
<form action="&dtml-page_url;" method="GET">
<table border="0">
<tr valign="top">
<dtml-comment>
<td>
Show 
</td>
<td nowrap>
<dtml-in "['changed','new',]" prefix=x>
<input type=radio name=includepages value="&dtml-x_sequence_item;"
<dtml-if "x_sequence_item==includepages">checked</dtml-if>>&dtml-x_sequence_item;<br>
</dtml-in>
</td>
</dtml-comment>
<td align=right>
Pages changed in the last 
</td>
<dtml-in "['Day','Week','Month','Year','Ever']" prefix=x>
<td align="center">
<input type=submit name=period value="&dtml-x_sequence_item;"
<dtml-if "x_sequence_item==period">style="font-weight:bold"</dtml-if>>
<dtml-if "x_sequence_item==period"><br>(&dtml-number;)</dtml-if>
</td>
</dtml-in>
<td align=right>
with summaries
</td>
<td>
<input type=checkbox name=summaries <dtml-if summaries>checked</dtml-if>>
</td>
</tr>
</table>
</form>

<table border="0" cellspacing="2" width="100%">
<tr>
<th align="left">Page</th>
<th align="left">Edited&nbsp;by&nbsp;&nbsp;&nbsp;</th>
<th align="left">Time</th>
</tr>
<tr><td colspan=3></td></tr>
<dtml-in results sort=lastEditTime reverse>
<tr valign="top">
<td 
<dtml-comment>
bgcolor="<dtml-var issueColour>"
</dtml-comment>
>
<a 
href="&dtml.url_quote-id;" 
title=""
style="background-color:<dtml-var issueColour>;"
>&dtml-title_or_id;</a>
<dtml-if "creation_time and (now - _.DateTime(creation_time)) < newdays">
<b>(NEW)</b>
</dtml-if>
&nbsp;&nbsp;&nbsp;
<dtml-unless summaries>
<dtml-if last_log>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<em><dtml-var last_log><br></em>&nbsp;
<dtml-else>
<br><br>
</dtml-if>
</dtml-unless>
</td>
<td align="left" nowrap>
<dtml-if "last_editor and _.string.swapcase(last_editor) != last_editor">
<a href="&dtml.url_quote-last_editor;">&dtml-last_editor;</a>
<dtml-else>
anonymous
</dtml-if>
&nbsp;&nbsp;&nbsp;
</td>
<td nowrap>
<a href="<dtml-var id>/diff">
<dtml-try>
<dtml-var age><dtml-raise type="later"></dtml-raise>
<dtml-except>
<dtml-try>
<dtml-var "lastEditTime.toZone(zwiki_timezone)" fmt="pCommon">
<dtml-except>
<dtml-try>
<dtml-var lastEditTime fmt="pCommon">
<dtml-except>
<dtml-try>
<dtml-var "bobobase_modification_time.toZone(zwiki_timezone)" fmt="pCommon">
<dtml-except>
<dtml-var bobobase_modification_time fmt="pCommon">
</dtml-try>
</dtml-try>
</dtml-try>
</dtml-try>
</a>
</td>
</tr>
<dtml-if summaries>
<tr>
<td colspan=2>
<small><dtml-var summary></small>
<dtml-if last_log>
<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<em><dtml-var last_log></em>&nbsp;
</dtml-if>
<br><br>
</td>
<td>&nbsp;</td>
</tr>
</dtml-if>
</dtml-in>
</table>
</dtml-let>



<dtml-except>
<!-- using brute force search -->
<form action="&dtml-page_url;" method="GET">
Recently changed pages in this wiki.
Show <input name="num" value="&dtml-num;" size="4"> pages
<input type="submit" value="List" >
</form>

<table border="0" cellspacing="0">
<tr>
<th align="left">Page</th>
<th align="left">Note&nbsp;&nbsp;&nbsp;</th>
<th align="left">By&nbsp;&nbsp;&nbsp;</th>
<th align="left">Time</th>
</tr>
<tr><td></td></tr>
<dtml-in "aq_parent.objectItems(spec='ZWiki Page')" sort=lastEditTime reverse size="num">
<tr 
<dtml-var "(_['sequence-odd'] and 'bgcolor=#f0f0f0')or ''">
valign="top">
<td>
<a href="&dtml-wiki_url;/&dtml.url_quote-sequence-key;"
title="<dtml-var "folder()[_['sequence-key']].linkTitle()">"
>&dtml-title_or_id;</a>
</td>
<td align="left">
<i><dtml-var last_log missing="&nbsp;"> </i>
</td>
<td align="left" nowrap>
<dtml-if "last_editor and _.string.swapcase(last_editor) != last_editor">
<a href="&dtml-wiki_url;/&dtml.url_quote-last_editor;"><dtml-var last_editor></a>
<dtml-else>
anonymous
</dtml-if>
&nbsp;&nbsp;&nbsp;
</td>
<td nowrap>
<a href="&dtml.url_quote-sequence-key;/diff">
<dtml-try>
<dtml-var age><dtml-raise type="doesn't work"></dtml-raise>
<dtml-except>
<dtml-try>
<dtml-var "lastEditTime().toZone(zwiki_timezone)" fmt="pCommon">
<dtml-except>
<dtml-try>
<dtml-var lastEditTime fmt="pCommon">
<dtml-except>
<dtml-try>
<dtml-var "bobobase_modification_time.toZone(zwiki_timezone)" fmt="pCommon">
[19 more lines...]