Revisions for RecentChanges
changed:
-
<!-- figure out if a catalog is available and other options -->
<dtml-let
num="_.int(REQUEST.get('num',20))"
Catalog=catalog
usecatalog="_.int(REQUEST.get('usecatalog',1)) and Catalog"
usetable="_.int(REQUEST.get('usetable',1))"
wiki_url=wiki_url
>
<dtml-try>
<dtml-unless usecatalog>
<dtml-raise type="nocatalog">nocatalog</dtml-raise>
</dtml-unless>
<!-- using catalog search; we'll fall back to brute force if this errors -->
<form action="&dtml-page_url;" method="post">
<p>Recently changed pages in this wiki.
Show <input name="num" value="&dtml-num;" size="4"> pages,
<input type="hidden" name="usetable:default" value="0">
<input type="checkbox" name="usetable:list" value="1"
<dtml-if usetable>checked</dtml-if>>
use table layout
<input type="submit" value="List" >
</form>
</p>
<br>
<dtml-if usetable>
<table border="0" cellspacing="0" cellpadding="3" width="100%">
<tr class="sansMedium">
<th align="left">Page</th>
<th align="left">By </th>
<th align="left">Note </th>
<th align="left">Time</th>
</tr>
<tr>
<td> </td>
</tr>
</dtml-if>
<dtml-in
"Catalog()
#Catalog(lastEditTime=_.DateTime()-7,lastEditTime_usage='range:min')"
sort=lastEditTime reverse size="num">
<dtml-if usetable>
<tr class="sansNormal" valign="top"
<dtml-var "(_['sequence-odd'])or ''">
>
<td>
</dtml-if>
<a href="&dtml.url_quote-id;"
title="<dtml-var "folder()[id].linkTitle()">"
>&dtml-title_or_id;</a>
<dtml-if usetable>
</td>
<td align="left" nowrap>
<dtml-else>
....
</dtml-if>
<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>
<dtml-if usetable>
</td>
<td align="left">
<dtml-else>
....
</dtml-if>
<em><dtml-var last_log missing=" "></em>
<dtml-if usetable>
</td>
<td nowrap>
<dtml-else>
....
</dtml-if>
<a href="<dtml-var id>/diff">
<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>
</a>
<dtml-if usetable>
</td>
<td>
<dtml-else>
</dtml-if>
<dtml-if "page_type == 'issuedtml'">T</dtml-if>
<dtml-if usetable>
</td>
</tr>
<dtml-else>
<br>
</dtml-if>
<dtml-if sequence-end>
<dtml-if usetable>
</table>
</dtml-if>
<p>A site catalog search was used. (<dtml-var sequence-number> pages)</p>
</dtml-if>
</dtml-in>
<dtml-except>
<!-- using brute force search -->
<form action="&dtml-page_url;" method="post">
<p>Recently changed pages in this wiki.
Show <input name="num" value="&dtml-num;" size="4"> pages,
<input type="hidden" name="usetable:default" value="0">
<input type="checkbox" name="usetable" value="1"
<dtml-if usetable>checked</dtml-if>>
use table layout <input type="submit" value="List" >
</form>
</p>
<br>
<dtml-if usetable>
<table border="0" cellspacing="0" cellpadding="3" width="100%">
<tr class="sansMedium">
<th align="left">Page</th>
<th align="left">By </th>
<th align="left">Note </th>
<th align="left">Time</th>
</tr>
<tr>
<td> </td>
</tr>
</dtml-if>
<dtml-in "aq_parent.objectItems(spec='ZWiki Page')" sort=lastEditTime reverse size="num">
<dtml-if usetable>
<tr
<dtml-var "(_['sequence-odd'])or ''">
valign="top" class="sansNormal">
<td>
</dtml-if>
<a href="&dtml-wiki_url;/&dtml.url_quote-sequence-key;"
title="<dtml-var "folder()[_['sequence-key']].linkTitle()">"
>&dtml-title_or_id;</a>
<dtml-if usetable>
</td>
<td align="left" nowrap>
<dtml-else>
....
</dtml-if>
<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>
<dtml-if usetable>
</td>
<td>
<dtml-else>
....
</dtml-if>
<i><dtml-var last_log missing=" "> </i>
<dtml-if usetable>
</td>
<td nowrap>
<dtml-else>
....
</dtml-if>
<a href="&dtml.url_quote-sequence-key;/diff">
<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>
</a>
<dtml-if usetable>
</td>
<td nowrap>
<dtml-else>
</dtml-if>
<dtml-if "page_type == 'issuedtml'">T</dtml-if>
<dtml-if usetable>
</td>
</tr>
<dtml-else>
<br>
</dtml-if>
<dtml-if sequence-end>
<dtml-if usetable>
</table>
</dtml-if>
<p>A brute force search was used. (<dtml-var sequence-number> pages)</p>
</dtml-if>
</dtml-in>
</dtml-try>
</dtml-let>