Duplicate menus once we have over 2 items (not once we have over 10)

        Patch by fu. 

diffs (24 lines):

diff -r a11dedf1db2d -r 2f61583503c7 cgi-bin/LJ/Widget/InboxFolder.pm
--- a/cgi-bin/LJ/Widget/InboxFolder.pm  Wed Mar 30 04:41:25 2011 +0800
+++ b/cgi-bin/LJ/Widget/InboxFolder.pm  Thu Mar 31 03:37:40 2011 +0800
@@ -86,7 +86,7 @@ sub render_body {
     $page = $last_page if $page > $last_page;
     my $starting_index = ($page - 1) * $page_limit;
     ${$opts{itemcount}} = scalar( @$nitems ) - $starting_index;
-    my $duplicate_menus = ${$opts{itemcount}} >= 10;
+    my $duplicate_menus = ${$opts{itemcount}} >= 3;
 
     my $prev_disabled = ($page <= 1) ? 'disabled' : '';
     my $next_disabled = ($page >= $last_page) ? 'disabled' : '';
diff -r a11dedf1db2d -r 2f61583503c7 htdocs/inbox/index.bml
--- a/htdocs/inbox/index.bml    Wed Mar 30 04:41:25 2011 +0800
+++ b/htdocs/inbox/index.bml    Thu Mar 31 03:37:40 2011 +0800
@@ -186,7 +186,7 @@ body<=
                      itemid    => $itemid,
               );
 
-    # Repeat refresh/manage links if more than 10 items on page (15 max per 
page)
+    # Repeat refresh/manage links if we have more than a few items (15 max per 
page)
     $body .= qq{
             <div class="inbox_newitems pkg">
                 <span class="esnlinks" style="float: left"><a 
href="$LJ::SITEROOT/inbox/?page=$page$viewarg$itemidarg"><?_ml inbox.refresh 
_ml?></a> |
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to