Little hack to web service

Lester Caine lester at lsces.co.uk
Sat Sep 29 14:29:27 UTC 2012


Patrick Mézard wrote:
> 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.

Thanks for that Patrick ... exactly the kick I needed!
As usual once you have the answer, the question is easy - now perhaps I WILL get 
around to a custom template :) But it does a job ...

-- 
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk
Rainbow Digital Media - http://rainbowdigitalmedia.co.uk



More information about the Mercurial mailing list