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

login
register
mail settings
Submitter Anton Shestakov
Date June 30, 2015, 3:50 p.m.
Message ID <7b074b48443f651c884f.1435679403@neuro>
Download mbox | patch
Permalink /patch/9832/
State Accepted
Headers show

Comments

Anton Shestakov - June 30, 2015, 3:50 p.m.
# HG changeset patch
# User Anton Shestakov <av6@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.

Patch

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>