Little hack to web service
Patrick Mézard
patrick at mezard.eu
Sat Sep 29 11:55:16 UTC 2012
Le 29/09/12 13:29, Lester Caine a écrit :
> Working full time in PHP and other languages, I'm not very productive in Python so I'm hoping someone how is will be nice and point me in the right direction to hack http://lsces.org.uk/bwhg/ a little. I'd just like to switch the Contact column to provide active links just to tidy things up. Being able to drop raw html in the hgrc file could be useful, but I can understand why it's not provided ;)
> We did have a nice hack to provide the hierarchy as well, there are a couple of areas on this tree which would benefit from being able to old away ...
You are probably using a customized template, but assuming it was not changed too much compared to the paper one, the project container page is here:
http://hg.intevation.org/mercurial/crew/file/60229b466e5a/mercurial/templates/paper/index.tmpl
The following line tells the templater to apply the "indexentry" template to each element of entries:
{entries%indexentry}
The indexentry template is defined here:
http://hg.intevation.org/mercurial/crew/file/60229b466e5a/mercurial/templates/paper/map#l207
and the part you are looking for is probably:
<td>{contact|obfuscate}</td>
which you might want to simplify and turn into an anchor.
--
Patrick Mezard
More information about the Mercurial
mailing list