annotate mercurial/templates/gitweb/map @ 43509:7fd16ddabaa0

vagrant: update vagrant image to buster from jessie I honestly have no idea if this works since I don't use vagrant, but looking around online suggests it should work fine. Differential Revision: https://phab.mercurial-scm.org/D7309
author Augie Fackler <augie@google.com>
date Thu, 07 Nov 2019 14:59:11 -0500
parents d6aa1fc8292f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1901
c64bef3d7043 use safer string parser for template engine.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents: 1668
diff changeset
1 default = 'summary'
5928
3340aa5a64f7 hgweb: move HTTP content types out of header templates
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 5834
diff changeset
2 mimetype = 'text/html; charset={encoding}'
3277
105253b30239 Moved hgweb map-* files into their style directories and adjusted them.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 3271
diff changeset
3 header = header.tmpl
105253b30239 Moved hgweb map-* files into their style directories and adjusted them.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 3271
diff changeset
4 footer = footer.tmpl
105253b30239 Moved hgweb map-* files into their style directories and adjusted them.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 3271
diff changeset
5 search = search.tmpl
105253b30239 Moved hgweb map-* files into their style directories and adjusted them.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 3271
diff changeset
6 changelog = changelog.tmpl
105253b30239 Moved hgweb map-* files into their style directories and adjusted them.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 3271
diff changeset
7 summary = summary.tmpl
105253b30239 Moved hgweb map-* files into their style directories and adjusted them.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 3271
diff changeset
8 error = error.tmpl
4842
d39776752a1f gitweb: add notfound template
Brendan Cully <brendan@kublai.com>
parents: 4705
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: 26670
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> '
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
26 filenaventry = '<a href="{url|urlescape}log/{node|short}/{file|urlescape}{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
27 filedifflink = '<a href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{file|escape}</a> '
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
28 filenodelink = '
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
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 class="list" href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{file|escape}</a></td>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
31 <td></td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
32 <td class="link">
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>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
38 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
39 </tr>'
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
40 filenolink = '
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
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 class="list" href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{file|escape}</a></td>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
43 <td></td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
44 <td class="link">
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
45 file |
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
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>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
50 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
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
1901
c64bef3d7043 use safer string parser for template engine.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents: 1668
diff changeset
58 fileellipses = '...'
3277
105253b30239 Moved hgweb map-* files into their style directories and adjusted them.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 3271
diff changeset
59 changelogentry = changelogentry.tmpl
105253b30239 Moved hgweb map-* files into their style directories and adjusted them.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 3271
diff changeset
60 changeset = changeset.tmpl
105253b30239 Moved hgweb map-* files into their style directories and adjusted them.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 3271
diff changeset
61 manifest = manifest.tmpl
38204
d6aa1fc8292f gitweb: don't show '[up]' in file view when in root directory already
Anton Shestakov <av6@dwimlabs.net>
parents: 37400
diff changeset
62 updirentry = '
d6aa1fc8292f gitweb: 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}">
d6aa1fc8292f gitweb: don't show '[up]' in file view when in root directory already
Anton Shestakov <av6@dwimlabs.net>
parents: 37400
diff changeset
64 <td style="font-family:monospace">drwxr-xr-x</td>
d6aa1fc8292f gitweb: don't show '[up]' in file view when in root directory already
Anton Shestakov <av6@dwimlabs.net>
parents: 37400
diff changeset
65 <td style="font-family:monospace"></td>
d6aa1fc8292f gitweb: don't show '[up]' in file view when in root directory already
Anton Shestakov <av6@dwimlabs.net>
parents: 37400
diff changeset
66 <td style="font-family:monospace"></td>
d6aa1fc8292f gitweb: don't show '[up]' in file view when in root directory already
Anton Shestakov <av6@dwimlabs.net>
parents: 37400
diff changeset
67 <td>
d6aa1fc8292f gitweb: 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>
d6aa1fc8292f gitweb: don't show '[up]' in file view when in root directory already
Anton Shestakov <av6@dwimlabs.net>
parents: 37400
diff changeset
69 </td>
d6aa1fc8292f gitweb: 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>
d6aa1fc8292f gitweb: don't show '[up]' in file view when in root directory already
Anton Shestakov <av6@dwimlabs.net>
parents: 37400
diff changeset
71 </tr>'
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
72 direntry = '
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
73 <tr class="parity{parity}">
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
74 <td style="font-family:monospace">drwxr-xr-x</td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
75 <td style="font-family:monospace"></td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
76 <td style="font-family:monospace"></td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
77 <td>
25605
dd89304687a3 hgweb: don't dereference symbolic revision in gitweb style
Anton Shestakov <av6@dwimlabs.net>
parents: 25123
diff changeset
78 <a href="{url|urlescape}file/{symrev}{path|urlescape}{sessionvars%urlparameter}">{basename|escape}</a>
dd89304687a3 hgweb: don't dereference symbolic revision in gitweb style
Anton Shestakov <av6@dwimlabs.net>
parents: 25123
diff changeset
79 <a href="{url|urlescape}file/{symrev}{path|urlescape}/{emptydirs|urlescape}{sessionvars%urlparameter}">{emptydirs|escape}</a>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
80 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
81 <td class="link">
25605
dd89304687a3 hgweb: don't dereference symbolic revision in gitweb style
Anton Shestakov <av6@dwimlabs.net>
parents: 25123
diff changeset
82 <a href="{url|urlescape}file/{symrev}{path|urlescape}{sessionvars%urlparameter}">files</a>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
83 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
84 </tr>'
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
85 fileentry = '
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
86 <tr class="parity{parity}">
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
87 <td style="font-family:monospace">{permissions|permissions}</td>
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
88 <td style="font-family:monospace" align=right>{date|isodate}</td>
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
89 <td style="font-family:monospace" align=right>{size}</td>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
90 <td class="list">
25605
dd89304687a3 hgweb: don't dereference symbolic revision in gitweb style
Anton Shestakov <av6@dwimlabs.net>
parents: 25123
diff changeset
91 <a class="list" href="{url|urlescape}file/{symrev}/{file|urlescape}{sessionvars%urlparameter}">{basename|escape}</a>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
92 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
93 <td class="link">
25605
dd89304687a3 hgweb: don't dereference symbolic revision in gitweb style
Anton Shestakov <av6@dwimlabs.net>
parents: 25123
diff changeset
94 <a href="{url|urlescape}file/{symrev}/{file|urlescape}{sessionvars%urlparameter}">file</a> |
dd89304687a3 hgweb: don't dereference symbolic revision in gitweb style
Anton Shestakov <av6@dwimlabs.net>
parents: 25123
diff changeset
95 <a href="{url|urlescape}log/{symrev}/{file|urlescape}{sessionvars%urlparameter}">revisions</a> |
dd89304687a3 hgweb: don't dereference symbolic revision in gitweb style
Anton Shestakov <av6@dwimlabs.net>
parents: 25123
diff changeset
96 <a href="{url|urlescape}annotate/{symrev}/{file|urlescape}{sessionvars%urlparameter}">annotate</a>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
97 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
98 </tr>'
3277
105253b30239 Moved hgweb map-* files into their style directories and adjusted them.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 3271
diff changeset
99 filerevision = filerevision.tmpl
105253b30239 Moved hgweb map-* files into their style directories and adjusted them.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 3271
diff changeset
100 fileannotate = fileannotate.tmpl
3353
2edf53386d86 gitweb: add file diff view
Brendan Cully <brendan@kublai.com>
parents: 3305
diff changeset
101 filediff = filediff.tmpl
17202
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
102 filecomparison = filecomparison.tmpl
3277
105253b30239 Moved hgweb map-* files into their style directories and adjusted them.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 3271
diff changeset
103 filelog = filelog.tmpl
8487
338412820a57 gitweb, monoblue: break long line in map file
Martin Geisler <mg@lazybytes.net>
parents: 8427
diff changeset
104 fileline = '
26670
ab2cd800f1b0 gitweb: visually highlight source lines when hovering over line numbers
Anton Shestakov <av6@dwimlabs.net>
parents: 26390
diff changeset
105 <a href="#{lineid}"></a><span id="{lineid}">{strip(line|escape, '\r\n')}</span>'
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
106 annotateline = '
29387
6b77adc2c7b5 hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 27579
diff changeset
107 <tr id="{lineid}" style="font-family:monospace" class="parity{parity}{ifeq(node, originalnode, ' thisrev')}">
29573
2b42fa1810c4 gitweb: make different blocks of annotated lines have different colors
Anton Shestakov <av6@dwimlabs.net>
parents: 29525
diff changeset
108 <td class="annotate linenr parity{blockparity}" style="text-align: right;">
29388
f694e20193f2 hgweb: display blamed revision once per block in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29387
diff changeset
109 {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
110 '<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
111 {rev}
29522
9c37df347485 hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29388
diff changeset
112 </a>')}
9c37df347485 hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29388
diff changeset
113 <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
114 <div>
d8f2c718deec hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29524
diff changeset
115 <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
116 {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
117 {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
118 </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
119 <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
120 <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
121 <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
122 <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
123 </div>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
124 </td>
33390
32331f54930c hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 32762
diff changeset
125 <td class="followlines-btn-parent"><pre><a class="linenr" href="#{lineid}">{linenumber}</a></pre></td>
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
126 <td><pre>{line|escape}</pre></td>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
127 </tr>'
29522
9c37df347485 hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29388
diff changeset
128 annotateparent = '
9c37df347485 hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29388
diff changeset
129 <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{rev}</a>'
26288
2239626369f5 gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26275
diff changeset
130 difflineplus = '
26670
ab2cd800f1b0 gitweb: visually highlight source lines when hovering over line numbers
Anton Shestakov <av6@dwimlabs.net>
parents: 26390
diff changeset
131 <a href="#{lineid}"></a><span id="{lineid}" class="difflineplus">{strip(line|escape, '\r\n')}</span>'
26288
2239626369f5 gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26275
diff changeset
132 difflineminus = '
26670
ab2cd800f1b0 gitweb: visually highlight source lines when hovering over line numbers
Anton Shestakov <av6@dwimlabs.net>
parents: 26390
diff changeset
133 <a href="#{lineid}"></a><span id="{lineid}" class="difflineminus">{strip(line|escape, '\r\n')}</span>'
26288
2239626369f5 gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26275
diff changeset
134 difflineat = '
26670
ab2cd800f1b0 gitweb: visually highlight source lines when hovering over line numbers
Anton Shestakov <av6@dwimlabs.net>
parents: 26390
diff changeset
135 <a href="#{lineid}"></a><span id="{lineid}" class="difflineat">{strip(line|escape, '\r\n')}</span>'
26288
2239626369f5 gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26275
diff changeset
136 diffline = '
26670
ab2cd800f1b0 gitweb: visually highlight source lines when hovering over line numbers
Anton Shestakov <av6@dwimlabs.net>
parents: 26390
diff changeset
137 <a href="#{lineid}"></a><span id="{lineid}">{strip(line|escape, '\r\n')}</span>'
17202
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
138
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
139 comparisonblock ='
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
140 <tbody class="block">
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
141 {lines}
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
142 </tbody>'
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
143 comparisonline = '
26363
f29ee23bf361 gitweb, monoblue: port highlighting linked lines from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26288
diff changeset
144 <tr id="{lineid}" style="font-family:monospace">
f29ee23bf361 gitweb, monoblue: port highlighting linked lines from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26288
diff changeset
145 <td class="{type}"><pre><a class="linenr" href="#{lineid}">{leftlinenumber}</a> {leftline|escape}</pre></td>
f29ee23bf361 gitweb, monoblue: port highlighting linked lines from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26288
diff changeset
146 <td class="{type}"><pre><a class="linenr" href="#{lineid}">{rightlinenumber}</a> {rightline|escape}</pre></td>
17202
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
147 </tr>'
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
148
23740
9e1f4c65f5f5 hgweb: allow viewing diffs against p1 or p2 for merge commits (issue3904)
Anton Shestakov <engored@ya.ru>
parents: 18772
diff changeset
149 changesetlink = '<a class="list" 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
150 changesetbranch = '<tr><td>branch</td><td>{name|escape}</td></tr>'
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
151 changesetparent = '
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
152 <tr>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
153 <td>parent {rev}</td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
154 <td style="font-family:monospace">
23740
9e1f4c65f5f5 hgweb: allow viewing diffs against p1 or p2 for merge commits (issue3904)
Anton Shestakov <engored@ya.ru>
parents: 18772
diff changeset
155 {changesetlink}
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
156 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
157 </tr>'
23740
9e1f4c65f5f5 hgweb: allow viewing diffs against p1 or p2 for merge commits (issue3904)
Anton Shestakov <engored@ya.ru>
parents: 18772
diff changeset
158 changesetparentdiff = '
9e1f4c65f5f5 hgweb: allow viewing diffs against p1 or p2 for merge commits (issue3904)
Anton Shestakov <engored@ya.ru>
parents: 18772
diff changeset
159 <tr>
9e1f4c65f5f5 hgweb: allow viewing diffs against p1 or p2 for merge commits (issue3904)
Anton Shestakov <engored@ya.ru>
parents: 18772
diff changeset
160 <td>parent {rev}</td>
9e1f4c65f5f5 hgweb: allow viewing diffs against p1 or p2 for merge commits (issue3904)
Anton Shestakov <engored@ya.ru>
parents: 18772
diff changeset
161 <td style="font-family:monospace">
24128
7ba4d53ed7d8 hgweb: remove unneeded escaping in gitweb/map and monoblue/map
Anton Shestakov <engored@ya.ru>
parents: 23744
diff changeset
162 {changesetlink} {ifeq(node, basenode, '(current diff)', '({difffrom})')}
23740
9e1f4c65f5f5 hgweb: allow viewing diffs against p1 or p2 for merge commits (issue3904)
Anton Shestakov <engored@ya.ru>
parents: 18772
diff changeset
163 </td>
9e1f4c65f5f5 hgweb: allow viewing diffs against p1 or p2 for merge commits (issue3904)
Anton Shestakov <engored@ya.ru>
parents: 18772
diff changeset
164 </tr>'
9e1f4c65f5f5 hgweb: allow viewing diffs against p1 or p2 for merge commits (issue3904)
Anton Shestakov <engored@ya.ru>
parents: 18772
diff changeset
165 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
166 filerevbranch = '<tr><td>branch</td><td>{name|escape}</td></tr>'
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
167 filerevparent = '
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
168 <tr>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
169 <td>parent {rev}</td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
170 <td style="font-family:monospace">
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
171 <a class="list" href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
172 {rename%filerename}{node|short}
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
173 </a>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
174 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
175 </tr>'
3393
22a106cb5650 hgweb: better file rename links
Brendan Cully <brendan@kublai.com>
parents: 3366
diff changeset
176 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
177 filelogrename = '| <a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">base</a>'
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
178 fileannotateparent = '
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
179 <tr>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
180 <td>parent {rev}</td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
181 <td style="font-family:monospace">
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
182 <a class="list" href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
183 {rename%filerename}{node|short}
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
184 </a>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
185 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
186 </tr>'
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
187 changesetchild = '
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
188 <tr>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
189 <td>child {rev}</td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
190 <td style="font-family:monospace">
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
191 <a class="list" href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
192 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
193 </tr>'
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
194 filerevchild = '
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
195 <tr>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
196 <td>child {rev}</td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
197 <td style="font-family:monospace">
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
198 <a class="list" href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
199 </tr>'
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
200 fileannotatechild = '
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
201 <tr>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
202 <td>child {rev}</td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
203 <td style="font-family:monospace">
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
204 <a class="list" href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
205 </tr>'
3277
105253b30239 Moved hgweb map-* files into their style directories and adjusted them.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 3271
diff changeset
206 tags = tags.tmpl
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
207 tagentry = '
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
208 <tr class="parity{parity}">
15375
fe9d36a6853e hgweb: fix dynamic date calculation not working under Safari
Brodie Rao <brodie@bitheap.org>
parents: 14046
diff changeset
209 <td class="age"><i class="age">{date|rfc822date}</i></td>
26390
0f0cda81e9b0 gitweb: provide links to branches, tags and bookmarks by name
Anton Shestakov <av6@dwimlabs.net>
parents: 26363
diff changeset
210 <td><a class="list" href="{url|urlescape}rev/{tag|revescape}{sessionvars%urlparameter}"><b>{tag|escape}</b></a></td>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
211 <td class="link">
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
212 <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
213 <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
214 <a href="{url|urlescape}file/{node|short}{sessionvars%urlparameter}">files</a>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
215 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
216 </tr>'
13864
fd8a6ca3a750 hgweb: add separate bookmarks listing to gitweb theme (based on 38c9837b1f75)
Yuya Nishihara <yuya@tcha.org>
parents: 13863
diff changeset
217 bookmarks = bookmarks.tmpl
fd8a6ca3a750 hgweb: add separate bookmarks listing to gitweb theme (based on 38c9837b1f75)
Yuya Nishihara <yuya@tcha.org>
parents: 13863
diff changeset
218 bookmarkentry = '
fd8a6ca3a750 hgweb: add separate bookmarks listing to gitweb theme (based on 38c9837b1f75)
Yuya Nishihara <yuya@tcha.org>
parents: 13863
diff changeset
219 <tr class="parity{parity}">
15375
fe9d36a6853e hgweb: fix dynamic date calculation not working under Safari
Brodie Rao <brodie@bitheap.org>
parents: 14046
diff changeset
220 <td class="age"><i class="age">{date|rfc822date}</i></td>
26390
0f0cda81e9b0 gitweb: provide links to branches, tags and bookmarks by name
Anton Shestakov <av6@dwimlabs.net>
parents: 26363
diff changeset
221 <td><a class="list" href="{url|urlescape}rev/{bookmark|revescape}{sessionvars%urlparameter}"><b>{bookmark|escape}</b></a></td>
13864
fd8a6ca3a750 hgweb: add separate bookmarks listing to gitweb theme (based on 38c9837b1f75)
Yuya Nishihara <yuya@tcha.org>
parents: 13863
diff changeset
222 <td class="link">
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
223 <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
224 <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
225 <a href="{url|urlescape}file/{node|short}{sessionvars%urlparameter}">files</a>
13864
fd8a6ca3a750 hgweb: add separate bookmarks listing to gitweb theme (based on 38c9837b1f75)
Yuya Nishihara <yuya@tcha.org>
parents: 13863
diff changeset
226 </td>
fd8a6ca3a750 hgweb: add separate bookmarks listing to gitweb theme (based on 38c9837b1f75)
Yuya Nishihara <yuya@tcha.org>
parents: 13863
diff changeset
227 </tr>'
8356
439663cd043a gitweb: add branches page
Sune Foldager <cryo@cyanite.org>
parents: 8235
diff changeset
228 branches = branches.tmpl
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
229 branchentry = '
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
230 <tr class="parity{parity}">
15375
fe9d36a6853e hgweb: fix dynamic date calculation not working under Safari
Brodie Rao <brodie@bitheap.org>
parents: 14046
diff changeset
231 <td class="age"><i class="age">{date|rfc822date}</i></td>
26390
0f0cda81e9b0 gitweb: provide links to branches, tags and bookmarks by name
Anton Shestakov <av6@dwimlabs.net>
parents: 26363
diff changeset
232 <td class="{status}"><a class="list" href="{url|urlescape}shortlog/{branch|revescape}{sessionvars%urlparameter}"><b>{branch|escape}</b></a></td>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
233 <td class="link">
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
234 <a href="{url|urlescape}changeset/{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
235 <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
236 <a href="{url|urlescape}file/{node|short}{sessionvars%urlparameter}">files</a>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
237 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
238 </tr>'
26288
2239626369f5 gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26275
diff changeset
239 diffblock = '<div class="diffblock"><pre class="sourcelines">{lines}</pre></div>'
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
240 filediffparent = '
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
241 <tr>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
242 <td>parent {rev}</td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
243 <td style="font-family:monospace">
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
244 <a class="list" href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
245 {node|short}
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
246 </a>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
247 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
248 </tr>'
17202
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
249 filecompparent = '
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
250 <tr>
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
251 <td>parent {rev}</td>
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
252 <td style="font-family:monospace">
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
253 <a class="list" href="{url|urlescape}comparison/{node|short}/{file|urlescape}{sessionvars%urlparameter}">
17202
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
254 {node|short}
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
255 </a>
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
256 </td>
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
257 </tr>'
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
258 filediffchild = '
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
259 <tr>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
260 <td>child {rev}</td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
261 <td style="font-family:monospace">
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
262 <a class="list" href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
263 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
264 </tr>'
17202
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
265 filecompchild = '
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
266 <tr>
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
267 <td>child {rev}</td>
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
268 <td style="font-family:monospace">
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
269 <a class="list" href="{url|urlescape}comparison/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a>
17202
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
270 </td>
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
271 </tr>'
3277
105253b30239 Moved hgweb map-* files into their style directories and adjusted them.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 3271
diff changeset
272 shortlog = shortlog.tmpl
6693
7f58dec6aeb7 hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents: 6657
diff changeset
273 graph = graph.tmpl
35220
dc623009e0b0 gitweb: render changesets server-side on /graph page
Anton Shestakov <av6@dwimlabs.net>
parents: 35131
diff changeset
274 graphentry = graphentry.tmpl
35065
a1de4ffaa7a8 hgweb: show commit phase if it's not public
Anton Shestakov <av6@dwimlabs.net>
parents: 35061
diff changeset
275 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
276 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
277 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
278 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
279 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
280 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
281 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
282 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
283 successorlink = '<a class="list" 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
284 obsfatesuccessors = '{if(successors, ' as ')}{successors%successorlink}'
35485
1721ce06100a hgweb: display fate of obsolete changesets
Anton Shestakov <av6@dwimlabs.net>
parents: 35220
diff changeset
285 obsfateverb = '{obsfateverb(successors, markers)}'
1721ce06100a hgweb: display fate of obsolete changesets
Anton Shestakov <av6@dwimlabs.net>
parents: 35220
diff changeset
286 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
287 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
288 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
289 obsfateentry = '
f3fd4fe0506f hgweb: show each obsfateentry on its own line
Anton Shestakov <av6@dwimlabs.net>
parents: 36233
diff changeset
290 <tr>
f3fd4fe0506f hgweb: show each obsfateentry on its own line
Anton Shestakov <av6@dwimlabs.net>
parents: 36233
diff changeset
291 <td>obsolete</td>
f3fd4fe0506f hgweb: show each obsfateentry on its own line
Anton Shestakov <av6@dwimlabs.net>
parents: 36233
diff changeset
292 <td>{obsfateverb}{obsfateoperations}{obsfatesuccessors}{obsfateusers}{obsfatedate}</td>
f3fd4fe0506f hgweb: show each obsfateentry on its own line
Anton Shestakov <av6@dwimlabs.net>
parents: 36233
diff changeset
293 </tr>'
37024
7c18798fc24d hgweb: explain instabilities of unstable changesets (the rest of the themes)
Anton Shestakov <av6@dwimlabs.net>
parents: 36322
diff changeset
294 instabilitychangesetlink = '<a class="list" 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
295 divergentnode = '{instabilitychangesetlink} ({phase})'
7c18798fc24d hgweb: explain instabilities of unstable changesets (the rest of the themes)
Anton Shestakov <av6@dwimlabs.net>
parents: 36322
diff changeset
296 whyunstableentry = '
7c18798fc24d hgweb: explain instabilities of unstable changesets (the rest of the themes)
Anton Shestakov <av6@dwimlabs.net>
parents: 36322
diff changeset
297 <tr>
7c18798fc24d hgweb: explain instabilities of unstable changesets (the rest of the themes)
Anton Shestakov <av6@dwimlabs.net>
parents: 36322
diff changeset
298 <td>unstable</td>
7c18798fc24d hgweb: explain instabilities of unstable changesets (the rest of the themes)
Anton Shestakov <av6@dwimlabs.net>
parents: 36322
diff changeset
299 <td>{instability}: {if(divergentnodes, divergentnodes%divergentnode)} {reason} {instabilitychangesetlink}</td>
7c18798fc24d hgweb: explain instabilities of unstable changesets (the rest of the themes)
Anton Shestakov <av6@dwimlabs.net>
parents: 36322
diff changeset
300 </tr>'
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
301 shortlogentry = '
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
302 <tr class="parity{parity}">
15375
fe9d36a6853e hgweb: fix dynamic date calculation not working under Safari
Brodie Rao <brodie@bitheap.org>
parents: 14046
diff changeset
303 <td class="age"><i class="age">{date|rfc822date}</i></td>
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
304 <td><i>{author|person}</i></td>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
305 <td>
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
306 <a class="list" href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
307 <b>{desc|strip|firstline|escape|nonempty}</b>
35061
e9a8a941950a hgweb: move changeset "tags" to a template in map file (gitweb and monoblue)
Anton Shestakov <av6@dwimlabs.net>
parents: 34402
diff changeset
308 {alltags}
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
309 </a>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
310 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
311 <td class="link" nowrap>
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
312 <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
313 <a href="{url|urlescape}file/{node|short}{sessionvars%urlparameter}">files</a>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
314 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
315 </tr>'
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
316 filelogentry = '
31948
7a3fc3f3e89a gitweb: handle "patch" query parameter in filelog view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29991
diff changeset
317 <tr class="parity{if(patch, '1', '{parity}')}">
15375
fe9d36a6853e hgweb: fix dynamic date calculation not working under Safari
Brodie Rao <brodie@bitheap.org>
parents: 14046
diff changeset
318 <td class="age"><i class="age">{date|rfc822date}</i></td>
26275
3e9d63820cd2 gitweb: add author to filelogentry
Anton Shestakov <av6@dwimlabs.net>
parents: 25605
diff changeset
319 <td><i>{author|person}</i></td>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
320 <td>
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
321 <a class="list" href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
322 <b>{desc|strip|firstline|escape|nonempty}</b>
35061
e9a8a941950a hgweb: move changeset "tags" to a template in map file (gitweb and monoblue)
Anton Shestakov <av6@dwimlabs.net>
parents: 34402
diff changeset
323 {alltags}
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
324 </a>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
325 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
326 <td class="link">
25108
09ec4220a839 hgweb: split some long lines in paper, gitweb and monoblue styles
Anton Shestakov <engored@ya.ru>
parents: 24128
diff changeset
327 <a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">file</a> |
09ec4220a839 hgweb: split some long lines in paper, gitweb and monoblue styles
Anton Shestakov <engored@ya.ru>
parents: 24128
diff changeset
328 <a href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">diff</a> |
09ec4220a839 hgweb: split some long lines in paper, gitweb and monoblue styles
Anton Shestakov <engored@ya.ru>
parents: 24128
diff changeset
329 <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">annotate</a>
09ec4220a839 hgweb: split some long lines in paper, gitweb and monoblue styles
Anton Shestakov <engored@ya.ru>
parents: 24128
diff changeset
330 {rename%filelogrename}
09ec4220a839 hgweb: split some long lines in paper, gitweb and monoblue styles
Anton Shestakov <engored@ya.ru>
parents: 24128
diff changeset
331 </td>
31948
7a3fc3f3e89a gitweb: handle "patch" query parameter in filelog view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29991
diff changeset
332 </tr>
7a3fc3f3e89a gitweb: handle "patch" query parameter in filelog view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29991
diff changeset
333 {if(patch, '<tr><td colspan="4">{diff}</td></tr>')}'
25605
dd89304687a3 hgweb: don't dereference symbolic revision in gitweb style
Anton Shestakov <av6@dwimlabs.net>
parents: 25123
diff changeset
334 archiveentry = ' | <a href="{url|urlescape}archive/{symrev}{extension}{ifeq(path,'/','',path|urlescape)}">{type|escape}</a> '
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
335 indexentry = '
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
336 <tr class="parity{parity}">
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
337 <td>
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
338 <a class="list" href="{url|urlescape}{sessionvars%urlparameter}">
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
339 <b>{name|escape}</b>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
340 </a>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
341 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
342 <td>{description}</td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
343 <td>{contact|obfuscate}</td>
15375
fe9d36a6853e hgweb: fix dynamic date calculation not working under Safari
Brodie Rao <brodie@bitheap.org>
parents: 14046
diff changeset
344 <td class="age">{lastchange|rfc822date}</td>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
345 <td class="indexlinks">{archives%indexarchiveentry}</td>
18046
40374059d227 hgwebdir: do not show RSS and Atom links for plain directories
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 17302
diff changeset
346 <td>{if(isdirectory, '',
40374059d227 hgwebdir: do not show RSS and Atom links for plain directories
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 17302
diff changeset
347 '<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
348 <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
349 </div>'
40374059d227 hgwebdir: do not show RSS and Atom links for plain directories
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 17302
diff changeset
350 )}
40374059d227 hgwebdir: do not show RSS and Atom links for plain directories
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 17302
diff changeset
351 </td>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
352 </tr>\n'
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
353 indexarchiveentry = ' <a href="{url|urlescape}archive/{node|short}{extension}">{type|escape}</a> '
3277
105253b30239 Moved hgweb map-* files into their style directories and adjusted them.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 3271
diff changeset
354 index = index.tmpl
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
355 urlparameter = '{separator}{name}={value|urlescape}'
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
356 hiddenformentry = '<input type="hidden" name="{name}" value="{value|escape}" />'
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
357 breadcrumb = '&gt; <a href="{url|urlescape}">{name|escape}</a> '
32760
58f3088aa2f5 hgweb: consolidate search form for gitweb
Gregory Szorc <gregory.szorc@gmail.com>
parents: 31948
diff changeset
358
58f3088aa2f5 hgweb: consolidate search form for gitweb
Gregory Szorc <gregory.szorc@gmail.com>
parents: 31948
diff changeset
359 searchform = '
32762
2d93d2159e30 hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32760
diff changeset
360 <div class="search">
2d93d2159e30 hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32760
diff changeset
361 <form id="searchform" action="{url|urlescape}log">
2d93d2159e30 hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32760
diff changeset
362 {sessionvars%hiddenformentry}
2d93d2159e30 hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32760
diff changeset
363 <input name="rev" type="text" value="{query|escape}" size="40" />
2d93d2159e30 hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32760
diff changeset
364 <div id="hint">{searchhint}</div>
2d93d2159e30 hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32760
diff changeset
365 </form>
2d93d2159e30 hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32760
diff changeset
366 </div>'
2d93d2159e30 hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32760
diff changeset
367 searchhint = 'Find changesets by keywords (author, files, the commit message), revision
2d93d2159e30 hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32760
diff changeset
368 number or hash, or <a href="{url|urlescape}help/revsets">revset expression</a>.'
34391
6797f1fbc642 hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 33390
diff changeset
369
6797f1fbc642 hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 33390
diff changeset
370 diffoptsform = '
6797f1fbc642 hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 33390
diff changeset
371 <form id="diffopts-form"
6797f1fbc642 hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 33390
diff changeset
372 data-ignorews="{if(get(diffopts, 'ignorews'), '1', '0')}"
6797f1fbc642 hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 33390
diff changeset
373 data-ignorewsamount="{if(get(diffopts, 'ignorewsamount'), '1', '0')}"
6797f1fbc642 hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 33390
diff changeset
374 data-ignorewseol="{if(get(diffopts, 'ignorewseol'), '1', '0')}"
6797f1fbc642 hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 33390
diff changeset
375 data-ignoreblanklines="{if(get(diffopts, 'ignoreblanklines'), '1', '0')}">
6797f1fbc642 hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 33390
diff changeset
376 <span>Ignore whitespace changes - </span>
6797f1fbc642 hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 33390
diff changeset
377 <span>Everywhere:</span>
6797f1fbc642 hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 33390
diff changeset
378 <input id="ignorews-checkbox" type="checkbox" />
6797f1fbc642 hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 33390
diff changeset
379 <span>Within whitespace:</span>
6797f1fbc642 hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 33390
diff changeset
380 <input id="ignorewsamount-checkbox" type="checkbox" />
6797f1fbc642 hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 33390
diff changeset
381 <span>At end of lines:</span>
6797f1fbc642 hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 33390
diff changeset
382 <input id="ignorewseol-checkbox" type="checkbox" />
34402
689f6cdccef5 hgweb: remove extra </div>
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34391
diff changeset
383 </form>'