Mercurial > hg-stable
changeset 27579:8e8b3371bee1
templates: differentiate between partial and full topic name
In order to support sub-topics, we need to support linking to a full
topic name while displaying the base topic name. Change the {helpentry}
template to grab the display name from an optional seperate variable
(which will be defined in a future patch).
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Wed, 30 Dec 2015 17:01:28 -0700 |
parents | d35ff0b0d0da |
children | 34c3ea65d6d1 |
files | mercurial/templates/gitweb/map mercurial/templates/monoblue/map mercurial/templates/paper/map |
diffstat | 3 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/templates/gitweb/map Wed Dec 30 17:12:59 2015 -0700 +++ b/mercurial/templates/gitweb/map Wed Dec 30 17:01:28 2015 -0700 @@ -14,7 +14,7 @@ helpentry = ' <tr><td> <a href="{url|urlescape}help/{topic|escape}{sessionvars%urlparameter}"> - {topic|escape} + {if(basename, '{basename|escape}', '{topic|escape}')} </a> </td><td> {summary|escape}
--- a/mercurial/templates/monoblue/map Wed Dec 30 17:12:59 2015 -0700 +++ b/mercurial/templates/monoblue/map Wed Dec 30 17:01:28 2015 -0700 @@ -14,7 +14,7 @@ helpentry = ' <tr><td> <a href="{url|urlescape}help/{topic|escape}{sessionvars%urlparameter}"> - {topic|escape} + {if(basename, '{basename|escape}', '{topic|escape}')} </a> </td><td> {summary|escape}
--- a/mercurial/templates/paper/map Wed Dec 30 17:12:59 2015 -0700 +++ b/mercurial/templates/paper/map Wed Dec 30 17:01:28 2015 -0700 @@ -15,7 +15,7 @@ helpentry = ' <tr><td> <a href="{url|urlescape}help/{topic|escape}{sessionvars%urlparameter}"> - {topic|escape} + {if(basename, '{basename|escape}', '{topic|escape}')} </a> </td><td> {summary|escape}