[PATCH 1 of 3] hgweb: don't show summary link as active on error pages in monoblue

Anton Shestakov av6 at dwimlabs.net
Tue Jun 30 10:50:03 CDT 2015


# HG changeset patch
# User Anton Shestakov <av6 at dwimlabs.net>
# Date 1435673758 -28800
#      Tue Jun 30 22:15:58 2015 +0800
# Node ID 7b074b48443f651c884fd99faefb4daf754b8900
# Parent  5d0847cd158741975598a29eedad1327af41fd1f
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.

diff --git a/mercurial/templates/monoblue/error.tmpl b/mercurial/templates/monoblue/error.tmpl
--- a/mercurial/templates/monoblue/error.tmpl
+++ b/mercurial/templates/monoblue/error.tmpl
@@ -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>
diff --git a/mercurial/templates/monoblue/notfound.tmpl b/mercurial/templates/monoblue/notfound.tmpl
--- a/mercurial/templates/monoblue/notfound.tmpl
+++ b/mercurial/templates/monoblue/notfound.tmpl
@@ -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>


More information about the Mercurial-devel mailing list