annotate mercurial/templates/gitweb/map @ 17202:1ae119269ddc

hgweb: side-by-side comparison functionality Adds new web command to the core, ``comparison``, which enables colorful side-by-side change display, which for some might be much easier to work with than the standard line diff output. The idea how to implement comes from the SonicHq extension. The web interface gets a new link to call the comparison functionality. It lets users configure the amount of context lines around change blocks, or to show full files - check help (also in this changeset) for details and defaults. The setting in hgrc can be overridden by adding ``context=<value>`` to the request query string. The comparison creates addressable lines, so as to enable sharing links to specific lines, just as standard diff does. Incorporates updates to all web related styles. Known limitations: * the column diff is done against the first parent, just as the standard diff * this change allows examining diffs for single files only (as I am not sure if examining the whole changeset in this way would be helpful) * syntax highlighting of the output changes is not performed (enabling the highlight extension has no influence on it)
author wujek srujek
date Sun, 08 Jul 2012 17:17:02 +0200
parents fe9d36a6853e
children 5c64ce6168da
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
ead4e21f49f1 web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents: 10254
diff changeset
14 helpentry = '<tr><td><a href="{url}help/{topic|escape}{sessionvars%urlparameter}">{topic|escape}</a></td><td>{summary|escape}</td></tr>'
ead4e21f49f1 web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents: 10254
diff changeset
15
3422
0eba7e76cd02 Convert changenav bar from revisions to hashes (closes issue189)
Brendan Cully <brendan@kublai.com>
parents: 3407
diff changeset
16 naventry = '<a href="{url}log/{node|short}{sessionvars%urlparameter}">{label|escape}</a> '
0eba7e76cd02 Convert changenav bar from revisions to hashes (closes issue189)
Brendan Cully <brendan@kublai.com>
parents: 3407
diff changeset
17 navshortentry = '<a href="{url}shortlog/{node|short}{sessionvars%urlparameter}">{label|escape}</a> '
6701
bf72e756c98b templates: fix navigation links for graph entries
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 6693
diff changeset
18 navgraphentry = '<a href="{url}graph/{node|short}{sessionvars%urlparameter}">{label|escape}</a> '
3422
0eba7e76cd02 Convert changenav bar from revisions to hashes (closes issue189)
Brendan Cully <brendan@kublai.com>
parents: 3407
diff changeset
19 filenaventry = '<a href="{url}log/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{label|escape}</a> '
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
20 filedifflink = '<a href="{url}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
21 filenodelink = '
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
22 <tr class="parity{parity}">
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
23 <td><a class="list" href="{url}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
24 <td></td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
25 <td class="link">
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
26 <a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">file</a> |
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
27 <a href="{url}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">annotate</a> |
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
28 <a href="{url}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">diff</a> |
17202
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
29 <a href="{url}comparison/{node|short}/{file|urlescape}{sessionvars%urlparameter}">comparison</a> |
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
30 <a href="{url}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
31 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
32 </tr>'
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
33 filenolink = '
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
34 <tr class="parity{parity}">
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
35 <td><a class="list" href="{url}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
36 <td></td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
37 <td class="link">
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
38 file |
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
39 annotate |
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
40 <a href="{url}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">diff</a> |
17202
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
41 <a href="{url}comparison/{node|short}/{file|urlescape}{sessionvars%urlparameter}">comparison</a> |
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
42 <a href="{url}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
43 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
44 </tr>'
10254
8d5de52431f2 hgweb: changenav: separate pages before and after the current position
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 9999
diff changeset
45
8d5de52431f2 hgweb: changenav: separate pages before and after the current position
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 9999
diff changeset
46 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
47 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
48 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
49 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
50
1901
c64bef3d7043 use safer string parser for template engine.
Vadim Gelfer <vadim.gelfer@gmail.com>
parents: 1668
diff changeset
51 fileellipses = '...'
3277
105253b30239 Moved hgweb map-* files into their style directories and adjusted them.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 3271
diff changeset
52 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
53 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
54 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
55 manifest = manifest.tmpl
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
56 direntry = '
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
57 <tr class="parity{parity}">
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
58 <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
59 <td style="font-family:monospace"></td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
60 <td style="font-family:monospace"></td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
61 <td>
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
62 <a href="{url}file/{node|short}{path|urlescape}{sessionvars%urlparameter}">{basename|escape}</a>
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
63 <a href="{url}file/{node|short}{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
64 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
65 <td class="link">
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
66 <a href="{url}file/{node|short}{path|urlescape}{sessionvars%urlparameter}">files</a>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
67 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
68 </tr>'
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
69 fileentry = '
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
70 <tr class="parity{parity}">
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
71 <td style="font-family:monospace">{permissions|permissions}</td>
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
72 <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
73 <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
74 <td class="list">
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
75 <a class="list" href="{url}file/{node|short}/{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
76 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
77 <td class="link">
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
78 <a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">file</a> |
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
79 <a href="{url}log/{node|short}/{file|urlescape}{sessionvars%urlparameter}">revisions</a> |
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
80 <a href="{url}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">annotate</a>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
81 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
82 </tr>'
3277
105253b30239 Moved hgweb map-* files into their style directories and adjusted them.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 3271
diff changeset
83 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
84 fileannotate = fileannotate.tmpl
3353
2edf53386d86 gitweb: add file diff view
Brendan Cully <brendan@kublai.com>
parents: 3305
diff changeset
85 filediff = filediff.tmpl
17202
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
86 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
87 filelog = filelog.tmpl
8487
338412820a57 gitweb, monoblue: break long line in map file
Martin Geisler <mg@lazybytes.net>
parents: 8427
diff changeset
88 fileline = '
338412820a57 gitweb, monoblue: break long line in map file
Martin Geisler <mg@lazybytes.net>
parents: 8427
diff changeset
89 <div style="font-family:monospace" class="parity{parity}">
9113
f439d82f018c gitweb, monoblue: fix double-spacing in file view (issue1733)
Martin Geisler <mg@lazybytes.net>
parents: 8713
diff changeset
90 <pre><a class="linenr" href="#{lineid}" id="{lineid}">{linenumber}</a> {line|escape}</pre>
8487
338412820a57 gitweb, monoblue: break long line in map file
Martin Geisler <mg@lazybytes.net>
parents: 8427
diff changeset
91 </div>'
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
92 annotateline = '
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
93 <tr style="font-family:monospace" class="parity{parity}">
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
94 <td class="linenr" style="text-align: right;">
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
95 <a href="{url}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#l{targetline}"
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
96 title="{node|short}: {desc|escape|firstline}">{author|user}@{rev}</a>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
97 </td>
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
98 <td><pre><a class="linenr" href="#{lineid}" id="{lineid}">{linenumber}</a></pre></td>
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
99 <td><pre>{line|escape}</pre></td>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
100 </tr>'
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
101 difflineplus = '<span style="color:#008800;"><a class="linenr" href="#{lineid}" id="{lineid}">{linenumber}</a> {line|escape}</span>'
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
102 difflineminus = '<span style="color:#cc0000;"><a class="linenr" href="#{lineid}" id="{lineid}">{linenumber}</a> {line|escape}</span>'
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
103 difflineat = '<span style="color:#990099;"><a class="linenr" href="#{lineid}" id="{lineid}">{linenumber}</a> {line|escape}</span>'
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
104 diffline = '<span><a class="linenr" href="#{lineid}" id="{lineid}">{linenumber}</a> {line|escape}</span>'
17202
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
105
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
106 comparison = '
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
107 <table style="border-collapse:collapse;">
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
108 <thead class="header">
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
109 <tr>
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
110 <th>{leftrev}:{leftnode|short}</th>
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
111 <th>{rightrev}:{rightnode|short}</th>
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
112 </tr>
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
113 </thead>
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
114 {blocks}
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
115 </table>'
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
116 comparisonblock ='
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
117 <tbody class="block">
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
118 {lines}
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
119 </tbody>'
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
120 comparisonline = '
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
121 <tr style="font-family:monospace">
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
122 <td class="{type}"><pre><a class="linenr" href="#{lineid}" id="{lineid}">{leftlinenumber}</a> {leftline|escape}</pre></td>
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
123 <td class="{type}"><pre><a class="linenr" href="#{lineid}" id="{lineid}">{rightlinenumber}</a> {rightline|escape}</pre></td>
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
124 </tr>'
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
125
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
126 changelogparent = '
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
127 <tr>
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
128 <th class="parent">parent {rev}:</th>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
129 <td class="parent">
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
130 <a href="{url}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
131 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
132 </tr>'
6250
bf0dd23f55fa gitweb: show branches in most of the templates
Florent Guillaume <fg@nuxeo.com>
parents: 6218
diff changeset
133 changesetbranch = '<tr><td>branch</td><td>{name}</td></tr>'
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
134 changesetparent = '
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
135 <tr>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
136 <td>parent {rev}</td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
137 <td style="font-family:monospace">
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
138 <a class="list" href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
139 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
140 </tr>'
6250
bf0dd23f55fa gitweb: show branches in most of the templates
Florent Guillaume <fg@nuxeo.com>
parents: 6218
diff changeset
141 filerevbranch = '<tr><td>branch</td><td>{name}</td></tr>'
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
142 filerevparent = '
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">
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
146 <a class="list" href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
147 {rename%filerename}{node|short}
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
148 </a>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
149 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
150 </tr>'
3393
22a106cb5650 hgweb: better file rename links
Brendan Cully <brendan@kublai.com>
parents: 3366
diff changeset
151 filerename = '{file|escape}@'
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
152 filelogrename = '| <a href="{url}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
153 fileannotateparent = '
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
154 <tr>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
155 <td>parent {rev}</td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
156 <td style="font-family:monospace">
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
157 <a class="list" href="{url}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
158 {rename%filerename}{node|short}
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
159 </a>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
160 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
161 </tr>'
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
162 changelogchild = '
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
163 <tr>
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
164 <th class="child">child {rev}:</th>
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
165 <td class="child"><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
166 </tr>'
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
167 changesetchild = '
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>child {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">
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
171 <a class="list" href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
172 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
173 </tr>'
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
174 filerevchild = '
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
175 <tr>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
176 <td>child {rev}</td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
177 <td style="font-family:monospace">
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
178 <a class="list" href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td>
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 fileannotatechild = '
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
181 <tr>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
182 <td>child {rev}</td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
183 <td style="font-family:monospace">
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
184 <a class="list" href="{url}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
185 </tr>'
3277
105253b30239 Moved hgweb map-* files into their style directories and adjusted them.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 3271
diff changeset
186 tags = tags.tmpl
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
187 tagentry = '
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
188 <tr class="parity{parity}">
15375
fe9d36a6853e hgweb: fix dynamic date calculation not working under Safari
Brodie Rao <brodie@bitheap.org>
parents: 14046
diff changeset
189 <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
190 <td><a class="list" href="{url}rev/{node|short}{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
191 <td class="link">
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
192 <a href="{url}rev/{node|short}{sessionvars%urlparameter}">changeset</a> |
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
193 <a href="{url}log/{node|short}{sessionvars%urlparameter}">changelog</a> |
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
194 <a href="{url}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
195 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
196 </tr>'
13864
fd8a6ca3a750 hgweb: add separate bookmarks listing to gitweb theme (based on 38c9837b1f75)
Yuya Nishihara <yuya@tcha.org>
parents: 13863
diff changeset
197 bookmarks = bookmarks.tmpl
fd8a6ca3a750 hgweb: add separate bookmarks listing to gitweb theme (based on 38c9837b1f75)
Yuya Nishihara <yuya@tcha.org>
parents: 13863
diff changeset
198 bookmarkentry = '
fd8a6ca3a750 hgweb: add separate bookmarks listing to gitweb theme (based on 38c9837b1f75)
Yuya Nishihara <yuya@tcha.org>
parents: 13863
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>
13864
fd8a6ca3a750 hgweb: add separate bookmarks listing to gitweb theme (based on 38c9837b1f75)
Yuya Nishihara <yuya@tcha.org>
parents: 13863
diff changeset
201 <td><a class="list" href="{url}rev/{node|short}{sessionvars%urlparameter}"><b>{bookmark|escape}</b></a></td>
fd8a6ca3a750 hgweb: add separate bookmarks listing to gitweb theme (based on 38c9837b1f75)
Yuya Nishihara <yuya@tcha.org>
parents: 13863
diff changeset
202 <td class="link">
fd8a6ca3a750 hgweb: add separate bookmarks listing to gitweb theme (based on 38c9837b1f75)
Yuya Nishihara <yuya@tcha.org>
parents: 13863
diff changeset
203 <a href="{url}rev/{node|short}{sessionvars%urlparameter}">changeset</a> |
fd8a6ca3a750 hgweb: add separate bookmarks listing to gitweb theme (based on 38c9837b1f75)
Yuya Nishihara <yuya@tcha.org>
parents: 13863
diff changeset
204 <a href="{url}log/{node|short}{sessionvars%urlparameter}">changelog</a> |
fd8a6ca3a750 hgweb: add separate bookmarks listing to gitweb theme (based on 38c9837b1f75)
Yuya Nishihara <yuya@tcha.org>
parents: 13863
diff changeset
205 <a href="{url}file/{node|short}{sessionvars%urlparameter}">files</a>
fd8a6ca3a750 hgweb: add separate bookmarks listing to gitweb theme (based on 38c9837b1f75)
Yuya Nishihara <yuya@tcha.org>
parents: 13863
diff changeset
206 </td>
fd8a6ca3a750 hgweb: add separate bookmarks listing to gitweb theme (based on 38c9837b1f75)
Yuya Nishihara <yuya@tcha.org>
parents: 13863
diff changeset
207 </tr>'
8356
439663cd043a gitweb: add branches page
Sune Foldager <cryo@cyanite.org>
parents: 8235
diff changeset
208 branches = branches.tmpl
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
209 branchentry = '
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
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>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
212 <td><a class="list" href="{url}shortlog/{node|short}{sessionvars%urlparameter}"><b>{node|short}</b></a></td>
8713
de6bb29e208a hgweb: allow distinction between open/closed branches on branches page
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8487
diff changeset
213 <td class="{status}">{branch|escape}</td>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
214 <td class="link">
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
215 <a href="{url}changeset/{node|short}{sessionvars%urlparameter}">changeset</a> |
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
216 <a href="{url}log/{node|short}{sessionvars%urlparameter}">changelog</a> |
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
217 <a href="{url}file/{node|short}{sessionvars%urlparameter}">files</a>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
218 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
219 </tr>'
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
220 diffblock = '<pre>{lines}</pre>'
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
221 filediffparent = '
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
222 <tr>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
223 <td>parent {rev}</td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
224 <td style="font-family:monospace">
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
225 <a class="list" href="{url}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
226 {node|short}
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
227 </a>
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>'
17202
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
230 filecompparent = '
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
231 <tr>
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
232 <td>parent {rev}</td>
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
233 <td style="font-family:monospace">
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
234 <a class="list" href="{url}comparison/{node|short}/{file|urlescape}{sessionvars%urlparameter}">
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
235 {node|short}
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
236 </a>
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
237 </td>
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
238 </tr>'
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
239 filelogparent = '
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
240 <tr>
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
241 <td align="right">parent {rev}:&nbsp;</td>
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
242 <td><a href="{url}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
243 </tr>'
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
244 filediffchild = '
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
245 <tr>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
246 <td>child {rev}</td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
247 <td style="font-family:monospace">
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
248 <a class="list" href="{url}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
249 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
250 </tr>'
17202
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
251 filecompchild = '
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
252 <tr>
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
253 <td>child {rev}</td>
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
254 <td style="font-family:monospace">
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
255 <a class="list" href="{url}comparison/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</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 filelogchild = '
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
259 <tr>
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
260 <td align="right">child {rev}:&nbsp;</td>
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
261 <td><a href="{url}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
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
4538
4272ae760bb1 gitweb: Display branch and tag labels
Josef "Jeff" Sipek <jeffpc@josefsipek.net>
parents: 4500
diff changeset
265 tagtag = '<span class="tagtag" title="{name}">{name}</span> '
4272ae760bb1 gitweb: Display branch and tag labels
Josef "Jeff" Sipek <jeffpc@josefsipek.net>
parents: 4500
diff changeset
266 branchtag = '<span class="branchtag" title="{name}">{name}</span> '
6250
bf0dd23f55fa gitweb: show branches in most of the templates
Florent Guillaume <fg@nuxeo.com>
parents: 6218
diff changeset
267 inbranchtag = '<span class="inbranchtag" title="{name}">{name}</span> '
13863
b602ac02f1ba hgweb: add bookmark labels to gitweb theme (based on 270f57d35525)
Yuya Nishihara <yuya@tcha.org>
parents: 12666
diff changeset
268 bookmarktag = '<span class="bookmarktag" title="{name}">{name}</span> '
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
269 shortlogentry = '
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
270 <tr class="parity{parity}">
15375
fe9d36a6853e hgweb: fix dynamic date calculation not working under Safari
Brodie Rao <brodie@bitheap.org>
parents: 14046
diff changeset
271 <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
272 <td><i>{author|person}</i></td>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
273 <td>
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
274 <a class="list" href="{url}rev/{node|short}{sessionvars%urlparameter}">
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
275 <b>{desc|strip|firstline|escape|nonempty}</b>
13863
b602ac02f1ba hgweb: add bookmark labels to gitweb theme (based on 270f57d35525)
Yuya Nishihara <yuya@tcha.org>
parents: 12666
diff changeset
276 <span class="logtags">{inbranch%inbranchtag}{branches%branchtag}{tags%tagtag}{bookmarks%bookmarktag}</span>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
277 </a>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
278 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
279 <td class="link" nowrap>
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
280 <a href="{url}rev/{node|short}{sessionvars%urlparameter}">changeset</a> |
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
281 <a href="{url}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
282 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
283 </tr>'
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
284 filelogentry = '
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
285 <tr class="parity{parity}">
15375
fe9d36a6853e hgweb: fix dynamic date calculation not working under Safari
Brodie Rao <brodie@bitheap.org>
parents: 14046
diff changeset
286 <td class="age"><i class="age">{date|rfc822date}</i></td>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
287 <td>
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
288 <a class="list" href="{url}rev/{node|short}{sessionvars%urlparameter}">
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
289 <b>{desc|strip|firstline|escape|nonempty}</b>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
290 </a>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
291 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
292 <td class="link">
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
293 <a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">file</a>&nbsp;|&nbsp;<a href="{url}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">diff</a>&nbsp;|&nbsp;<a href="{url}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">annotate</a> {rename%filelogrename}</td>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
294 </tr>'
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
295 archiveentry = ' | <a href="{url}archive/{node|short}{extension}">{type|escape}</a> '
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
296 indexentry = '
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
297 <tr class="parity{parity}">
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 <a class="list" href="{url}{sessionvars%urlparameter}">
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
300 <b>{name|escape}</b>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
301 </a>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
302 </td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
303 <td>{description}</td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
304 <td>{contact|obfuscate}</td>
15375
fe9d36a6853e hgweb: fix dynamic date calculation not working under Safari
Brodie Rao <brodie@bitheap.org>
parents: 14046
diff changeset
305 <td class="age">{lastchange|rfc822date}</td>
8374
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
306 <td class="indexlinks">{archives%indexarchiveentry}</td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
307 <td><div class="rss_logo"><a href="{url}rss-log">RSS</a> <a href="{url}atom-log">Atom</a></div></td>
a3c8b41fcc9d gitweb: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8356
diff changeset
308 </tr>\n'
6218
345a23eca8f6 gitweb: remove some line breaks in archive and rss columns.
Brendan Cully <brendan@kublai.com>
parents: 6177
diff changeset
309 indexarchiveentry = ' <a href="{url}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
310 index = index.tmpl
8427
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
311 urlparameter = '{separator}{name}={value|urlescape}'
cebdfdcc3e42 git: use newer template syntax everywhere
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8374
diff changeset
312 hiddenformentry = '<input type="hidden" name="{name}" value="{value|escape}" />'