Mercurial > hg-stable
comparison mercurial/templates/monoblue/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 | 31bedb15e2e5 |
comparison
equal
deleted
inserted
replaced
18627:4e949b8e0930 | 18628:52305554fd6e |
---|---|
55 {child%filerevchild} | 55 {child%filerevchild} |
56 <dt>permissions</dt> | 56 <dt>permissions</dt> |
57 <dd>{permissions|permissions}</dd> | 57 <dd>{permissions|permissions}</dd> |
58 </dl> | 58 </dl> |
59 | 59 |
60 <p class="description">{desc|strip|escape|addbreaks|nonempty}</p> | 60 <p class="description">{desc|strip|escape|websub|addbreaks|nonempty}</p> |
61 | 61 |
62 <div class="source"> | 62 <div class="source"> |
63 {text%fileline} | 63 {text%fileline} |
64 </div> | 64 </div> |
65 | 65 |