From 067fc865a5d770e0482d4aec0d29d7e692361cd8 Mon Sep 17 00:00:00 2001 From: "Kyle J. McKay" Date: Mon, 6 Apr 2015 21:56:22 -0700 Subject: [PATCH] gitweb: make sure 'log' nav is only disable for shortlog With the default action for 'log' now being 'shortlog', the 'log' action in the nav bar should only become disabled when we are showing a shortlog, not when we are showing a full log. Signed-off-by: Kyle J. McKay --- gitweb/gitweb.perl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl index e2bb51eb18..03fd55c20c 100755 --- a/gitweb/gitweb.perl +++ b/gitweb/gitweb.perl @@ -4328,6 +4328,11 @@ sub git_print_page_nav { } $arg{'log'}{'action'} = 'shortlog'; + if ($current eq 'log') { + $current = 'shortlog'; + } elsif ($current eq 'shortlog') { + $current = 'log'; + } $arg{'tree'}{'hash'} = $treehead if defined $treehead; $arg{'tree'}{'hash_base'} = $treebase if defined $treebase; -- 2.11.4.GIT