Mercurial > hg
comparison mercurial/templates/paper/map @ 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 | cd842821db2c |
children | 6b77adc2c7b5 |
comparison
equal
deleted
inserted
replaced
27578:d35ff0b0d0da | 27579:8e8b3371bee1 |
---|---|
13 helptopics = helptopics.tmpl | 13 helptopics = helptopics.tmpl |
14 | 14 |
15 helpentry = ' | 15 helpentry = ' |
16 <tr><td> | 16 <tr><td> |
17 <a href="{url|urlescape}help/{topic|escape}{sessionvars%urlparameter}"> | 17 <a href="{url|urlescape}help/{topic|escape}{sessionvars%urlparameter}"> |
18 {topic|escape} | 18 {if(basename, '{basename|escape}', '{topic|escape}')} |
19 </a> | 19 </a> |
20 </td><td> | 20 </td><td> |
21 {summary|escape} | 21 {summary|escape} |
22 </td></tr>' | 22 </td></tr>' |
23 | 23 |