Changeset 24

Show
Ignore:
Timestamp:
02/10/07 12:35:27 (2 years ago)
Author:
simon
Message:

Add "Highest rated".

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/Memories/Photo.pm

    r22 r24  
    1515     recent => "uploaded", 
    1616     popular => "hit_count", 
     17     rated => "rating/(1+rated)", 
    1718     interesting => INTERESTINGNESS_ALGORITHM, 
    1819     random => "rand()" 
  • trunk/templates/nav

    r2 r24  
    33<a href="[%base%]"><img src="[%base%]/static/memories.png"/></a> 
    44</td><td align="right"> 
    5 [% FOR photo = request.recent_uploads %] 
     5[% FOR photo = request.recent %] 
    66        <a href="[%base%]/photo/view/[%photo.id%]"> 
    77        <img src="[% photo.thumb_url |uri%]" alt="[%photo.title|html%]"/> 
  • trunk/templates/recent.rss

    r2 r24  
    55        <link>[%base%]</link> 
    66        <description>Recent photos from [%base %]</description> 
    7 [% FOR photo = request.recent_uploads %] 
     7[% FOR photo = request.recent %] 
    88    <item> 
    99        <title>[%photo.title|html%]</title> 
  • trunk/templates/rhs

    r21 r24  
    1919<tr> 
    2020<td><a href="[%base%]/photo/popular">Most popular</a></td> 
     21</tr> 
     22<tr> 
     23<td><a href="[%base%]/photo/rated">Highest rated</a></td> 
    2124</tr> 
    2225<tr>