annotate mercurial/templates/monoblue/map @ 51510:a2f1d97e5284 stable

sshpeer: fix path when handling invalid url exception In 73ed1d13c0bf the code was refactored but the error handling seems to have been missed (or maybe the object shoud have implemented __bytes__)
author Felipe Resende <felipe@fcresende.dev.br>
date Sat, 16 Mar 2024 18:37:07 -0300
parents 9ed3527019b5
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7111
91b0ada2d94b added monoblue hgweb theme
Hiroshi Funai <hfunai@gmail.com>
parents:
diff changeset
1 default = 'summary'
91b0ada2d94b added monoblue hgweb theme
Hiroshi Funai <hfunai@gmail.com>
parents:
diff changeset
2 mimetype = 'text/html; charset={encoding}'
91b0ada2d94b added monoblue hgweb theme
Hiroshi Funai <hfunai@gmail.com>
parents:
diff changeset
3 header = header.tmpl
91b0ada2d94b added monoblue hgweb theme
Hiroshi Funai <hfunai@gmail.com>
parents:
diff changeset
4 footer = footer.tmpl
91b0ada2d94b added monoblue hgweb theme
Hiroshi Funai <hfunai@gmail.com>
parents:
diff changeset
5 search = search.tmpl
91b0ada2d94b added monoblue hgweb theme
Hiroshi Funai <hfunai@gmail.com>
parents:
diff changeset
6 changelog = changelog.tmpl
91b0ada2d94b added monoblue hgweb theme
Hiroshi Funai <hfunai@gmail.com>
parents:
diff changeset
7 summary = summary.tmpl
91b0ada2d94b added monoblue hgweb theme
Hiroshi Funai <hfunai@gmail.com>
parents:
diff changeset
8 error = error.tmpl
91b0ada2d94b added monoblue hgweb theme
Hiroshi Funai <hfunai@gmail.com>
parents:
diff changeset
9 notfound = notfound.tmpl
12666
ead4e21f49f1 web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents: 10254
diff changeset
10
ead4e21f49f1 web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents: 10254
diff changeset
11 help = help.tmpl
ead4e21f49f1 web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents: 10254
diff changeset
12 helptopics = helptopics.tmpl
ead4e21f49f1 web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents: 10254
diff changeset
13
18745
3c7c25fa58e0 hgweb help: split up long lines (in generated output)
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents: 18526
diff changeset
14 helpentry = '
3c7c25fa58e0 hgweb help: split up long lines (in generated output)
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents: 18526
diff changeset
15 <tr><td>
3c7c25fa58e0 hgweb help: split up long lines (in generated output)
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents: 18526
diff changeset
16 <a href="{url|urlescape}help/{topic|escape}{sessionvars%urlparameter}">
27579
8e8b3371bee1 templates: differentiate between partial and full topic name
Gregory Szorc <gregory.szorc@gmail.com>
parents: 26958
diff changeset
17 {if(basename, '{basename|escape}', '{topic|escape}')}
18745
3c7c25fa58e0 hgweb help: split up long lines (in generated output)
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents: 18526
diff changeset
18 </a>
3c7c25fa58e0 hgweb help: split up long lines (in generated output)
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents: 18526
diff changeset
19 </td><td>
3c7c25fa58e0 hgweb help: split up long lines (in generated output)
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents: 18526
diff changeset
20 {summary|escape}
3c7c25fa58e0 hgweb help: split up long lines (in generated output)
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents: 18526
diff changeset
21 </td></tr>'
12666
ead4e21f49f1 web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents: 10254
diff changeset
22
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
23 naventry = '<a href="{url|urlescape}log/{node|short}{sessionvars%urlparameter}">{label|escape}</a> '
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
24 navshortentry = '<a href="{url|urlescape}shortlog/{node|short}{sessionvars%urlparameter}">{label|escape}</a> '
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
25 navgraphentry = '<a href="{url|urlescape}graph/{node|short}{sessionvars%urlparameter}">{label|escape}</a> '
26958
32bd195ab787 monoblue: add a space to separate navigation links in file log footer
Anton Shestakov <av6@dwimlabs.net>
parents: 26668
diff changeset
26 filenaventry = '<a href="{url|urlescape}log/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{label|escape}</a> '
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
27 filedifflink = '<a href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{file|escape}</a> '
8375
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
28 filenodelink = '
8430
8b47efdf40ee monoblue: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8375
diff changeset
29 <tr class="parity{parity}">
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
30 <td><a href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{file|escape}</a></td>
8375
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
31 <td></td>
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
32 <td>
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
33 <a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">file</a> |
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
34 <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">annotate</a> |
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
35 <a href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">diff</a> |
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
36 <a href="{url|urlescape}comparison/{node|short}/{file|urlescape}{sessionvars%urlparameter}">comparison</a> |
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
37 <a href="{url|urlescape}log/{node|short}/{file|urlescape}{sessionvars%urlparameter}">revisions</a>
8375
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
38 </td>
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
39 </tr>'
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
40 filenolink = '
8430
8b47efdf40ee monoblue: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8375
diff changeset
41 <tr class="parity{parity}">
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
42 <td><a href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{file|escape}</a></td>
14307
d5a65e3ee6b1 monoblue: improve readability of the filenolink template
Steven Brown <StevenGBrown@gmail.com>
parents: 14046
diff changeset
43 <td></td>
8375
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
44 <td>
14307
d5a65e3ee6b1 monoblue: improve readability of the filenolink template
Steven Brown <StevenGBrown@gmail.com>
parents: 14046
diff changeset
45 file |
8375
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
46 annotate |
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
47 <a href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">diff</a> |
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
48 <a href="{url|urlescape}comparison/{node|short}/{file|urlescape}{sessionvars%urlparameter}">comparison</a> |
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
49 <a href="{url|urlescape}log/{node|short}/{file|urlescape}{sessionvars%urlparameter}">revisions</a>
8375
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
50 </td>
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
51 </tr>'
10254
8d5de52431f2 hgweb: changenav: separate pages before and after the current position
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 9999
diff changeset
52
8d5de52431f2 hgweb: changenav: separate pages before and after the current position
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 9999
diff changeset
53 nav = '{before%naventry} {after%naventry}'
8d5de52431f2 hgweb: changenav: separate pages before and after the current position
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 9999
diff changeset
54 navshort = '{before%navshortentry}{after%navshortentry}'
8d5de52431f2 hgweb: changenav: separate pages before and after the current position
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 9999
diff changeset
55 navgraph = '{before%navgraphentry}{after%navgraphentry}'
8d5de52431f2 hgweb: changenav: separate pages before and after the current position
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 9999
diff changeset
56 filenav = '{before%filenaventry}{after%filenaventry}'
8d5de52431f2 hgweb: changenav: separate pages before and after the current position
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 9999
diff changeset
57
7111
91b0ada2d94b added monoblue hgweb theme
Hiroshi Funai <hfunai@gmail.com>
parents:
diff changeset
58 fileellipses = '...'
91b0ada2d94b added monoblue hgweb theme
Hiroshi Funai <hfunai@gmail.com>
parents:
diff changeset
59 changelogentry = changelogentry.tmpl
91b0ada2d94b added monoblue hgweb theme
Hiroshi Funai <hfunai@gmail.com>
parents:
diff changeset
60 changeset = changeset.tmpl
91b0ada2d94b added monoblue hgweb theme
Hiroshi Funai <hfunai@gmail.com>
parents:
diff changeset
61 manifest = manifest.tmpl
38205
9ed3527019b5 monoblue: don't show '[up]' in file view when in root directory already
Anton Shestakov <av6@dwimlabs.net>
parents: 37400
diff changeset
62 updirentry = '
9ed3527019b5 monoblue: don't show '[up]' in file view when in root directory already
Anton Shestakov <av6@dwimlabs.net>
parents: 37400
diff changeset
63 <tr class="parity{upparity}">
9ed3527019b5 monoblue: don't show '[up]' in file view when in root directory already
Anton Shestakov <av6@dwimlabs.net>
parents: 37400
diff changeset
64 <td>drwxr-xr-x</td>
9ed3527019b5 monoblue: don't show '[up]' in file view when in root directory already
Anton Shestakov <av6@dwimlabs.net>
parents: 37400
diff changeset
65 <td></td>
9ed3527019b5 monoblue: don't show '[up]' in file view when in root directory already
Anton Shestakov <av6@dwimlabs.net>
parents: 37400
diff changeset
66 <td></td>
9ed3527019b5 monoblue: don't show '[up]' in file view when in root directory already
Anton Shestakov <av6@dwimlabs.net>
parents: 37400
diff changeset
67 <td>
9ed3527019b5 monoblue: don't show '[up]' in file view when in root directory already
Anton Shestakov <av6@dwimlabs.net>
parents: 37400
diff changeset
68 <a href="{url|urlescape}file/{symrev}{up|urlescape}{sessionvars%urlparameter}">[up]</a>
9ed3527019b5 monoblue: don't show '[up]' in file view when in root directory already
Anton Shestakov <av6@dwimlabs.net>
parents: 37400
diff changeset
69 </td>
9ed3527019b5 monoblue: don't show '[up]' in file view when in root directory already
Anton Shestakov <av6@dwimlabs.net>
parents: 37400
diff changeset
70 <td class="link">&nbsp;</td>
9ed3527019b5 monoblue: don't show '[up]' in file view when in root directory already
Anton Shestakov <av6@dwimlabs.net>
parents: 37400
diff changeset
71 </tr>'
8375
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
72 direntry = '
8430
8b47efdf40ee monoblue: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8375
diff changeset
73 <tr class="parity{parity}">
8375
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
74 <td>drwxr-xr-x</td>
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
75 <td></td>
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
76 <td></td>
25232
e50d8b21f4f4 hgweb: descend empty directories in monoblue
Anton Shestakov <engored@ya.ru>
parents: 25124
diff changeset
77 <td>
25604
0cdcbc477cac hgweb: don't dereference symbolic revision in monoblue style
Anton Shestakov <av6@dwimlabs.net>
parents: 25232
diff changeset
78 <a href="{url|urlescape}file/{symrev}{path|urlescape}{sessionvars%urlparameter}">{basename|escape}</a>
0cdcbc477cac hgweb: don't dereference symbolic revision in monoblue style
Anton Shestakov <av6@dwimlabs.net>
parents: 25232
diff changeset
79 <a href="{url|urlescape}file/{symrev}{path|urlescape}/{emptydirs|urlescape}{sessionvars%urlparameter}">{emptydirs|escape}</a>
25232
e50d8b21f4f4 hgweb: descend empty directories in monoblue
Anton Shestakov <engored@ya.ru>
parents: 25124
diff changeset
80 </td>
25604
0cdcbc477cac hgweb: don't dereference symbolic revision in monoblue style
Anton Shestakov <av6@dwimlabs.net>
parents: 25232
diff changeset
81 <td><a href="{url|urlescape}file/{symrev}{path|urlescape}{sessionvars%urlparameter}">files</a></td>
8375
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
82 </tr>'
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
83 fileentry = '
8430
8b47efdf40ee monoblue: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8375
diff changeset
84 <tr class="parity{parity}">
8b47efdf40ee monoblue: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8375
diff changeset
85 <td>{permissions|permissions}</td>
8b47efdf40ee monoblue: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8375
diff changeset
86 <td>{date|isodate}</td>
8b47efdf40ee monoblue: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8375
diff changeset
87 <td>{size}</td>
25604
0cdcbc477cac hgweb: don't dereference symbolic revision in monoblue style
Anton Shestakov <av6@dwimlabs.net>
parents: 25232
diff changeset
88 <td><a href="{url|urlescape}file/{symrev}/{file|urlescape}{sessionvars%urlparameter}">{basename|escape}</a></td>
8375
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
89 <td>
25604
0cdcbc477cac hgweb: don't dereference symbolic revision in monoblue style
Anton Shestakov <av6@dwimlabs.net>
parents: 25232
diff changeset
90 <a href="{url|urlescape}file/{symrev}/{file|urlescape}{sessionvars%urlparameter}">file</a> |
0cdcbc477cac hgweb: don't dereference symbolic revision in monoblue style
Anton Shestakov <av6@dwimlabs.net>
parents: 25232
diff changeset
91 <a href="{url|urlescape}log/{symrev}/{file|urlescape}{sessionvars%urlparameter}">revisions</a> |
0cdcbc477cac hgweb: don't dereference symbolic revision in monoblue style
Anton Shestakov <av6@dwimlabs.net>
parents: 25232
diff changeset
92 <a href="{url|urlescape}annotate/{symrev}/{file|urlescape}{sessionvars%urlparameter}">annotate</a>
8375
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
93 </td>
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
94 </tr>'
7111
91b0ada2d94b added monoblue hgweb theme
Hiroshi Funai <hfunai@gmail.com>
parents:
diff changeset
95 filerevision = filerevision.tmpl
91b0ada2d94b added monoblue hgweb theme
Hiroshi Funai <hfunai@gmail.com>
parents:
diff changeset
96 fileannotate = fileannotate.tmpl
91b0ada2d94b added monoblue hgweb theme
Hiroshi Funai <hfunai@gmail.com>
parents:
diff changeset
97 filediff = filediff.tmpl
17202
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 16577
diff changeset
98 filecomparison = filecomparison.tmpl
7111
91b0ada2d94b added monoblue hgweb theme
Hiroshi Funai <hfunai@gmail.com>
parents:
diff changeset
99 filelog = filelog.tmpl
8487
338412820a57 gitweb, monoblue: break long line in map file
Martin Geisler <mg@lazybytes.net>
parents: 8430
diff changeset
100 fileline = '
26668
ceb446439f1d monoblue: visually highlight source lines when hovering over line numbers
Anton Shestakov <av6@dwimlabs.net>
parents: 26391
diff changeset
101 <a href="#{lineid}"></a><span id="{lineid}">{strip(line|escape, '\r\n')}</span>'
8375
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
102 annotateline = '
29387
6b77adc2c7b5 hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 27579
diff changeset
103 <tr id="{lineid}" class="parity{parity}{ifeq(node, originalnode, ' thisrev')}">
29574
0484dfa1e972 monoblue: make different blocks of annotated lines have different colors
Anton Shestakov <av6@dwimlabs.net>
parents: 29525
diff changeset
104 <td class="annotate linenr parity{blockparity}">
29388
f694e20193f2 hgweb: display blamed revision once per block in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29387
diff changeset
105 {if(blockhead,
29522
9c37df347485 hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29388
diff changeset
106 '<a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#l{targetline}">
29524
19f96077c61b hgweb: move author information from left-column to hover-box in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29523
diff changeset
107 {rev}
29522
9c37df347485 hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29388
diff changeset
108 </a>')}
9c37df347485 hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29388
diff changeset
109 <div class="annotate-info">
29525
d8f2c718deec hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29524
diff changeset
110 <div>
d8f2c718deec hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29524
diff changeset
111 <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#l{targetline}">
d8f2c718deec hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29524
diff changeset
112 {node|short}</a>
d8f2c718deec hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29524
diff changeset
113 {desc|escape|firstline}
d8f2c718deec hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29524
diff changeset
114 </div>
29524
19f96077c61b hgweb: move author information from left-column to hover-box in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29523
diff changeset
115 <div><em>{author|obfuscate}</em></div>
29522
9c37df347485 hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29388
diff changeset
116 <div>parents: {parents%annotateparent}</div>
29523
4b6afd1b445a hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29522
diff changeset
117 <a href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">diff</a>
4b6afd1b445a hgweb: add links to diff and changeset in hover-box on annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29522
diff changeset
118 <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">changeset</a>
29522
9c37df347485 hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29388
diff changeset
119 </div>
8375
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
120 </td>
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
121 <td class="lineno">
26363
f29ee23bf361 gitweb, monoblue: port highlighting linked lines from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26314
diff changeset
122 <a href="#{lineid}">{linenumber}</a>
8375
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
123 </td>
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
124 <td class="source">{line|escape}</td>
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
125 </tr>'
29522
9c37df347485 hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29388
diff changeset
126 annotateparent = '
9c37df347485 hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29388
diff changeset
127 <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{rev}</a>'
26314
119202d4d7a4 monoblue: port code selection without line numbers from gitweb
Anton Shestakov <av6@dwimlabs.net>
parents: 26274
diff changeset
128 difflineplus = '
26668
ceb446439f1d monoblue: visually highlight source lines when hovering over line numbers
Anton Shestakov <av6@dwimlabs.net>
parents: 26391
diff changeset
129 <a href="#{lineid}"></a><span id="{lineid}" class="difflineplus">{strip(line|escape, '\r\n')}</span>'
26314
119202d4d7a4 monoblue: port code selection without line numbers from gitweb
Anton Shestakov <av6@dwimlabs.net>
parents: 26274
diff changeset
130 difflineminus = '
26668
ceb446439f1d monoblue: visually highlight source lines when hovering over line numbers
Anton Shestakov <av6@dwimlabs.net>
parents: 26391
diff changeset
131 <a href="#{lineid}"></a><span id="{lineid}" class="difflineminus">{strip(line|escape, '\r\n')}</span>'
26314
119202d4d7a4 monoblue: port code selection without line numbers from gitweb
Anton Shestakov <av6@dwimlabs.net>
parents: 26274
diff changeset
132 difflineat = '
26668
ceb446439f1d monoblue: visually highlight source lines when hovering over line numbers
Anton Shestakov <av6@dwimlabs.net>
parents: 26391
diff changeset
133 <a href="#{lineid}"></a><span id="{lineid}" class="difflineat">{strip(line|escape, '\r\n')}</span>'
26314
119202d4d7a4 monoblue: port code selection without line numbers from gitweb
Anton Shestakov <av6@dwimlabs.net>
parents: 26274
diff changeset
134 diffline = '
26668
ceb446439f1d monoblue: visually highlight source lines when hovering over line numbers
Anton Shestakov <av6@dwimlabs.net>
parents: 26391
diff changeset
135 <a href="#{lineid}"></a><span id="{lineid}">{strip(line|escape, '\r\n')}</span>'
17202
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 16577
diff changeset
136
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 16577
diff changeset
137 comparisonblock ='
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 16577
diff changeset
138 <tbody class="block">
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 16577
diff changeset
139 {lines}
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 16577
diff changeset
140 </tbody>'
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 16577
diff changeset
141 comparisonline = '
26363
f29ee23bf361 gitweb, monoblue: port highlighting linked lines from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26314
diff changeset
142 <tr id="{lineid}">
f29ee23bf361 gitweb, monoblue: port highlighting linked lines from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26314
diff changeset
143 <td class="source {type}"><a class="linenr" href="#{lineid}">{leftlinenumber}</a> {leftline|escape}</td>
f29ee23bf361 gitweb, monoblue: port highlighting linked lines from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26314
diff changeset
144 <td class="source {type}"><a class="linenr" href="#{lineid}">{rightlinenumber}</a> {rightline|escape}</td>
17202
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 16577
diff changeset
145 </tr>'
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 16577
diff changeset
146
23740
9e1f4c65f5f5 hgweb: allow viewing diffs against p1 or p2 for merge commits (issue3904)
Anton Shestakov <engored@ya.ru>
parents: 18772
diff changeset
147 changesetlink = '<a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a>'
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
148 changesetbranch = '<dt>branch</dt><dd>{name|escape}</dd>'
8375
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
149 changesetparent = '
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
150 <dt>parent {rev}</dt>
23740
9e1f4c65f5f5 hgweb: allow viewing diffs against p1 or p2 for merge commits (issue3904)
Anton Shestakov <engored@ya.ru>
parents: 18772
diff changeset
151 <dd>{changesetlink}</dd>'
9e1f4c65f5f5 hgweb: allow viewing diffs against p1 or p2 for merge commits (issue3904)
Anton Shestakov <engored@ya.ru>
parents: 18772
diff changeset
152 changesetparentdiff = '
9e1f4c65f5f5 hgweb: allow viewing diffs against p1 or p2 for merge commits (issue3904)
Anton Shestakov <engored@ya.ru>
parents: 18772
diff changeset
153 <dt>parent {rev}</dt>
24128
7ba4d53ed7d8 hgweb: remove unneeded escaping in gitweb/map and monoblue/map
Anton Shestakov <engored@ya.ru>
parents: 23744
diff changeset
154 <dd>{changesetlink} {ifeq(node, basenode, '(current diff)', '({difffrom})')}</dd>'
23740
9e1f4c65f5f5 hgweb: allow viewing diffs against p1 or p2 for merge commits (issue3904)
Anton Shestakov <engored@ya.ru>
parents: 18772
diff changeset
155 difffrom = '<a href="{url|urlescape}rev/{node|short}:{originalnode|short}{sessionvars%urlparameter}">diff</a>'
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
156 filerevbranch = '<dt>branch</dt><dd>{name|escape}</dd>'
8375
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
157 filerevparent = '
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
158 <dt>parent {rev}</dt>
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
159 <dd>
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
160 <a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">
8375
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
161 {rename%filerename}{node|short}
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
162 </a>
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
163 </dd>'
7111
91b0ada2d94b added monoblue hgweb theme
Hiroshi Funai <hfunai@gmail.com>
parents:
diff changeset
164 filerename = '{file|escape}@'
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
165 filelogrename = '| <a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">base</a>'
8375
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
166 fileannotateparent = '
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
167 <dt>parent {rev}</dt>
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
168 <dd>
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
169 <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">
8375
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
170 {rename%filerename}{node|short}
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
171 </a>
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
172 </dd>'
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
173 changesetchild = '
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
174 <dt>child {rev}</dt>
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
175 <dd><a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></dd>'
8375
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
176 filerevchild = '
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
177 <dt>child {rev}</dt>
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
178 <dd>
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
179 <a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a>
8375
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
180 </dd>'
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
181 fileannotatechild = '
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
182 <dt>child {rev}</dt>
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
183 <dd>
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
184 <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a>
8375
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
185 </dd>'
7111
91b0ada2d94b added monoblue hgweb theme
Hiroshi Funai <hfunai@gmail.com>
parents:
diff changeset
186 tags = tags.tmpl
8375
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
187 tagentry = '
8430
8b47efdf40ee monoblue: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8375
diff changeset
188 <tr class="parity{parity}">
15375
fe9d36a6853e hgweb: fix dynamic date calculation not working under Safari
Brodie Rao <brodie@bitheap.org>
parents: 14307
diff changeset
189 <td class="nowrap age">{date|rfc822date}</td>
26391
f206543d8380 monoblue: provide links to branches, tags and bookmarks by name
Anton Shestakov <av6@dwimlabs.net>
parents: 26363
diff changeset
190 <td><a href="{url|urlescape}rev/{tag|revescape}{sessionvars%urlparameter}">{tag|escape}</a></td>
8375
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
191 <td class="nowrap">
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
192 <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">changeset</a> |
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
193 <a href="{url|urlescape}log/{node|short}{sessionvars%urlparameter}">changelog</a> |
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
194 <a href="{url|urlescape}file/{node|short}{sessionvars%urlparameter}">files</a>
8375
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
195 </td>
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
196 </tr>'
13860
b5b84dd43613 hgweb: add separate bookmarks listing to monoblue theme (based on 38c9837b1f75)
Yuya Nishihara <yuya@tcha.org>
parents: 13794
diff changeset
197 bookmarks = bookmarks.tmpl
b5b84dd43613 hgweb: add separate bookmarks listing to monoblue theme (based on 38c9837b1f75)
Yuya Nishihara <yuya@tcha.org>
parents: 13794
diff changeset
198 bookmarkentry = '
b5b84dd43613 hgweb: add separate bookmarks listing to monoblue theme (based on 38c9837b1f75)
Yuya Nishihara <yuya@tcha.org>
parents: 13794
diff changeset
199 <tr class="parity{parity}">
25868
777235417457 monoblue: show relative age of bookmarks
Anton Shestakov <av6@dwimlabs.net>
parents: 25604
diff changeset
200 <td class="nowrap age">{date|rfc822date}</td>
26391
f206543d8380 monoblue: provide links to branches, tags and bookmarks by name
Anton Shestakov <av6@dwimlabs.net>
parents: 26363
diff changeset
201 <td><a href="{url|urlescape}rev/{bookmark|revescape}{sessionvars%urlparameter}">{bookmark|escape}</a></td>
13860
b5b84dd43613 hgweb: add separate bookmarks listing to monoblue theme (based on 38c9837b1f75)
Yuya Nishihara <yuya@tcha.org>
parents: 13794
diff changeset
202 <td class="nowrap">
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
203 <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">changeset</a> |
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
204 <a href="{url|urlescape}log/{node|short}{sessionvars%urlparameter}">changelog</a> |
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
205 <a href="{url|urlescape}file/{node|short}{sessionvars%urlparameter}">files</a>
13860
b5b84dd43613 hgweb: add separate bookmarks listing to monoblue theme (based on 38c9837b1f75)
Yuya Nishihara <yuya@tcha.org>
parents: 13794
diff changeset
206 </td>
b5b84dd43613 hgweb: add separate bookmarks listing to monoblue theme (based on 38c9837b1f75)
Yuya Nishihara <yuya@tcha.org>
parents: 13794
diff changeset
207 </tr>'
8355
5ba798f339c8 monoblue: add branches page
Sune Foldager <cryo@cyanite.org>
parents: 8235
diff changeset
208 branches = branches.tmpl
8375
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
209 branchentry = '
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
210 <tr class="parity{parity}">
15375
fe9d36a6853e hgweb: fix dynamic date calculation not working under Safari
Brodie Rao <brodie@bitheap.org>
parents: 14307
diff changeset
211 <td class="nowrap age">{date|rfc822date}</td>
26391
f206543d8380 monoblue: provide links to branches, tags and bookmarks by name
Anton Shestakov <av6@dwimlabs.net>
parents: 26363
diff changeset
212 <td class="{status}"><a href="{url|urlescape}shortlog/{branch|revescape}{sessionvars%urlparameter}">{branch|escape}</a></td>
8375
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
213 <td class="nowrap">
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
214 <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">changeset</a> |
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
215 <a href="{url|urlescape}log/{node|short}{sessionvars%urlparameter}">changelog</a> |
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
216 <a href="{url|urlescape}file/{node|short}{sessionvars%urlparameter}">files</a>
8375
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
217 </td>
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
218 </tr>'
26314
119202d4d7a4 monoblue: port code selection without line numbers from gitweb
Anton Shestakov <av6@dwimlabs.net>
parents: 26274
diff changeset
219 diffblock = '<div class="diffblock"><pre class="sourcelines">{lines}</pre></div>'
8375
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
220 filediffparent = '
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
221 <dt>parent {rev}</dt>
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
222 <dd><a href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></dd>'
17202
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 16577
diff changeset
223 filecompparent = '
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 16577
diff changeset
224 <dt>parent {rev}</dt>
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
225 <dd><a href="{url|urlescape}comparison/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></dd>'
8375
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
226 filediffchild = '
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
227 <dt>child {rev}</dt>
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
228 <dd><a href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></dd>'
17202
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 16577
diff changeset
229 filecompchild = '
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 16577
diff changeset
230 <dt>child {rev}</dt>
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
231 <dd><a href="{url|urlescape}comparison/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></dd>'
7111
91b0ada2d94b added monoblue hgweb theme
Hiroshi Funai <hfunai@gmail.com>
parents:
diff changeset
232 shortlog = shortlog.tmpl
35065
a1de4ffaa7a8 hgweb: show commit phase if it's not public
Anton Shestakov <av6@dwimlabs.net>
parents: 35061
diff changeset
233 phasetag = '{ifeq(phase, 'public', '', '<span class="phasetag" title="{phase|escape}">{phase|escape}</span> ')}'
35089
69ea10d5b00c hgweb: show obsolescence status of a commit
Anton Shestakov <av6@dwimlabs.net>
parents: 35065
diff changeset
234 obsoletetag = '{if(obsolete, '<span class="obsoletetag" title="obsolete">obsolete</span> ')}'
35131
f38c91c74294 hgweb: rename the main attribute of instabilities
Anton Shestakov <av6@dwimlabs.net>
parents: 35094
diff changeset
235 instabilitytag = '<span class="instabilitytag" title="{instability|escape}">{instability|escape}</span> '
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
236 tagtag = '<span class="tagtag" title="{name|escape}">{name|escape}</span> '
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
237 branchtag = '<span class="branchtag" title="{name|escape}">{name|escape}</span> '
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
238 inbranchtag = '<span class="inbranchtag" title="{name|escape}">{name|escape}</span> '
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
239 bookmarktag = '<span class="bookmarktag" title="{name|escape}">{name|escape}</span> '
35094
38fe3fe4bbb6 hgweb: show instabilities of a commit
Anton Shestakov <av6@dwimlabs.net>
parents: 35089
diff changeset
240 alltags = '<span class="logtags">{phasetag}{obsoletetag}{instabilities%instabilitytag}{inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}{bookmarks%bookmarktag}</span>'
35486
4c7ae95e1c71 hgweb: link to successors of obsoleted changesets
Anton Shestakov <av6@dwimlabs.net>
parents: 35485
diff changeset
241 successorlink = '<a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a> '
4c7ae95e1c71 hgweb: link to successors of obsoleted changesets
Anton Shestakov <av6@dwimlabs.net>
parents: 35485
diff changeset
242 obsfatesuccessors = '{if(successors, ' as ')}{successors%successorlink}'
35485
1721ce06100a hgweb: display fate of obsolete changesets
Anton Shestakov <av6@dwimlabs.net>
parents: 35221
diff changeset
243 obsfateverb = '{obsfateverb(successors, markers)}'
1721ce06100a hgweb: display fate of obsolete changesets
Anton Shestakov <av6@dwimlabs.net>
parents: 35221
diff changeset
244 obsfateoperations = '{if(obsfateoperations(markers), ' using {join(obsfateoperations(markers), ', ')}')}'
36195
513d268eddfe hgweb: show users recorded in obsolescence markers
Anton Shestakov <av6@dwimlabs.net>
parents: 35486
diff changeset
245 obsfateusers = '{if(obsfateusers(markers), ' by {join(obsfateusers(markers)%'{user|obfuscate}', ', ')}')}'
36233
7ec5925c971e hgweb: show dates recorded in obsolescence markers
Anton Shestakov <av6@dwimlabs.net>
parents: 36195
diff changeset
246 obsfatedate = '{if(obsfatedate(markers), ' {ifeq(min(obsfatedate(markers)), max(obsfatedate(markers)), '<span class="age">{min(obsfatedate(markers))|rfc822date}</span>', 'between <span class="age">{min(obsfatedate(markers))|rfc822date}</span> and <span class="age">{max(obsfatedate(markers))|rfc822date}</span>')}')}'
36322
f3fd4fe0506f hgweb: show each obsfateentry on its own line
Anton Shestakov <av6@dwimlabs.net>
parents: 36233
diff changeset
247 obsfateentry = '
f3fd4fe0506f hgweb: show each obsfateentry on its own line
Anton Shestakov <av6@dwimlabs.net>
parents: 36233
diff changeset
248 <dt>obsolete</dt>
f3fd4fe0506f hgweb: show each obsfateentry on its own line
Anton Shestakov <av6@dwimlabs.net>
parents: 36233
diff changeset
249 <dd>{obsfateverb}{obsfateoperations}{obsfatesuccessors}{obsfateusers}{obsfatedate}</dd>'
37024
7c18798fc24d hgweb: explain instabilities of unstable changesets (the rest of the themes)
Anton Shestakov <av6@dwimlabs.net>
parents: 36322
diff changeset
250 instabilitychangesetlink = '<a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a>'
7c18798fc24d hgweb: explain instabilities of unstable changesets (the rest of the themes)
Anton Shestakov <av6@dwimlabs.net>
parents: 36322
diff changeset
251 divergentnode = '{instabilitychangesetlink} ({phase})'
7c18798fc24d hgweb: explain instabilities of unstable changesets (the rest of the themes)
Anton Shestakov <av6@dwimlabs.net>
parents: 36322
diff changeset
252 whyunstableentry = '
7c18798fc24d hgweb: explain instabilities of unstable changesets (the rest of the themes)
Anton Shestakov <av6@dwimlabs.net>
parents: 36322
diff changeset
253 <dt>unstable</dt>
7c18798fc24d hgweb: explain instabilities of unstable changesets (the rest of the themes)
Anton Shestakov <av6@dwimlabs.net>
parents: 36322
diff changeset
254 <dd>{instability}: {if(divergentnodes, divergentnodes%divergentnode)} {reason} {instabilitychangesetlink}</dd>'
8375
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
255 shortlogentry = '
8430
8b47efdf40ee monoblue: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8375
diff changeset
256 <tr class="parity{parity}">
15375
fe9d36a6853e hgweb: fix dynamic date calculation not working under Safari
Brodie Rao <brodie@bitheap.org>
parents: 14307
diff changeset
257 <td class="nowrap age">{date|rfc822date}</td>
8430
8b47efdf40ee monoblue: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8375
diff changeset
258 <td>{author|person}</td>
8375
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
259 <td>
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
260 <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">
8430
8b47efdf40ee monoblue: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8375
diff changeset
261 {desc|strip|firstline|escape|nonempty}
35061
e9a8a941950a hgweb: move changeset "tags" to a template in map file (gitweb and monoblue)
Anton Shestakov <av6@dwimlabs.net>
parents: 32759
diff changeset
262 {alltags}
8375
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
263 </a>
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
264 </td>
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
265 <td class="nowrap">
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
266 <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">changeset</a> |
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
267 <a href="{url|urlescape}file/{node|short}{sessionvars%urlparameter}">files</a>
8375
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
268 </td>
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
269 </tr>'
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
270 filelogentry = '
8430
8b47efdf40ee monoblue: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8375
diff changeset
271 <tr class="parity{parity}">
15375
fe9d36a6853e hgweb: fix dynamic date calculation not working under Safari
Brodie Rao <brodie@bitheap.org>
parents: 14307
diff changeset
272 <td class="nowrap age">{date|rfc822date}</td>
26274
ca60ba3935c6 monoblue: add author to filelogentry
Anton Shestakov <av6@dwimlabs.net>
parents: 26273
diff changeset
273 <td>{author|person}</td>
25108
09ec4220a839 hgweb: split some long lines in paper, gitweb and monoblue styles
Anton Shestakov <engored@ya.ru>
parents: 24592
diff changeset
274 <td>
09ec4220a839 hgweb: split some long lines in paper, gitweb and monoblue styles
Anton Shestakov <engored@ya.ru>
parents: 24592
diff changeset
275 <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">
09ec4220a839 hgweb: split some long lines in paper, gitweb and monoblue styles
Anton Shestakov <engored@ya.ru>
parents: 24592
diff changeset
276 {desc|strip|firstline|escape|nonempty}
35061
e9a8a941950a hgweb: move changeset "tags" to a template in map file (gitweb and monoblue)
Anton Shestakov <av6@dwimlabs.net>
parents: 32759
diff changeset
277 {alltags}
25108
09ec4220a839 hgweb: split some long lines in paper, gitweb and monoblue styles
Anton Shestakov <engored@ya.ru>
parents: 24592
diff changeset
278 </a>
09ec4220a839 hgweb: split some long lines in paper, gitweb and monoblue styles
Anton Shestakov <engored@ya.ru>
parents: 24592
diff changeset
279 </td>
8375
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
280 <td class="nowrap">
26273
8d49d4899b0f monoblue: split a long line in filelogentry template
Anton Shestakov <av6@dwimlabs.net>
parents: 25868
diff changeset
281 <a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">file</a> |
8d49d4899b0f monoblue: split a long line in filelogentry template
Anton Shestakov <av6@dwimlabs.net>
parents: 25868
diff changeset
282 <a href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">diff</a> |
8d49d4899b0f monoblue: split a long line in filelogentry template
Anton Shestakov <av6@dwimlabs.net>
parents: 25868
diff changeset
283 <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">annotate</a>
8430
8b47efdf40ee monoblue: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8375
diff changeset
284 {rename%filelogrename}
8375
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
285 </td>
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
286 </tr>'
25604
0cdcbc477cac hgweb: don't dereference symbolic revision in monoblue style
Anton Shestakov <av6@dwimlabs.net>
parents: 25232
diff changeset
287 archiveentry = '<li><a href="{url|urlescape}archive/{symrev}{extension}{ifeq(path,'/','',path|urlescape)}">{type|escape}</a></li>'
8375
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
288 indexentry = '
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
289 <tr class="parity{parity}">
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
290 <td><a href="{url|urlescape}{sessionvars%urlparameter}">{name|escape}</a></td>
8375
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
291 <td>{description}</td>
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
292 <td>{contact|obfuscate}</td>
15375
fe9d36a6853e hgweb: fix dynamic date calculation not working under Safari
Brodie Rao <brodie@bitheap.org>
parents: 14307
diff changeset
293 <td class="age">{lastchange|rfc822date}</td>
8375
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
294 <td class="indexlinks">{archives%indexarchiveentry}</td>
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
295 <td>
18046
40374059d227 hgwebdir: do not show RSS and Atom links for plain directories
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 17302
diff changeset
296 {if(isdirectory, '',
40374059d227 hgwebdir: do not show RSS and Atom links for plain directories
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 17302
diff changeset
297 '<div class="rss_logo">
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
298 <a href="{url|urlescape}rss-log">RSS</a> <a href="{url|urlescape}atom-log">Atom</a>
18046
40374059d227 hgwebdir: do not show RSS and Atom links for plain directories
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 17302
diff changeset
299 </div>'
40374059d227 hgwebdir: do not show RSS and Atom links for plain directories
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 17302
diff changeset
300 )}
8375
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
301 </td>
7c28949d1d1e monoblue: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8355
diff changeset
302 </tr>\n'
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
303 indexarchiveentry = '<a href="{url|urlescape}archive/{node|short}{extension}">{type|escape}</a> '
7111
91b0ada2d94b added monoblue hgweb theme
Hiroshi Funai <hfunai@gmail.com>
parents:
diff changeset
304 index = index.tmpl
8430
8b47efdf40ee monoblue: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8375
diff changeset
305 urlparameter = '{separator}{name}={value|urlescape}'
8b47efdf40ee monoblue: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8375
diff changeset
306 hiddenformentry = '<input type="hidden" name="{name}" value="{value|escape}" />'
7111
91b0ada2d94b added monoblue hgweb theme
Hiroshi Funai <hfunai@gmail.com>
parents:
diff changeset
307 graph = graph.tmpl
35221
75f9f366e5cc monoblue: render changesets server-side on /graph page
Anton Shestakov <av6@dwimlabs.net>
parents: 35131
diff changeset
308 graphentry = graphentry.tmpl
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
309 breadcrumb = '&gt; <a href="{url|urlescape}">{name|escape}</a> '
32759
265196cd7d7f hgweb: consolidate search form for monoblue
Gregory Szorc <gregory.szorc@gmail.com>
parents: 29992
diff changeset
310
265196cd7d7f hgweb: consolidate search form for monoblue
Gregory Szorc <gregory.szorc@gmail.com>
parents: 29992
diff changeset
311 searchform = '
265196cd7d7f hgweb: consolidate search form for monoblue
Gregory Szorc <gregory.szorc@gmail.com>
parents: 29992
diff changeset
312 <form action="{url|urlescape}log">
265196cd7d7f hgweb: consolidate search form for monoblue
Gregory Szorc <gregory.szorc@gmail.com>
parents: 29992
diff changeset
313 {sessionvars%hiddenformentry}
265196cd7d7f hgweb: consolidate search form for monoblue
Gregory Szorc <gregory.szorc@gmail.com>
parents: 29992
diff changeset
314 <dl class="search">
265196cd7d7f hgweb: consolidate search form for monoblue
Gregory Szorc <gregory.szorc@gmail.com>
parents: 29992
diff changeset
315 <dt><label>Search: </label></dt>
265196cd7d7f hgweb: consolidate search form for monoblue
Gregory Szorc <gregory.szorc@gmail.com>
parents: 29992
diff changeset
316 <dd><input type="text" name="rev" value="{query|escape}" /></dd>
265196cd7d7f hgweb: consolidate search form for monoblue
Gregory Szorc <gregory.szorc@gmail.com>
parents: 29992
diff changeset
317 </dl>
265196cd7d7f hgweb: consolidate search form for monoblue
Gregory Szorc <gregory.szorc@gmail.com>
parents: 29992
diff changeset
318 </form>'