Index: openacs-4/packages/download/www/index.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/download/www/index.tcl,v diff -u -r1.6 -r1.6.8.1 --- openacs-4/packages/download/www/index.tcl 10 Sep 2002 22:22:34 -0000 1.6 +++ openacs-4/packages/download/www/index.tcl 25 Jan 2005 15:18:09 -0000 1.6.8.1 @@ -39,42 +39,44 @@ } { lappend type_dimlist [list $at_id $pretty_name [list where "da.archive_type_id = $at_id"]] } -lappend type_dimlist {"" "all" {}} +lappend type_dimlist {"" "#download.all#" {}} -set dimensional [list \ - {versions "Versions" current { - {current "current" {where "[db_map archive_where_clause]" }} - {all "all" {where "da.archive_id = dar.archive_id"}} - }} \ - [list archive_type_id "Type" "" $type_dimlist] \ - {updated "Updated" all { - {1d "last 24hrs" {where "[db_map date_clause_1]"}} - {1w "last week" {where "[db_map date_clause_7]"}} - {1m "last month" {where "[db_map date_clause_30]"}} - {all "all" {}} - }} \ -] +set dimensional [list [list versions "#download.Versions#" current [list \ + [list current "[_ download.current]" {where "[db_map archive_where_clause]"} ] \ + [list all "[_ download.all]" {where "da.archive_id = dar.archive_id"} ] + ]]\ + [list archive_type_id "[_ download.Type]" "" $type_dimlist] \ + [list updated "[_ download.Updated]" all [list \ + [list 1d "[_ download.last_24hrs]" {where "[db_map date_clause_1]"}] \ + [list 1w "[_ download.last_week]" {where "[db_map date_clause_7]"}] \ + [list 1m "[_ download.last_month]" {where "[db_map date_clause_30]"}] \ + [list all "[_ download.all]" {}]] + ]] if { $admin_p } { set approval "" - lappend dimensional {approved "Approval" approved { - {pending "pending" {where "dar.approved_p is null"}} - {approved "approved" {where "dar.approved_p = 't'"}} - {rejected "rejected" {where "dar.approved_p = 'f'"}} - {all "all" {}} - }} + lappend dimensional [list approved "[_ download.Approval]" approved \ + [list \ + [list pending "[_ download.pending]" {where "dar.approved_p is null"}] \ + [list approved "[_ download.approved]" {where "dar.approved_p = 't'"}] \ + [list rejected "[_ download.rejected]" {where "dar.approved_p = 'f'"}] \ + [list all "[_ download.all]" {}] \ + ] + ] } else { set approval " and dar.approved_p = 't' " } -set table_def { - {archive_name "Software Name" - {lower(archive_name) $order} - {