[PATCH] hgweb: Accessibility improvement for returning help page from its topic pages

Benoît Allard benoit at aeteurope.nl
Wed Apr 13 08:54:25 CDT 2011


Mert Salık wrote:
> # HG changeset patch
> # User mertsalik
> # Date 1302693762 -10800
> # Node ID 2d12ff67130abe33deaa9b395e9217e7fa13758d
> # Parent  cff56a0ed18ec3d2f7816eccc6ef4ad9ebf3430d
> hgweb: Returning main help page from help topics is difficult and there 
> was no active "/help" link around page. Cross link for Help page added 
> inside of Help header.
> 
> diff -r cff56a0ed18e -r 2d12ff67130a mercurial/templates/paper/help.tmpl
> --- a/mercurial/templates/paper/help.tmpl    Mon Apr 11 21:44:22 2011 +0300
> +++ b/mercurial/templates/paper/help.tmpl    Wed Apr 13 14:22:42 2011 +0300
> @@ -27,7 +27,7 @@
>  
>  <div class="main">
>  <h2><a href="{url}{sessionvars%urlparameter}">{repo|escape}</a></h2>
> -<h3>Help: {topic}</h3>
> +<h3><a href="/help">Help:</a> {topic}</h3>

This will not work when hg is not served at the root of your server. 
You'd better use <a href="{url}help">Help:</a>

>  
>  <form class="search" action="{url}log">
>  {sessionvars%hiddenformentry}
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 6370 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20110413/c9b37fdf/attachment.bin>


More information about the Mercurial-devel mailing list