Changeset 413
- Timestamp:
- 02/09/08 03:48:10 (6 months ago)
- Files:
-
- 1 modified
-
veekun/trunk/templates/forum/common.tt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
veekun/trunk/templates/forum/common.tt
r406 r413 175 175 [% END %] 176 176 </td> 177 <td class="postinfo"><a href="[% c.uri('Users', 'info', thread.first post.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> 178 178 <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> 179 179 <td class="postinfo"> … … 181 181 - 182 182 [% ELSE %] 183 <a href="[% c.uri('Users', 'info', thread.last post.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> 184 184 [% END -%] 185 185 </td> … … 225 225 <td class="postinfo"> 226 226 [% IF forum.last_post_id %] 227 [% IF 25 < forum.last post.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.last post.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> 229 229 [% ELSE %] 230 230 (no posts)
