Changeset 413 for veekun/trunk

Show
Ignore:
Timestamp:
02/09/08 03:48:10 (10 months ago)
Author:
eevee
Message:

Missed firstpost/lastpost occurances in forum/common.tt. (#58)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • veekun/trunk/templates/forum/common.tt

    r406 r413  
    175175[%     END %] 
    176176</td> 
    177 <td class="postinfo"><a href="[% c.uri('Users', 'info', thread.firstpost.user_id) %]">[% thread.firstpost.user.name %]</a> <a href="/forum/post/[% thread.firstpost.id %]">[% thread.firstpost.time | date %]</a></td> 
     177<td class="postinfo"><a href="[% c.uri('Users', 'info', thread.first_post.user_id) %]">[% thread.first_post.user.name %]</a> <a href="/forum/post/[% thread.first_post.id %]">[% thread.first_post.time | date %]</a></td> 
    178178<td class="count">[%# this is stupid fix it lati, but if all posts are deleted this will show -1 %][% IF thread.post_count > 0; thread.post_count - 1; ELSE; thread.post_count; END %]</td><td class="count">[% thread.view_count %]</td> 
    179179<td class="postinfo"> 
     
    181181- 
    182182[%     ELSE %] 
    183 <a href="[% c.uri('Users', 'info', thread.lastpost.user_id) %]">[% thread.lastpost.user.name %]</a> <a href="/forum/post/[% thread.lastpost.id %]">[% thread.lastpost.time | date %]</a> 
     183<a href="[% c.uri('Users', 'info', thread.last_post.user_id) %]">[% thread.last_post.user.name %]</a> <a href="/forum/post/[% thread.last_postastpost.id %]">[% thread.last_post.time | date %]</a> 
    184184[%     END -%] 
    185185</td> 
     
    225225<td class="postinfo"> 
    226226[%     IF forum.last_post_id %] 
    227 [%         IF 25 < forum.lastpost.thread.subject.length; subject = last_thread.subject.substr(0, 22) _ '...'; ELSE; subject = forum.lastpost.thread.subject; END -%] 
    228 [%             subject %] <a href="[% c.uri('Users', 'info', forum.lastpost.user_id) %]">[% forum.lastpost.user.name %]</a> <a href="/forum/post/[% forum.last_post_id %]">[% forum.lastpost.time | date %]</a> 
     227[%         IF 25 < forum.last_post.thread.subject.length; subject = last_thread.subject.substr(0, 22) _ '...'; ELSE; subject = forum.last_post.thread.subject; END -%] 
     228[%             subject %] <a href="[% c.uri('Users', 'info', forum.last_post.user_id) %]">[% forum.last_post.user.name %]</a> <a href="/forum/post/[% forum.last_post_id %]">[% forum.last_post.time | date %]</a> 
    229229[%     ELSE %] 
    230230(no posts)