[35] | 1 | <dtml-call "RESPONSE.setHeader('Content-Type','text/html; charset=utf-8')"> |
---|
| 2 | <dtml-let |
---|
| 3 | wikiurl=wiki_url |
---|
| 4 | summaries="REQUEST.get('summaries',0)" |
---|
| 5 | period="_.string.lower(REQUEST.get('period','day'))" |
---|
| 6 | days="{ |
---|
| 7 | 'day':1, |
---|
| 8 | 'week':7, |
---|
| 9 | 'month':30, |
---|
| 10 | 'year':365, |
---|
| 11 | 'ever':999999, |
---|
| 12 | 'default':3}[period]" |
---|
| 13 | newdays="7" |
---|
| 14 | now=ZopeTime |
---|
| 15 | results="pages(lastEditTime={'query': now-days, 'range':'min'})" |
---|
| 16 | number="_.len(results)" |
---|
| 17 | > |
---|
| 18 | <form action="&dtml-URL;" method="GET"> |
---|
| 19 | <table border="0"> |
---|
| 20 | <tr valign="top"> |
---|
| 21 | <dtml-if hasCatalog> |
---|
| 22 | <td align="right"><dtml-translate domain=zwiki>Pages changed in the last</dtml-translate></td> |
---|
| 23 | <dtml-in "['day','week','month','year','ever']" prefix=x> |
---|
| 24 | <td align="center"> |
---|
| 25 | <input type=submit name=period value="&dtml-x_sequence_item;" |
---|
| 26 | <dtml-if "x_sequence_item==period">style="font-weight:bold"</dtml-if> |
---|
| 27 | /> |
---|
| 28 | <dtml-if "x_sequence_item==period"><br />(&dtml-number;)</dtml-if> |
---|
| 29 | </td> |
---|
| 30 | </dtml-in> |
---|
| 31 | <dtml-else> |
---|
| 32 | <td align="right"><dtml-translate domain=zwiki>Recently changed pages, with summaries</dtml-translate>.</td> |
---|
| 33 | </dtml-if> |
---|
| 34 | <td> |
---|
| 35 | <input type=checkbox name=summaries <dtml-if summaries>checked</dtml-if> /> |
---|
| 36 | <dtml-translate domain=zwiki>Show summaries ?</dtml-translate> |
---|
| 37 | </td> |
---|
| 38 | <dtml-unless hasCatalog> |
---|
| 39 | <td align="center"><input type=submit value="<dtml-translate domain=zwiki>Refresh</dtml-translate>" /></td> |
---|
| 40 | </dtml-unless> |
---|
| 41 | </tr> |
---|
| 42 | </table> |
---|
| 43 | </form> |
---|
| 44 | <table border="0" cellspacing="0" cellpadding="1" width="100%"> |
---|
| 45 | <tr> |
---|
| 46 | <th align="left"><dtml-translate domain=zwiki>Page</dtml-translate></th> |
---|
| 47 | <th align="left"><dtml-translate domain=zwiki>Edited by</dtml-translate> </th> |
---|
| 48 | <th align="left"><dtml-translate domain=zwiki>Time</dtml-translate></th> |
---|
| 49 | </tr> |
---|
| 50 | <tr><td colspan=3></td></tr> |
---|
| 51 | <dtml-in results prefix=x> |
---|
| 52 | <tr valign="top" <dtml-var "(x_sequence_odd and 'bgcolor=#f0f0f0') or ''">> |
---|
| 53 | <td> |
---|
| 54 | <a href="&dtml-wikiurl;/&dtml.url_quote-id;" |
---|
| 55 | title="" |
---|
| 56 | style="background-color:<dtml-var issueColour>;" |
---|
| 57 | ><dtml-var "formatWikiname(Title)"></a> |
---|
| 58 | <dtml-if "creation_time and (now - _.DateTime(creation_time)) < newdays"> |
---|
| 59 | <small><span style="background-color:palegreen"><dtml-translate domain=zwiki>NEW</dtml-translate></span></small> |
---|
| 60 | </dtml-if> |
---|
| 61 | |
---|
| 62 | <dtml-unless summaries> |
---|
| 63 | <dtml-if last_log> |
---|
| 64 | <br/> <b><dtml-var last_log></b><br/> |
---|
| 65 | <dtml-else> |
---|
| 66 | <br/><br/> |
---|
| 67 | </dtml-if> |
---|
| 68 | </dtml-unless> |
---|
| 69 | </td> |
---|
| 70 | <td align="left" nowrap=""> |
---|
| 71 | <dtml-if "last_editor and _.string.swapcase(last_editor) != last_editor"> |
---|
| 72 | <a href="&dtml-wikiurl;/<dtml-var "canonicalIdFrom(last_editor)">">&dtml-last_editor;</a> |
---|
| 73 | <dtml-else> |
---|
| 74 | <dtml-translate domain=zwiki>anonymous</dtml-translate> |
---|
| 75 | </dtml-if> |
---|
| 76 | |
---|
| 77 | </td> |
---|
| 78 | <td nowrap=""> |
---|
| 79 | <a href="&dtml-wikiurl;/&dtml-id;/diff"> |
---|
| 80 | <dtml-try><dtml-var "lastEditTime.toZone(zwiki_timezone)" fmt="pCommon"> |
---|
| 81 | <dtml-except><dtml-var lastEditTime fmt="pCommon"> |
---|
| 82 | </dtml-try> |
---|
| 83 | </a> |
---|
| 84 | </td> |
---|
| 85 | </tr> |
---|
| 86 | <dtml-if summaries> |
---|
| 87 | <tr <dtml-var "(x_sequence_odd and 'bgcolor=#f0f0f0') or ''">> |
---|
| 88 | <td colspan=2> |
---|
| 89 | <small><dtml-var summary></small> |
---|
| 90 | <dtml-if last_log> |
---|
| 91 | <br/> <b><dtml-var last_log></b> |
---|
| 92 | </dtml-if> |
---|
| 93 | <br/><br/> |
---|
| 94 | </td> |
---|
| 95 | <td> </td> |
---|
| 96 | </tr> |
---|
| 97 | </dtml-if> |
---|
| 98 | </dtml-in> |
---|
| 99 | </table> |
---|
| 100 | |
---|
| 101 | <dtml-translate domain=zwiki>Pages marked (NEW) have been created within the last week</dtml-translate>. |
---|
| 102 | </dtml-let> |
---|