my %order_by = (
recent => "uploaded",
popular => "hit_count",
+ rated => "rating/(1+rated)",
interesting => INTERESTINGNESS_ALGORITHM,
random => "rand()"
);
<table width="100%"><tr><td align="left">
<a href="[%base%]"><img src="[%base%]/static/memories.png"/></a>
</td><td align="right">
-[% FOR photo = request.recent_uploads %]
+[% FOR photo = request.recent %]
<a href="[%base%]/photo/view/[%photo.id%]">
<img src="[% photo.thumb_url |uri%]" alt="[%photo.title|html%]"/>
</a>
<title>Memories photostream</title>
<link>[%base%]</link>
<description>Recent photos from [%base %]</description>
-[% FOR photo = request.recent_uploads %]
+[% FOR photo = request.recent %]
<item>
<title>[%photo.title|html%]</title>
<pubDate>[%photo.shot.strftime("%a, %d %b %Y %H:%M:%S %z") %]</pubDate>
<td><a href="[%base%]/photo/popular">Most popular</a></td>
</tr>
<tr>
+<td><a href="[%base%]/photo/rated">Highest rated</a></td>
+</tr>
+<tr>
<td><a href="[%base%]/photo/interesting">Most interesting</a></td>
</tr>
<tr>