afuna: Cat under a blanket. Text: "Cats are just little people with Fur and Fangs" (Default)
afuna ([personal profile] afuna) wrote in [site community profile] changelog2009-06-20 02:18 pm

[dw-free] Add random searches to Explore menu

[commit: http://hg.dwscoalition.org/dw-free/rev/d69d9d7483b6]

http://bugs.dwscoalition.org/show_bug.cgi?id=1330

Add links to random journal and random community under the Explore menu.

Patch by [personal profile] foxfirefey.

Files modified:
  • bin/upgrading/en.dat
  • cgi-bin/DW/Logic/MenuNav.pm
--------------------------------------------------------------------------------
diff -r cad4b540c964 -r d69d9d7483b6 bin/upgrading/en.dat
--- a/bin/upgrading/en.dat	Sat Jun 20 09:51:30 2009 +0000
+++ b/bin/upgrading/en.dat	Sat Jun 20 14:17:51 2009 +0000
@@ -2161,6 +2161,10 @@ menunav.explore.interests=Interests
 
 menunav.explore.directorysearch=Directory Search
 
+menunav.explore.randomjournal=Random Journal
+
+menunav.explore.randomcommunity=Random Community
+
 menunav.explore.faq=FAQ
 
 menunav.organize=Organize
diff -r cad4b540c964 -r d69d9d7483b6 cgi-bin/DW/Logic/MenuNav.pm
--- a/cgi-bin/DW/Logic/MenuNav.pm	Sat Jun 20 09:51:30 2009 +0000
+++ b/cgi-bin/DW/Logic/MenuNav.pm	Sat Jun 20 14:17:51 2009 +0000
@@ -183,13 +183,23 @@ sub get_menu_navigation {
         {
             name => 'explore',
             items => [
-		{ url => "$LJ::SITEROOT/interests.bml",
-		  text => "menunav.explore.interests",
-		  display => $always,
-		},
+                {   url => "$LJ::SITEROOT/interests.bml",
+                    text => "menunav.explore.interests",
+                    display => $always,
+                },
                 {
                     url => "$LJ::SITEROOT/directorysearch.bml",
                     text => "menunav.explore.directorysearch",
+                    display => $always,
+                },
+                {
+                    url => "$LJ::SITEROOT/random.bml",
+                    text => "menunav.explore.randomjournal",
+                    display => $always,
+                },
+                {
+                    url => "$LJ::SITEROOT/community/random.bml",
+                    text => "menunav.explore.randomcommunity",
                     display => $always,
                 },
                 {
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org