Mercurial > hg
comparison mercurial/templates/monoblue/map @ 24128:7ba4d53ed7d8
hgweb: remove unneeded escaping in gitweb/map and monoblue/map
Elements in map files work slightly different from regular python strings, so
escaping single quotes is not necessary. It is also demonstrated by the very
same lines: '(current diff)'.
I should've made this in 9e1f4c65f5f5, but here we go.
author | Anton Shestakov <engored@ya.ru> |
---|---|
date | Sat, 10 Jan 2015 19:43:07 +0800 |
parents | d1933c2e3c8c |
children | 3fc86f1c39d8 |
comparison
equal
deleted
inserted
replaced
24127:4cb8002658d6 | 24128:7ba4d53ed7d8 |
---|---|
127 changesetparent = ' | 127 changesetparent = ' |
128 <dt>parent {rev}</dt> | 128 <dt>parent {rev}</dt> |
129 <dd>{changesetlink}</dd>' | 129 <dd>{changesetlink}</dd>' |
130 changesetparentdiff = ' | 130 changesetparentdiff = ' |
131 <dt>parent {rev}</dt> | 131 <dt>parent {rev}</dt> |
132 <dd>{changesetlink} {ifeq(node, basenode, '(current diff)', \'({difffrom})\')}</dd>' | 132 <dd>{changesetlink} {ifeq(node, basenode, '(current diff)', '({difffrom})')}</dd>' |
133 difffrom = '<a href="{url|urlescape}rev/{node|short}:{originalnode|short}{sessionvars%urlparameter}">diff</a>' | 133 difffrom = '<a href="{url|urlescape}rev/{node|short}:{originalnode|short}{sessionvars%urlparameter}">diff</a>' |
134 filerevbranch = '<dt>branch</dt><dd>{name|escape}</dd>' | 134 filerevbranch = '<dt>branch</dt><dd>{name|escape}</dd>' |
135 filerevparent = ' | 135 filerevparent = ' |
136 <dt>parent {rev}</dt> | 136 <dt>parent {rev}</dt> |
137 <dd> | 137 <dd> |