Mercurial > hg
diff mercurial/templates/spartan/filerevision.tmpl @ 18628:52305554fd6e
hgweb: apply the websub filter to revision descriptions
In order to use this, add a [websub] section to your configuration and add
websub expressions such as:
italic = s/\b_(\S+)_\b/<i>\1<\/i>/
bold = s/\*\b(\S+)\b\*/<b>\1<\/b>/
issues = s|issue(\d+)|<a href="http://bts.example.org/issue\1">issue\1</a>|i
bugzilla = s!((?:bug|b=|(?=#?\d{4,}))(?:\s*#?)(\d+))!<a href="http://bz.selenic.com/\2">\1</a>!i
This also adds documentation (proofed by Kevin!) to the config help section.
author | Angel Ezquerra <angel.ezquerra@gmail.com> |
---|---|
date | Sat, 09 Feb 2013 16:48:21 +0100 |
parents | 9409aeaafdc1 |
children | 30f449378f64 |
line wrap: on
line diff
--- a/mercurial/templates/spartan/filerevision.tmpl Fri Feb 08 18:05:32 2013 +0100 +++ b/mercurial/templates/spartan/filerevision.tmpl Sat Feb 09 16:48:21 2013 +0100 @@ -36,7 +36,7 @@ <td>{permissions|permissions}</td></tr> <tr> <td class="metatag">description:</td> - <td>{desc|strip|escape|addbreaks|nonempty}</td> + <td>{desc|strip|escape|websub|addbreaks|nonempty}</td> </tr> </table>