annotate mercurial/templates/gitweb/map @ 36322:f3fd4fe0506f

hgweb: show each obsfateentry on its own line Commits with more than one reason for being obsolete used to just show obsfate entries all on one line, and that doesn't look good. Let's show each entry on its own line. In paper and coal the lines are simply split using a <br> element, and in other hgweb themes each entry has its own table header. This is done by analogy with changeset parents and children -- in paper and coal they are all put into one table row, and everywhere else each one gets a separate row.
author Anton Shestakov <av6@dwimlabs.net>
date Mon, 19 Feb 2018 12:48:50 +0800
parents 7ec5925c971e
children 7c18798fc24d
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 searchentry = changelogentry.tmpl
105253b30239 Moved hgweb map-* files into their style directories and adjusted them.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 3271
diff changeset
61 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
62 manifest = manifest.tmpl
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
63 direntry = '
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
64 <tr class="parity{parity}">
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
65 <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
66 <td style="font-family:monospace"></td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
67 <td style="font-family:monospace"></td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
68 <td>
25605
dd89304687a3 hgweb: don't dereference symbolic revision in gitweb style
Anton Shestakov <av6@dwimlabs.net>
parents: 25123
diff changeset
69 <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
70 <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
71 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
72 <td class="link">
25605
dd89304687a3 hgweb: don't dereference symbolic revision in gitweb style
Anton Shestakov <av6@dwimlabs.net>
parents: 25123
diff changeset
73 <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
74 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
75 </tr>'
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
76 fileentry = '
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
77 <tr class="parity{parity}">
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
78 <td style="font-family:monospace">{permissions|permissions}</td>
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
79 <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
80 <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
81 <td class="list">
25605
dd89304687a3 hgweb: don't dereference symbolic revision in gitweb style
Anton Shestakov <av6@dwimlabs.net>
parents: 25123
diff changeset
82 <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
83 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
84 <td class="link">
25605
dd89304687a3 hgweb: don't dereference symbolic revision in gitweb style
Anton Shestakov <av6@dwimlabs.net>
parents: 25123
diff changeset
85 <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
86 <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
87 <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
88 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
89 </tr>'
3277
105253b30239 Moved hgweb map-* files into their style directories and adjusted them.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 3271
diff changeset
90 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
91 fileannotate = fileannotate.tmpl
3353
2edf53386d86 gitweb: add file diff view
Brendan Cully <brendan@kublai.com>
parents: 3305
diff changeset
92 filediff = filediff.tmpl
17202
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
93 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
94 filelog = filelog.tmpl
8487
338412820a57 gitweb, monoblue: break long line in map file
Martin Geisler <mg@lazybytes.net>
parents: 8427
diff changeset
95 fileline = '
26670
ab2cd800f1b0 gitweb: visually highlight source lines when hovering over line numbers
Anton Shestakov <av6@dwimlabs.net>
parents: 26390
diff changeset
96 <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
97 annotateline = '
29387
6b77adc2c7b5 hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 27579
diff changeset
98 <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
99 <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
100 {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
101 '<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
102 {rev}
29522
9c37df347485 hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29388
diff changeset
103 </a>')}
9c37df347485 hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29388
diff changeset
104 <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
105 <div>
d8f2c718deec hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29524
diff changeset
106 <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
107 {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
108 {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
109 </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
110 <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
111 <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
112 <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
113 <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
114 </div>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
115 </td>
33390
32331f54930c hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 32762
diff changeset
116 <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
117 <td><pre>{line|escape}</pre></td>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
118 </tr>'
29522
9c37df347485 hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29388
diff changeset
119 annotateparent = '
9c37df347485 hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29388
diff changeset
120 <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
121 difflineplus = '
26670
ab2cd800f1b0 gitweb: visually highlight source lines when hovering over line numbers
Anton Shestakov <av6@dwimlabs.net>
parents: 26390
diff changeset
122 <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
123 difflineminus = '
26670
ab2cd800f1b0 gitweb: visually highlight source lines when hovering over line numbers
Anton Shestakov <av6@dwimlabs.net>
parents: 26390
diff changeset
124 <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
125 difflineat = '
26670
ab2cd800f1b0 gitweb: visually highlight source lines when hovering over line numbers
Anton Shestakov <av6@dwimlabs.net>
parents: 26390
diff changeset
126 <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
127 diffline = '
26670
ab2cd800f1b0 gitweb: visually highlight source lines when hovering over line numbers
Anton Shestakov <av6@dwimlabs.net>
parents: 26390
diff changeset
128 <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
129
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
130 comparisonblock ='
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
131 <tbody class="block">
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
132 {lines}
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
133 </tbody>'
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
134 comparisonline = '
26363
f29ee23bf361 gitweb, monoblue: port highlighting linked lines from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26288
diff changeset
135 <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
136 <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
137 <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
138 </tr>'
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
139
23740
9e1f4c65f5f5 hgweb: allow viewing diffs against p1 or p2 for merge commits (issue3904)
Anton Shestakov <engored@ya.ru>
parents: 18772
diff changeset
140 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
141 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
142 changesetparent = '
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
143 <tr>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
144 <td>parent {rev}</td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
145 <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
146 {changesetlink}
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
147 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
148 </tr>'
23740
9e1f4c65f5f5 hgweb: allow viewing diffs against p1 or p2 for merge commits (issue3904)
Anton Shestakov <engored@ya.ru>
parents: 18772
diff changeset
149 changesetparentdiff = '
9e1f4c65f5f5 hgweb: allow viewing diffs against p1 or p2 for merge commits (issue3904)
Anton Shestakov <engored@ya.ru>
parents: 18772
diff changeset
150 <tr>
9e1f4c65f5f5 hgweb: allow viewing diffs against p1 or p2 for merge commits (issue3904)
Anton Shestakov <engored@ya.ru>
parents: 18772
diff changeset
151 <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
152 <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
153 {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
154 </td>
9e1f4c65f5f5 hgweb: allow viewing diffs against p1 or p2 for merge commits (issue3904)
Anton Shestakov <engored@ya.ru>
parents: 18772
diff changeset
155 </tr>'
9e1f4c65f5f5 hgweb: allow viewing diffs against p1 or p2 for merge commits (issue3904)
Anton Shestakov <engored@ya.ru>
parents: 18772
diff changeset
156 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
157 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
158 filerevparent = '
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
159 <tr>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
160 <td>parent {rev}</td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
161 <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
162 <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
163 {rename%filerename}{node|short}
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
164 </a>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
165 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
166 </tr>'
3393
22a106cb5650 hgweb: better file rename links
Brendan Cully <brendan@kublai.com>
parents: 3366
diff changeset
167 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
168 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
169 fileannotateparent = '
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
170 <tr>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
171 <td>parent {rev}</td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
172 <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
173 <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
174 {rename%filerename}{node|short}
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
175 </a>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
176 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
177 </tr>'
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
178 changesetchild = '
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>child {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}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
183 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
184 </tr>'
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
185 filerevchild = '
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 <td>child {rev}</td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
188 <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
189 <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
190 </tr>'
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
191 fileannotatechild = '
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
192 <tr>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
193 <td>child {rev}</td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
194 <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
195 <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
196 </tr>'
3277
105253b30239 Moved hgweb map-* files into their style directories and adjusted them.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 3271
diff changeset
197 tags = tags.tmpl
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
198 tagentry = '
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
199 <tr class="parity{parity}">
15375
fe9d36a6853e hgweb: fix dynamic date calculation not working under Safari
Brodie Rao <brodie@bitheap.org>
parents: 14046
diff changeset
200 <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
201 <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
202 <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
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>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
206 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
207 </tr>'
13864
fd8a6ca3a750 hgweb: add separate bookmarks listing to gitweb theme (based on 38c9837b1f75)
Yuya Nishihara <yuya@tcha.org>
parents: 13863
diff changeset
208 bookmarks = bookmarks.tmpl
fd8a6ca3a750 hgweb: add separate bookmarks listing to gitweb theme (based on 38c9837b1f75)
Yuya Nishihara <yuya@tcha.org>
parents: 13863
diff changeset
209 bookmarkentry = '
fd8a6ca3a750 hgweb: add separate bookmarks listing to gitweb theme (based on 38c9837b1f75)
Yuya Nishihara <yuya@tcha.org>
parents: 13863
diff changeset
210 <tr class="parity{parity}">
15375
fe9d36a6853e hgweb: fix dynamic date calculation not working under Safari
Brodie Rao <brodie@bitheap.org>
parents: 14046
diff changeset
211 <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
212 <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
213 <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
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>
13864
fd8a6ca3a750 hgweb: add separate bookmarks listing to gitweb theme (based on 38c9837b1f75)
Yuya Nishihara <yuya@tcha.org>
parents: 13863
diff changeset
217 </td>
fd8a6ca3a750 hgweb: add separate bookmarks listing to gitweb theme (based on 38c9837b1f75)
Yuya Nishihara <yuya@tcha.org>
parents: 13863
diff changeset
218 </tr>'
8356
439663cd043a gitweb: add branches page
Sune Foldager <cryo@cyanite.org>
parents: 8235
diff changeset
219 branches = branches.tmpl
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
220 branchentry = '
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
221 <tr class="parity{parity}">
15375
fe9d36a6853e hgweb: fix dynamic date calculation not working under Safari
Brodie Rao <brodie@bitheap.org>
parents: 14046
diff changeset
222 <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
223 <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
224 <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
225 <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
226 <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
227 <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
228 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
229 </tr>'
26288
2239626369f5 gitweb: port code selection without line numbers from paper
Anton Shestakov <av6@dwimlabs.net>
parents: 26275
diff changeset
230 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
231 filediffparent = '
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
232 <tr>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
233 <td>parent {rev}</td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
234 <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
235 <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
236 {node|short}
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
237 </a>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
238 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
239 </tr>'
17202
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
240 filecompparent = '
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
241 <tr>
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
242 <td>parent {rev}</td>
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
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}comparison/{node|short}/{file|urlescape}{sessionvars%urlparameter}">
17202
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
245 {node|short}
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
246 </a>
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
247 </td>
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
248 </tr>'
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
249 filediffchild = '
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
250 <tr>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
251 <td>child {rev}</td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
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}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
254 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
255 </tr>'
17202
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
256 filecompchild = '
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
257 <tr>
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
258 <td>child {rev}</td>
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
259 <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
260 <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
261 </td>
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
262 </tr>'
3277
105253b30239 Moved hgweb map-* files into their style directories and adjusted them.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 3271
diff changeset
263 shortlog = shortlog.tmpl
6693
7f58dec6aeb7 hgweb: Fix up non-coal styles to support graph.
Augie Fackler <durin42@gmail.com>
parents: 6657
diff changeset
264 graph = graph.tmpl
35220
dc623009e0b0 gitweb: render changesets server-side on /graph page
Anton Shestakov <av6@dwimlabs.net>
parents: 35131
diff changeset
265 graphentry = graphentry.tmpl
35065
a1de4ffaa7a8 hgweb: show commit phase if it's not public
Anton Shestakov <av6@dwimlabs.net>
parents: 35061
diff changeset
266 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
267 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
268 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
269 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
270 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
271 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
272 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
273 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
274 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
275 obsfatesuccessors = '{if(successors, ' as ')}{successors%successorlink}'
35485
1721ce06100a hgweb: display fate of obsolete changesets
Anton Shestakov <av6@dwimlabs.net>
parents: 35220
diff changeset
276 obsfateverb = '{obsfateverb(successors, markers)}'
1721ce06100a hgweb: display fate of obsolete changesets
Anton Shestakov <av6@dwimlabs.net>
parents: 35220
diff changeset
277 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
278 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
279 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
280 obsfateentry = '
f3fd4fe0506f hgweb: show each obsfateentry on its own line
Anton Shestakov <av6@dwimlabs.net>
parents: 36233
diff changeset
281 <tr>
f3fd4fe0506f hgweb: show each obsfateentry on its own line
Anton Shestakov <av6@dwimlabs.net>
parents: 36233
diff changeset
282 <td>obsolete</td>
f3fd4fe0506f hgweb: show each obsfateentry on its own line
Anton Shestakov <av6@dwimlabs.net>
parents: 36233
diff changeset
283 <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
284 </tr>'
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
285 shortlogentry = '
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
286 <tr class="parity{parity}">
15375
fe9d36a6853e hgweb: fix dynamic date calculation not working under Safari
Brodie Rao <brodie@bitheap.org>
parents: 14046
diff changeset
287 <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
288 <td><i>{author|person}</i></td>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
289 <td>
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
290 <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
291 <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
292 {alltags}
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
293 </a>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
294 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
295 <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
296 <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
297 <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
298 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
299 </tr>'
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
300 filelogentry = '
31948
7a3fc3f3e89a gitweb: handle "patch" query parameter in filelog view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29991
diff changeset
301 <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
302 <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
303 <td><i>{author|person}</i></td>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
304 <td>
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
305 <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
306 <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
307 {alltags}
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
308 </a>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
309 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
310 <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
311 <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
312 <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
313 <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
314 {rename%filelogrename}
09ec4220a839 hgweb: split some long lines in paper, gitweb and monoblue styles
Anton Shestakov <engored@ya.ru>
parents: 24128
diff changeset
315 </td>
31948
7a3fc3f3e89a gitweb: handle "patch" query parameter in filelog view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29991
diff changeset
316 </tr>
7a3fc3f3e89a gitweb: handle "patch" query parameter in filelog view
Denis Laxalde <denis.laxalde@logilab.fr>
parents: 29991
diff changeset
317 {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
318 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
319 indexentry = '
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
320 <tr class="parity{parity}">
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
321 <td>
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
322 <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
323 <b>{name|escape}</b>
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>{description}</td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
327 <td>{contact|obfuscate}</td>
15375
fe9d36a6853e hgweb: fix dynamic date calculation not working under Safari
Brodie Rao <brodie@bitheap.org>
parents: 14046
diff changeset
328 <td class="age">{lastchange|rfc822date}</td>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
329 <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
330 <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
331 '<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
332 <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
333 </div>'
40374059d227 hgwebdir: do not show RSS and Atom links for plain directories
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 17302
diff changeset
334 )}
40374059d227 hgwebdir: do not show RSS and Atom links for plain directories
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 17302
diff changeset
335 </td>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
336 </tr>\n'
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
337 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
338 index = index.tmpl
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
339 urlparameter = '{separator}{name}={value|urlescape}'
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
340 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
341 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
342
58f3088aa2f5 hgweb: consolidate search form for gitweb
Gregory Szorc <gregory.szorc@gmail.com>
parents: 31948
diff changeset
343 searchform = '
32762
2d93d2159e30 hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32760
diff changeset
344 <div class="search">
2d93d2159e30 hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32760
diff changeset
345 <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
346 {sessionvars%hiddenformentry}
2d93d2159e30 hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32760
diff changeset
347 <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
348 <div id="hint">{searchhint}</div>
2d93d2159e30 hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32760
diff changeset
349 </form>
2d93d2159e30 hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32760
diff changeset
350 </div>'
2d93d2159e30 hgweb: refresh styling of gitweb's search form
Gregory Szorc <gregory.szorc@gmail.com>
parents: 32760
diff changeset
351 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
352 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
353
6797f1fbc642 hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 33390
diff changeset
354 diffoptsform = '
6797f1fbc642 hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 33390
diff changeset
355 <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
356 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
357 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
358 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
359 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
360 <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
361 <span>Everywhere:</span>
6797f1fbc642 hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents: 33390
diff changeset
362 <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
363 <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
364 <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
365 <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
366 <input id="ignorewseol-checkbox" type="checkbox" />
34402
689f6cdccef5 hgweb: remove extra </div>
Gregory Szorc <gregory.szorc@gmail.com>
parents: 34391
diff changeset
367 </form>'