diff options
author | Joey Hess <joeyh> | 1999-06-09 07:42:38 +0000 |
---|---|---|
committer | Joey Hess <joeyh> | 1999-06-09 07:42:38 +0000 |
commit | a708fe02882612316447f5f61b6334c1e68d75f4 (patch) | |
tree | 105edf411dbc4cf01abf2ca5e8cb27ddf8ce970c | |
parent | 5aa5e4e9e9f40e0ce1769b7aa5b2b673c49ff774 (diff) |
Flipped ordering of list.
CVS version numbers
english/template/debian/weeklynews/index.wml: 1.3 -> 1.4
-rw-r--r-- | english/template/debian/weeklynews/index.wml | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/english/template/debian/weeklynews/index.wml b/english/template/debian/weeklynews/index.wml index 6844a10f845..106b89c2bd1 100644 --- a/english/template/debian/weeklynews/index.wml +++ b/english/template/debian/weeklynews/index.wml @@ -9,12 +9,12 @@ sub get_weeklynews_list { opendir(DIR, "$eng_dir/$year"); @files = grep { /^$match$/ && -f "$eng_dir/$year/$_/index.wml" } readdir(DIR); - @files = sort {$a cmp $b} @files; closedir DIR; $count=0; - foreach (sort {$a <=> $b} @files) { + foreach (sort {$b <=> $a} @files) { $count++; + my $num=$_; $_="$_/index.wml"; $trans_title = $_; $trans_title =~ s/wml/title/; @@ -26,7 +26,10 @@ sub get_weeklynews_list { $title=$1; } if ($title) { - $str.="<li><a href=\"$year/$base\">$title</a>\n"; + if (length $num == 1) { + $num=" $num"; + } + $str.="$num.\t<a href=\"$year/$base\">$title</a><br>\n"; } close FILE; if ($count eq $number) { last; } |