[Slashdotjp-dev 1329] [860] Add article count number to articles in index.pl

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2008年 12月 2日 (火) 19:18:21 JST


Revision: 860
          http://svn.sourceforge.jp/view?root=slashdotjp&view=rev&rev=860
Author:   tach
Date:     2008-12-02 19:18:20 +0900 (Tue, 02 Dec 2008)

Log Message:
-----------
Add article count number to articles in index.pl

Modified Paths:
--------------
    slashjp/trunk/Slash/Slash.pm
    slashjp/trunk/debian/changelog
    slashjp/trunk/themes/slashcode/htdocs/index.pl


-------------- next part --------------
Modified: slashjp/trunk/Slash/Slash.pm
===================================================================
--- slashjp/trunk/Slash/Slash.pm	2008-12-02 08:29:27 UTC (rev 859)
+++ slashjp/trunk/Slash/Slash.pm	2008-12-02 10:18:20 UTC (rev 860)
@@ -144,6 +144,7 @@
 		thresh_commentcount => $other->{thresh_commentcount},
 		expandable 	=> $other->{expandable},
 		getintro	=> $other->{getintro},
+		num		=> $other->{num},
 	);
 
 #use Data::Dumper; print STDERR scalar(localtime) . " dispStory data: " . Dumper(\%data);

Modified: slashjp/trunk/debian/changelog
===================================================================
--- slashjp/trunk/debian/changelog	2008-12-02 08:29:27 UTC (rev 859)
+++ slashjp/trunk/debian/changelog	2008-12-02 10:18:20 UTC (rev 860)
@@ -1,8 +1,9 @@
 slash (2.5.0.231-1) unstable; urgency=low
 
   * New upstream git release
+  * Add article count number to articles in index.pl
 
- -- Taku YASUI <tach****@osdn*****>  Wed, 26 Nov 2008 17:36:45 +0900
+ -- Taku YASUI <tach****@osdn*****>  Tue,  2 Dec 2008 10:17:25 +0000
 
 slash (2.5.0.218-1) unstable; urgency=low
 

Modified: slashjp/trunk/themes/slashcode/htdocs/index.pl
===================================================================
--- slashjp/trunk/themes/slashcode/htdocs/index.pl	2008-12-02 08:29:27 UTC (rev 859)
+++ slashjp/trunk/themes/slashcode/htdocs/index.pl	2008-12-02 10:18:20 UTC (rev 860)
@@ -587,6 +587,7 @@
 	# later (this simulates the old cursor-based method from circa 1997
 	# which was actually not all that smart, but umpteen layers of caching
 	# makes it quite tolerable here in 2004 :)
+	my $num_s = 0;
 	my $story;
 	STORIES_DISPLAY: while ($story = shift @$stories) {
 		my($tmpreturn, $other, @links);
@@ -647,6 +648,8 @@
 			? $threshComments[$user->{threshold} + 1]
 			: $story->{commentcount};
 
+		$num_s++;
+		$other->{num} = $num_s;
 		$tmpreturn .= displayStory($story->{sid}, '', $other, $stories_data_cache);
 		
 		if ($other->{dispmode} eq "full") {


Slashdotjp-dev メーリングリストの案内
Back to archive index