kareila: (Default)
kareila ([personal profile] kareila) wrote in [site community profile] changelog2009-09-18 10:08 pm

[dw-free] put style=light in navstrip on recent entries/read/network/calendar/...

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

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

Put style=light in the navbar for all user pages.

Patch by [personal profile] yvi.

Files modified:
  • cgi-bin/weblib.pl
--------------------------------------------------------------------------------
diff -r dfaf2ec070fe -r c5a7784965d7 cgi-bin/weblib.pl
--- a/cgi-bin/weblib.pl	Fri Sep 18 07:16:06 2009 -0500
+++ b/cgi-bin/weblib.pl	Fri Sep 18 17:08:08 2009 -0500
@@ -2880,7 +2880,7 @@ LOGIN_BAR
     } else {
         $querysep2 = "?";
     }
-    #appropriate links depending on whether style is "mine" and whether style=light is possible on this type of content
+    #appropriate links depending on whether style is "mine"
     if ($remote) {
         if ($currentstylemine) {
             push @view_options, "<a href='$newuri'>" . LJ::Lang::ml( 'web.controlstrip.reloadpage.origstyle' ) . "</a>"
@@ -2888,8 +2888,8 @@ LOGIN_BAR
             push @view_options, "<a href='$newuri${querysep2}style=mine'>" . LJ::Lang::ml( 'web.controlstrip.reloadpage.mystyle' ) . "</a>"
         }
     }
-    push @view_options, "<a href='$newuri${querysep2}style=light'>" . LJ::Lang::ml( 'web.controlstrip.reloadpage.lightstyle' ) . "</a>"
-        if $view eq "entry" || $view eq "reply" || $view eq "tag" || $view eq "month" || ( $view eq "lastn" && $uri =~ /\/tag/ );
+    #style=light available on every page that supports showing the navstrip
+    push @view_options, "<a href='$newuri${querysep2}style=light'>" . LJ::Lang::ml( 'web.controlstrip.reloadpage.lightstyle' ) . "</a>";
 
     $ret .= "<td id='lj_controlstrip_search'>";
     $ret .= LJ::Widget::Search->render;
--------------------------------------------------------------------------------