[Slashdotjp-dev 972] [495] Add "aretama" for Slashdot Japan to Firehose tab

Back to archive index

svnno****@sourc***** svnno****@sourc*****
2008年 2月 8日 (金) 01:32:05 JST


Revision: 495
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=495
Author:   tach
Date:     2008-02-08 01:32:05 +0900 (Fri, 08 Feb 2008)

Log Message:
-----------
Add "aretama" for Slashdot Japan to Firehose tab

Modified Paths:
--------------
    slashjp/trunk/debian/changelog
    slashjp/trunk/plugins/FireHose/FireHose.pm


-------------- next part --------------
Modified: slashjp/trunk/debian/changelog
===================================================================
--- slashjp/trunk/debian/changelog	2008-02-07 16:14:28 UTC (rev 494)
+++ slashjp/trunk/debian/changelog	2008-02-07 16:32:05 UTC (rev 495)
@@ -6,8 +6,9 @@
     - Change case of string
     - Suppress Delete neverdisplay stories from story_dirty message
   * Fix: delete discussion when another stories have same discussion
+  * Add "aretama" for Slashdot Japan to Firehose tab
 
- -- Taku YASUI <tach****@osdn*****>  Wed, 06 Feb 2008 18:17:55 +0900
+ -- Taku YASUI <tach****@osdn*****>  Fri, 08 Feb 2008 01:31:13 +0900
 
 slash (2.5.0.189-3) unstable; urgency=low
 

Modified: slashjp/trunk/plugins/FireHose/FireHose.pm
===================================================================
--- slashjp/trunk/plugins/FireHose/FireHose.pm	2008-02-07 16:14:28 UTC (rev 494)
+++ slashjp/trunk/plugins/FireHose/FireHose.pm	2008-02-07 16:32:05 UTC (rev 495)
@@ -1643,7 +1643,7 @@
 	my $options 	= {};
 
 	my $types = { feed => 1, bookmark => 1, submission => 1, journal => 1, story => 1, vendor => 1, misc => 1 }; 
-	my $tabtypes = { tabsection => 1, tabpopular => 1, tabrecent => 1, tabuser => 1};
+	my $tabtypes = { tabsection => 1, tabpopular => 1, tabrecent => 1, tabuser => 1, aretama => 1 };
 	
 	my $tabtype = '';
 	$tabtype = $form->{tabtype} if $form->{tabtype} && $tabtypes->{ $form->{tabtype} };
@@ -1754,7 +1754,7 @@
 			$form->{section} = $gSkin->{skid} == $constants->{mainpage_skid} ? 0 : $gSkin->{skid};
 		}
 		if (!$tabtype) {
-			$tabtype = 'tabsection';
+			$tabtype = 'aretama';
 		}
 	}
 
@@ -1782,6 +1782,11 @@
 		$options->{color} = "black";
 		$options->{orderdir} = "DESC";
 		$options->{orderby} = "createtime";
+	} elsif ($tabtype eq 'aretama') {
+		$form->{fhfilter} = "";
+		$options->{orderdir} = "DESC";
+		$options->{orderby} = "createtime";
+		$options->{color} = "indigo";
 	}
 
 	if ($tabtype) {
@@ -1815,6 +1820,7 @@
 		$skin_prefix = "$the_skin->{name} ";
 	}
 	my $system_tabs = [ 
+		{ tabtype => 'aretama', color => 'indigo', filter => $skin_prefix},
 		{ tabtype => 'tabsection', color => 'black', filter => $skin_prefix . "story"},
 		{ tabtype => 'tabpopular', color => 'black', filter => "$skin_prefix\-story"},
 		{ tabtype => 'tabrecent',  color => 'indigo',  filter => "$skin_prefix\-story"},
@@ -2530,7 +2536,7 @@
 
 	foreach my $skid (keys %$skins) {
 		if ($skins->{$skid}{skid} == $constants->{mainpage_skid}) {
-			$menu->{0} = $constants->{sitename};
+			$menu->{0} = $constants->{mainpage_name} || $constants->{sitename};
 		} else {
 			$menu->{$skid} = $skins->{$skid}{title};
 		}


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