changeset 25685:51658e676cc3

hgweb: don't show summary link as active on error pages in monoblue These two error pages in monoblue think they are the summary page, when they clearly aren't.
author Anton Shestakov <av6@dwimlabs.net>
date Tue, 30 Jun 2015 22:15:58 +0800
parents 0f894d2203c8
children def530e77b0b
files mercurial/templates/monoblue/error.tmpl mercurial/templates/monoblue/notfound.tmpl
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/templates/monoblue/error.tmpl	Sun Jun 28 13:22:17 2015 -0400
+++ b/mercurial/templates/monoblue/error.tmpl	Tue Jun 30 22:15:58 2015 +0800
@@ -18,7 +18,7 @@
         </form>
 
         <ul class="page-nav">
-            <li class="current">summary</li>
+            <li><a href="{url|urlescape}summary{sessionvars%urlparameter}">summary</a></li>
             <li><a href="{url|urlescape}shortlog{sessionvars%urlparameter}">shortlog</a></li>
             <li><a href="{url|urlescape}log{sessionvars%urlparameter}">changelog</a></li>
             <li><a href="{url|urlescape}graph{sessionvars%urlparameter}">graph</a></li>
--- a/mercurial/templates/monoblue/notfound.tmpl	Sun Jun 28 13:22:17 2015 -0400
+++ b/mercurial/templates/monoblue/notfound.tmpl	Tue Jun 30 22:15:58 2015 +0800
@@ -18,7 +18,7 @@
         </form>
 
         <ul class="page-nav">
-            <li class="current">summary</li>
+            <li><a href="{url|urlescape}summary{sessionvars%urlparameter}">summary</a></li>
             <li><a href="{url|urlescape}shortlog{sessionvars%urlparameter}">shortlog</a></li>
             <li><a href="{url|urlescape}log{sessionvars%urlparameter}">changelog</a></li>
             <li><a href="{url|urlescape}graph{sessionvars%urlparameter}">graph</a></li>