Index: openacs-4/packages/forums/www/forum-view-postgresql.xql =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/forums/www/Attic/forum-view-postgresql.xql,v diff -u -r1.3 -r1.4 --- openacs-4/packages/forums/www/forum-view-postgresql.xql 19 Jun 2002 15:11:46 -0000 1.3 +++ openacs-4/packages/forums/www/forum-view-postgresql.xql 24 Jun 2002 21:40:16 -0000 1.4 @@ -10,11 +10,12 @@ person__name(fm.user_id) as user_name, fm.posting_date, fm.state, - (select count(fm1.*) + (select count(*) from forums_messages_approved fm1 where fm1.forum_id = :forum_id and fm1.tree_sortkey between tree_left(fm.tree_sortkey) and tree_right(fm.tree_sortkey)) as n_messages, - to_char(acs_objects.last_modified, 'Mon DD YYYY HH24:MI:SS') as last_modified + to_char(acs_objects.last_modified, 'Mon DD YYYY HH24:MI:SS') as last_modified, + case when acs_objects.last_modified > (now() - 1) then 't' else 'f' end as new_p from forums_messages_approved fm, acs_objects where fm.forum_id = :forum_id @@ -32,11 +33,12 @@ person__name(fm.user_id) as user_name, fm.posting_date, fm.state, - (select count(fm1.*) + (select count(*) from forums_messages fm1 where fm1.forum_id = :forum_id and fm1.tree_sortkey between tree_left(fm.tree_sortkey) and tree_right(fm.tree_sortkey)) as n_messages, - to_char(acs_objects.last_modified, 'Mon DD YYYY HH24:MI:SS') as last_modified + to_char(acs_objects.last_modified, 'Mon DD YYYY HH24:MI:SS') as last_modified, + case when acs_objects.last_modified > (now() - 1) then 't' else 'f' end as new_p from forums_messages fm, acs_objects where fm.forum_id = :forum_id