author | Anton Shestakov <av6@dwimlabs.net> |
Mon, 04 Dec 2017 16:21:15 +0800 | |
changeset 35219 | 5857eb81c1f3 |
parent 35131 | f38c91c74294 |
child 35485 | 1721ce06100a |
permissions | -rw-r--r-- |
6661
d1a312daa574
hgweb: add paper style derived from coal
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
1 |
default = 'shortlog' |
d1a312daa574
hgweb: add paper style derived from coal
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
2 |
|
d1a312daa574
hgweb: add paper style derived from coal
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
3 |
mimetype = 'text/html; charset={encoding}' |
d1a312daa574
hgweb: add paper style derived from coal
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
4 |
header = header.tmpl |
7411
b71ee3e00e81
coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
7407
diff
changeset
|
5 |
footer = footer.tmpl |
b71ee3e00e81
coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
7407
diff
changeset
|
6 |
search = search.tmpl |
6661
d1a312daa574
hgweb: add paper style derived from coal
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
7 |
|
7411
b71ee3e00e81
coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
7407
diff
changeset
|
8 |
changelog = shortlog.tmpl |
b71ee3e00e81
coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
7407
diff
changeset
|
9 |
shortlog = shortlog.tmpl |
b71ee3e00e81
coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
7407
diff
changeset
|
10 |
shortlogentry = shortlogentry.tmpl |
b71ee3e00e81
coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
7407
diff
changeset
|
11 |
graph = graph.tmpl |
35219
5857eb81c1f3
paper: render changesets server-side on /graph page
Anton Shestakov <av6@dwimlabs.net>
parents:
35131
diff
changeset
|
12 |
graphentry = graphentry.tmpl |
12666
ead4e21f49f1
web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents:
10575
diff
changeset
|
13 |
help = help.tmpl |
ead4e21f49f1
web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents:
10575
diff
changeset
|
14 |
helptopics = helptopics.tmpl |
ead4e21f49f1
web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents:
10575
diff
changeset
|
15 |
|
18745
3c7c25fa58e0
hgweb help: split up long lines (in generated output)
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
18526
diff
changeset
|
16 |
helpentry = ' |
3c7c25fa58e0
hgweb help: split up long lines (in generated output)
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
18526
diff
changeset
|
17 |
<tr><td> |
3c7c25fa58e0
hgweb help: split up long lines (in generated output)
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
18526
diff
changeset
|
18 |
<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:
25779
diff
changeset
|
19 |
{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
|
20 |
</a> |
3c7c25fa58e0
hgweb help: split up long lines (in generated output)
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
18526
diff
changeset
|
21 |
</td><td> |
3c7c25fa58e0
hgweb help: split up long lines (in generated output)
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
18526
diff
changeset
|
22 |
{summary|escape} |
3c7c25fa58e0
hgweb help: split up long lines (in generated output)
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents:
18526
diff
changeset
|
23 |
</td></tr>' |
6661
d1a312daa574
hgweb: add paper style derived from coal
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
24 |
|
18526
9409aeaafdc1
hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents:
18523
diff
changeset
|
25 |
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:
18523
diff
changeset
|
26 |
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:
18523
diff
changeset
|
27 |
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:
18523
diff
changeset
|
28 |
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:
18523
diff
changeset
|
29 |
filedifflink = '<a href="{url|urlescape}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{file|escape}</a> ' |
9409aeaafdc1
hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents:
18523
diff
changeset
|
30 |
filenodelink = '<a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{file|escape}</a> ' |
7182
295af5bc1bcc
hgweb: remove links to non-existent file versions
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
6905
diff
changeset
|
31 |
filenolink = '{file|escape} ' |
6661
d1a312daa574
hgweb: add paper style derived from coal
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
32 |
fileellipses = '...' |
14563
81fc9678b018
paper, coal: define the diffstat templates
Steven Brown <StevenGBrown@gmail.com>
parents:
14046
diff
changeset
|
33 |
diffstatlink = diffstat.tmpl |
81fc9678b018
paper, coal: define the diffstat templates
Steven Brown <StevenGBrown@gmail.com>
parents:
14046
diff
changeset
|
34 |
diffstatnolink = diffstat.tmpl |
7411
b71ee3e00e81
coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
7407
diff
changeset
|
35 |
changelogentry = shortlogentry.tmpl |
b71ee3e00e81
coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
7407
diff
changeset
|
36 |
searchentry = shortlogentry.tmpl |
b71ee3e00e81
coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
7407
diff
changeset
|
37 |
changeset = changeset.tmpl |
b71ee3e00e81
coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
7407
diff
changeset
|
38 |
manifest = manifest.tmpl |
6661
d1a312daa574
hgweb: add paper style derived from coal
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
39 |
|
10254
8d5de52431f2
hgweb: changenav: separate pages before and after the current position
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents:
9999
diff
changeset
|
40 |
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
|
41 |
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
|
42 |
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
|
43 |
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
|
44 |
|
8372
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
45 |
direntry = ' |
19447
182942b38d24
hgweb: make stripes in directory view with CSS
Alexander Plavin <me@aplavin.ru>
parents:
19446
diff
changeset
|
46 |
<tr class="fileline"> |
8372
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
47 |
<td class="name"> |
25606
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
23740
diff
changeset
|
48 |
<a href="{url|urlescape}file/{symrev}{path|urlescape}{sessionvars%urlparameter}"> |
18526
9409aeaafdc1
hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents:
18523
diff
changeset
|
49 |
<img src="{staticurl|urlescape}coal-folder.png" alt="dir."/> {basename|escape}/ |
8372
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
50 |
</a> |
25606
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
23740
diff
changeset
|
51 |
<a href="{url|urlescape}file/{symrev}{path|urlescape}/{emptydirs|urlescape}{sessionvars%urlparameter}"> |
8372
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
52 |
{emptydirs|escape} |
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
53 |
</a> |
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
54 |
</td> |
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
55 |
<td class="size"></td> |
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
56 |
<td class="permissions">drwxr-xr-x</td> |
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
57 |
</tr>' |
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
58 |
|
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
59 |
fileentry = ' |
19447
182942b38d24
hgweb: make stripes in directory view with CSS
Alexander Plavin <me@aplavin.ru>
parents:
19446
diff
changeset
|
60 |
<tr class="fileline"> |
8372
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
61 |
<td class="filename"> |
25606
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
23740
diff
changeset
|
62 |
<a href="{url|urlescape}file/{symrev}/{file|urlescape}{sessionvars%urlparameter}"> |
18526
9409aeaafdc1
hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents:
18523
diff
changeset
|
63 |
<img src="{staticurl|urlescape}coal-file.png" alt="file"/> {basename|escape} |
8372
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
64 |
</a> |
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
65 |
</td> |
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
66 |
<td class="size">{size}</td> |
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
67 |
<td class="permissions">{permissions|permissions}</td> |
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
68 |
</tr>' |
6661
d1a312daa574
hgweb: add paper style derived from coal
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
69 |
|
7411
b71ee3e00e81
coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
7407
diff
changeset
|
70 |
filerevision = filerevision.tmpl |
b71ee3e00e81
coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
7407
diff
changeset
|
71 |
fileannotate = fileannotate.tmpl |
b71ee3e00e81
coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
7407
diff
changeset
|
72 |
filediff = filediff.tmpl |
17202
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
16577
diff
changeset
|
73 |
filecomparison = filecomparison.tmpl |
7411
b71ee3e00e81
coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
7407
diff
changeset
|
74 |
filelog = filelog.tmpl |
8486
835b1ee111f4
coal, paper: add newlines when displaying a file in hgweb
Martin Geisler <mg@lazybytes.net>
parents:
8372
diff
changeset
|
75 |
fileline = ' |
19387
f2e4fdb3dd27
hgweb: code selection without line numbers in file source view
Alexander Plavin <me@aplavin.ru>
parents:
18772
diff
changeset
|
76 |
<span id="{lineid}">{strip(line|escape, '\r\n')}</span><a href="#{lineid}"></a>' |
7411
b71ee3e00e81
coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
7407
diff
changeset
|
77 |
filelogentry = filelogentry.tmpl |
6661
d1a312daa574
hgweb: add paper style derived from coal
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
78 |
|
8372
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
79 |
annotateline = ' |
29387
6b77adc2c7b5
hgweb: highlight data of the current revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
27579
diff
changeset
|
80 |
<tr id="{lineid}"{ifeq(node, originalnode, ' class="thisrev"')}> |
29572
d86b54d9bb0c
paper: make different blocks of annotated lines have different colors
Anton Shestakov <av6@dwimlabs.net>
parents:
29525
diff
changeset
|
81 |
<td class="annotate parity{blockparity}"> |
29388
f694e20193f2
hgweb: display blamed revision once per block in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29387
diff
changeset
|
82 |
{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
|
83 |
'<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
|
84 |
{rev} |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
85 |
</a>')} |
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
86 |
<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
|
87 |
<div> |
d8f2c718deec
hgweb: add a link on node id in annotate hover-box
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29524
diff
changeset
|
88 |
<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
|
89 |
{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
|
90 |
{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
|
91 |
</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
|
92 |
<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
|
93 |
<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
|
94 |
<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
|
95 |
<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
|
96 |
</div> |
8372
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
97 |
</td> |
33390
32331f54930c
hgweb: re-implement followlines UI selection using buttons
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
32758
diff
changeset
|
98 |
<td class="source followlines-btn-parent"><a href="#{lineid}">{linenumber}</a> {line|escape}</td> |
8372
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
99 |
</tr>' |
29522
9c37df347485
hgweb: add link to parents of annotated revision in annotate view
Denis Laxalde <denis.laxalde@logilab.fr>
parents:
29388
diff
changeset
|
100 |
annotateparent = ' |
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}">{rev}</a>' |
19432
e92d4b8530cb
hgweb: file diff and changesets views behave like file source view
Alexander Plavin <me@aplavin.ru>
parents:
19387
diff
changeset
|
102 |
diffblock = '<div class="bottomline inc-lineno"><pre class="sourcelines wrap">{lines}</pre></div>' |
e92d4b8530cb
hgweb: file diff and changesets views behave like file source view
Alexander Plavin <me@aplavin.ru>
parents:
19387
diff
changeset
|
103 |
difflineplus = ' |
e92d4b8530cb
hgweb: file diff and changesets views behave like file source view
Alexander Plavin <me@aplavin.ru>
parents:
19387
diff
changeset
|
104 |
<span id="{lineid}" class="plusline">{strip(line|escape, '\r\n')}</span><a href="#{lineid}"></a>' |
e92d4b8530cb
hgweb: file diff and changesets views behave like file source view
Alexander Plavin <me@aplavin.ru>
parents:
19387
diff
changeset
|
105 |
difflineminus = ' |
e92d4b8530cb
hgweb: file diff and changesets views behave like file source view
Alexander Plavin <me@aplavin.ru>
parents:
19387
diff
changeset
|
106 |
<span id="{lineid}" class="minusline">{strip(line|escape, '\r\n')}</span><a href="#{lineid}"></a>' |
e92d4b8530cb
hgweb: file diff and changesets views behave like file source view
Alexander Plavin <me@aplavin.ru>
parents:
19387
diff
changeset
|
107 |
difflineat = ' |
e92d4b8530cb
hgweb: file diff and changesets views behave like file source view
Alexander Plavin <me@aplavin.ru>
parents:
19387
diff
changeset
|
108 |
<span id="{lineid}" class="atline">{strip(line|escape, '\r\n')}</span><a href="#{lineid}"></a>' |
e92d4b8530cb
hgweb: file diff and changesets views behave like file source view
Alexander Plavin <me@aplavin.ru>
parents:
19387
diff
changeset
|
109 |
diffline = ' |
e92d4b8530cb
hgweb: file diff and changesets views behave like file source view
Alexander Plavin <me@aplavin.ru>
parents:
19387
diff
changeset
|
110 |
<span id="{lineid}">{strip(line|escape, '\r\n')}</span><a href="#{lineid}"></a>' |
6661
d1a312daa574
hgweb: add paper style derived from coal
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
111 |
|
17202
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
16577
diff
changeset
|
112 |
comparisonblock =' |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
16577
diff
changeset
|
113 |
<tbody class="block"> |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
16577
diff
changeset
|
114 |
{lines} |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
16577
diff
changeset
|
115 |
</tbody>' |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
16577
diff
changeset
|
116 |
comparisonline = ' |
19459
fbfe5748ef3e
hgweb: highlight line which is linked to at comparison view
Alexander Plavin <me@aplavin.ru>
parents:
19451
diff
changeset
|
117 |
<tr id="{lineid}"> |
fbfe5748ef3e
hgweb: highlight line which is linked to at comparison view
Alexander Plavin <me@aplavin.ru>
parents:
19451
diff
changeset
|
118 |
<td class="source {type}"><a href="#{lineid}">{leftlinenumber}</a> {leftline|escape}</td> |
fbfe5748ef3e
hgweb: highlight line which is linked to at comparison view
Alexander Plavin <me@aplavin.ru>
parents:
19451
diff
changeset
|
119 |
<td class="source {type}"><a href="#{lineid}">{rightlinenumber}</a> {rightline|escape}</td> |
17202
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
16577
diff
changeset
|
120 |
</tr>' |
1ae119269ddc
hgweb: side-by-side comparison functionality
wujek srujek
parents:
16577
diff
changeset
|
121 |
|
18526
9409aeaafdc1
hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents:
18523
diff
changeset
|
122 |
changesetparent = '<a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a> ' |
6661
d1a312daa574
hgweb: add paper style derived from coal
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
123 |
|
23740
9e1f4c65f5f5
hgweb: allow viewing diffs against p1 or p2 for merge commits (issue3904)
Anton Shestakov <engored@ya.ru>
parents:
19796
diff
changeset
|
124 |
changesetparentdiff = ' |
9e1f4c65f5f5
hgweb: allow viewing diffs against p1 or p2 for merge commits (issue3904)
Anton Shestakov <engored@ya.ru>
parents:
19796
diff
changeset
|
125 |
{changesetparent} |
9e1f4c65f5f5
hgweb: allow viewing diffs against p1 or p2 for merge commits (issue3904)
Anton Shestakov <engored@ya.ru>
parents:
19796
diff
changeset
|
126 |
{ifeq(node, basenode, '(current diff)', '({difffrom})')}' |
9e1f4c65f5f5
hgweb: allow viewing diffs against p1 or p2 for merge commits (issue3904)
Anton Shestakov <engored@ya.ru>
parents:
19796
diff
changeset
|
127 |
|
9e1f4c65f5f5
hgweb: allow viewing diffs against p1 or p2 for merge commits (issue3904)
Anton Shestakov <engored@ya.ru>
parents:
19796
diff
changeset
|
128 |
difffrom = '<a href="{url|urlescape}rev/{node|short}:{originalnode|short}{sessionvars%urlparameter}">diff</a>' |
17991
d605a82cf189
hgweb: display diff for a changeset against any parents (issue2810)
Weiwen <weiwen@fb.com>
parents:
17302
diff
changeset
|
129 |
|
18526
9409aeaafdc1
hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents:
18523
diff
changeset
|
130 |
filerevparent = '<a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{rename%filerename}{node|short}</a> ' |
9409aeaafdc1
hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents:
18523
diff
changeset
|
131 |
filerevchild = '<a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a> ' |
6661
d1a312daa574
hgweb: add paper style derived from coal
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
132 |
|
d1a312daa574
hgweb: add paper style derived from coal
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
133 |
filerename = '{file|escape}@' |
8372
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
134 |
filelogrename = ' |
13850
1209e1d52b68
hgweb: add base link to file log for paper and coal styles (issue2452)
Kevin Gessner <kevin@fogcreek.com>
parents:
13597
diff
changeset
|
135 |
<span class="base"> |
1209e1d52b68
hgweb: add base link to file log for paper and coal styles (issue2452)
Kevin Gessner <kevin@fogcreek.com>
parents:
13597
diff
changeset
|
136 |
base |
18526
9409aeaafdc1
hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents:
18523
diff
changeset
|
137 |
<a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}"> |
13850
1209e1d52b68
hgweb: add base link to file log for paper and coal styles (issue2452)
Kevin Gessner <kevin@fogcreek.com>
parents:
13597
diff
changeset
|
138 |
{file|escape}@{node|short} |
1209e1d52b68
hgweb: add base link to file log for paper and coal styles (issue2452)
Kevin Gessner <kevin@fogcreek.com>
parents:
13597
diff
changeset
|
139 |
</a> |
1209e1d52b68
hgweb: add base link to file log for paper and coal styles (issue2452)
Kevin Gessner <kevin@fogcreek.com>
parents:
13597
diff
changeset
|
140 |
</span>' |
8372
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
141 |
fileannotateparent = ' |
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
142 |
<tr> |
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
143 |
<td class="metatag">parent:</td> |
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
144 |
<td> |
18526
9409aeaafdc1
hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents:
18523
diff
changeset
|
145 |
<a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}"> |
8372
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
146 |
{rename%filerename}{node|short} |
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
147 |
</a> |
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
148 |
</td> |
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
149 |
</tr>' |
18526
9409aeaafdc1
hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents:
18523
diff
changeset
|
150 |
changesetchild = ' <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a>' |
8372
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
151 |
fileannotatechild = ' |
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
152 |
<tr> |
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
153 |
<td class="metatag">child:</td> |
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
154 |
<td> |
18526
9409aeaafdc1
hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents:
18523
diff
changeset
|
155 |
<a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}"> |
8372
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
156 |
{node|short} |
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
157 |
</a> |
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
158 |
</td> |
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
159 |
</tr>' |
7411
b71ee3e00e81
coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
7407
diff
changeset
|
160 |
tags = tags.tmpl |
8372
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
161 |
tagentry = ' |
19448
fa0e1ca9fbc0
hgweb: make stripes in tag list with CSS
Alexander Plavin <me@aplavin.ru>
parents:
19447
diff
changeset
|
162 |
<tr class="tagEntry"> |
8372
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
163 |
<td> |
25779
cd842821db2c
hgweb: provide links to branches, tags and bookmarks by name (paper and coal)
Anton Shestakov <av6@dwimlabs.net>
parents:
25606
diff
changeset
|
164 |
<a href="{url|urlescape}rev/{tag|revescape}{sessionvars%urlparameter}"> |
8372
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
165 |
{tag|escape} |
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
166 |
</a> |
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
167 |
</td> |
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
168 |
<td class="node"> |
25779
cd842821db2c
hgweb: provide links to branches, tags and bookmarks by name (paper and coal)
Anton Shestakov <av6@dwimlabs.net>
parents:
25606
diff
changeset
|
169 |
<a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}"> |
cd842821db2c
hgweb: provide links to branches, tags and bookmarks by name (paper and coal)
Anton Shestakov <av6@dwimlabs.net>
parents:
25606
diff
changeset
|
170 |
{node|short} |
cd842821db2c
hgweb: provide links to branches, tags and bookmarks by name (paper and coal)
Anton Shestakov <av6@dwimlabs.net>
parents:
25606
diff
changeset
|
171 |
</a> |
8372
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
172 |
</td> |
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
173 |
</tr>' |
13597
38c9837b1f75
hgweb: add separate page with bookmarks listing
Alexander Solovyov <alexander@solovyov.net>
parents:
13596
diff
changeset
|
174 |
bookmarks = bookmarks.tmpl |
38c9837b1f75
hgweb: add separate page with bookmarks listing
Alexander Solovyov <alexander@solovyov.net>
parents:
13596
diff
changeset
|
175 |
bookmarkentry = ' |
19446
25dae11bb044
hgweb: make stripes in bookmark list with CSS
Alexander Plavin <me@aplavin.ru>
parents:
19432
diff
changeset
|
176 |
<tr class="tagEntry"> |
13597
38c9837b1f75
hgweb: add separate page with bookmarks listing
Alexander Solovyov <alexander@solovyov.net>
parents:
13596
diff
changeset
|
177 |
<td> |
25779
cd842821db2c
hgweb: provide links to branches, tags and bookmarks by name (paper and coal)
Anton Shestakov <av6@dwimlabs.net>
parents:
25606
diff
changeset
|
178 |
<a href="{url|urlescape}rev/{bookmark|revescape}{sessionvars%urlparameter}"> |
13597
38c9837b1f75
hgweb: add separate page with bookmarks listing
Alexander Solovyov <alexander@solovyov.net>
parents:
13596
diff
changeset
|
179 |
{bookmark|escape} |
38c9837b1f75
hgweb: add separate page with bookmarks listing
Alexander Solovyov <alexander@solovyov.net>
parents:
13596
diff
changeset
|
180 |
</a> |
38c9837b1f75
hgweb: add separate page with bookmarks listing
Alexander Solovyov <alexander@solovyov.net>
parents:
13596
diff
changeset
|
181 |
</td> |
38c9837b1f75
hgweb: add separate page with bookmarks listing
Alexander Solovyov <alexander@solovyov.net>
parents:
13596
diff
changeset
|
182 |
<td class="node"> |
25779
cd842821db2c
hgweb: provide links to branches, tags and bookmarks by name (paper and coal)
Anton Shestakov <av6@dwimlabs.net>
parents:
25606
diff
changeset
|
183 |
<a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}"> |
cd842821db2c
hgweb: provide links to branches, tags and bookmarks by name (paper and coal)
Anton Shestakov <av6@dwimlabs.net>
parents:
25606
diff
changeset
|
184 |
{node|short} |
cd842821db2c
hgweb: provide links to branches, tags and bookmarks by name (paper and coal)
Anton Shestakov <av6@dwimlabs.net>
parents:
25606
diff
changeset
|
185 |
</a> |
13597
38c9837b1f75
hgweb: add separate page with bookmarks listing
Alexander Solovyov <alexander@solovyov.net>
parents:
13596
diff
changeset
|
186 |
</td> |
38c9837b1f75
hgweb: add separate page with bookmarks listing
Alexander Solovyov <alexander@solovyov.net>
parents:
13596
diff
changeset
|
187 |
</tr>' |
8353
6058d291abdf
paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents:
8240
diff
changeset
|
188 |
branches = branches.tmpl |
8372
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
189 |
branchentry = ' |
19451
aad410749ff3
hgweb: make stripes in branch list with CSS
Alexander Plavin <me@aplavin.ru>
parents:
19450
diff
changeset
|
190 |
<tr class="tagEntry"> |
8372
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
191 |
<td> |
25779
cd842821db2c
hgweb: provide links to branches, tags and bookmarks by name (paper and coal)
Anton Shestakov <av6@dwimlabs.net>
parents:
25606
diff
changeset
|
192 |
<a href="{url|urlescape}shortlog/{branch|revescape}{sessionvars%urlparameter}" class="{status}"> |
8372
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
193 |
{branch|escape} |
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
194 |
</a> |
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
195 |
</td> |
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
196 |
<td class="node"> |
25779
cd842821db2c
hgweb: provide links to branches, tags and bookmarks by name (paper and coal)
Anton Shestakov <av6@dwimlabs.net>
parents:
25606
diff
changeset
|
197 |
<a href="{url|urlescape}shortlog/{node|short}{sessionvars%urlparameter}" class="{status}"> |
cd842821db2c
hgweb: provide links to branches, tags and bookmarks by name (paper and coal)
Anton Shestakov <av6@dwimlabs.net>
parents:
25606
diff
changeset
|
198 |
{node|short} |
cd842821db2c
hgweb: provide links to branches, tags and bookmarks by name (paper and coal)
Anton Shestakov <av6@dwimlabs.net>
parents:
25606
diff
changeset
|
199 |
</a> |
8372
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
200 |
</td> |
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
201 |
</tr>' |
35065
a1de4ffaa7a8
hgweb: show commit phase if it's not public
Anton Shestakov <av6@dwimlabs.net>
parents:
35064
diff
changeset
|
202 |
phasetag = '{ifeq(phase, 'public', '', '<span class="phase">{phase|escape}</span> ')}' |
35089
69ea10d5b00c
hgweb: show obsolescence status of a commit
Anton Shestakov <av6@dwimlabs.net>
parents:
35065
diff
changeset
|
203 |
obsoletetag = '{if(obsolete, '<span class="obsolete">obsolete</span> ')}' |
35131
f38c91c74294
hgweb: rename the main attribute of instabilities
Anton Shestakov <av6@dwimlabs.net>
parents:
35094
diff
changeset
|
204 |
instabilitytag = '<span class="instability">{instability|escape}</span> ' |
6661
d1a312daa574
hgweb: add paper style derived from coal
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
205 |
changelogtag = '<span class="tag">{name|escape}</span> ' |
d1a312daa574
hgweb: add paper style derived from coal
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
206 |
changesettag = '<span class="tag">{tag|escape}</span> ' |
13596
270f57d35525
hgweb: add display of bookmarks for changelog and changeset
Alexander Solovyov <alexander@solovyov.net>
parents:
12666
diff
changeset
|
207 |
changesetbookmark = '<span class="tag">{bookmark|escape}</span> ' |
7407
7b2a77b20964
coal/paper: display branch names in log
Benoit Allard <benoit@aeteurope.nl>
parents:
7394
diff
changeset
|
208 |
changelogbranchhead = '<span class="branchhead">{name|escape}</span> ' |
10575
136eed1ac69c
trailing spaces (and one stray tab)
Thomas Arendsen Hein <thomas@intevation.de>
parents:
10254
diff
changeset
|
209 |
changelogbranchname = '<span class="branchname">{name|escape}</span> ' |
35094
38fe3fe4bbb6
hgweb: show instabilities of a commit
Anton Shestakov <av6@dwimlabs.net>
parents:
35089
diff
changeset
|
210 |
alltags = '{phasetag}{obsoletetag}{instabilities%instabilitytag}{inbranch%changelogbranchname}{branches%changelogbranchhead}{tags%changelogtag}{bookmarks%changelogtag}' |
8372
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
211 |
|
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
212 |
filediffparent = ' |
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
213 |
<tr> |
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
214 |
<th class="parent">parent {rev}:</th> |
18526
9409aeaafdc1
hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents:
18523
diff
changeset
|
215 |
<td class="parent"><a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td> |
8372
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
216 |
</tr>' |
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
217 |
filediffchild = ' |
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
218 |
<tr> |
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
219 |
<th class="child">child {rev}:</th> |
18526
9409aeaafdc1
hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents:
18523
diff
changeset
|
220 |
<td class="child"><a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a> |
8372
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
221 |
</td> |
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
222 |
</tr>' |
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
223 |
|
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
224 |
indexentry = ' |
19450
ddae9e9b7ca1
hgweb: make stripes in repo list with CSS
Alexander Plavin <me@aplavin.ru>
parents:
19449
diff
changeset
|
225 |
<tr> |
18526
9409aeaafdc1
hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents:
18523
diff
changeset
|
226 |
<td><a href="{url|urlescape}{sessionvars%urlparameter}">{name|escape}</a></td> |
8372
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
227 |
<td>{description}</td> |
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
228 |
<td>{contact|obfuscate}</td> |
15375
fe9d36a6853e
hgweb: fix dynamic date calculation not working under Safari
Brodie Rao <brodie@bitheap.org>
parents:
14563
diff
changeset
|
229 |
<td class="age">{lastchange|rfc822date}</td> |
8372
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
230 |
<td class="indexlinks">{archives%indexarchiveentry}</td> |
18201
2efc6536ea43
hgweb, paper: add (Atom) subscribe links to the repository index
Angel Ezquerra <angel.ezquerra@gmail.com>
parents:
17991
diff
changeset
|
231 |
<td> |
2efc6536ea43
hgweb, paper: add (Atom) subscribe links to the repository index
Angel Ezquerra <angel.ezquerra@gmail.com>
parents:
17991
diff
changeset
|
232 |
{if(isdirectory, '', |
18526
9409aeaafdc1
hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents:
18523
diff
changeset
|
233 |
'<a href="{url|urlescape}atom-log" title="subscribe to repository atom feed"> |
9409aeaafdc1
hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents:
18523
diff
changeset
|
234 |
<img class="atom-logo" src="{staticurl|urlescape}feed-icon-14x14.png" alt="subscribe to repository atom feed"> |
18201
2efc6536ea43
hgweb, paper: add (Atom) subscribe links to the repository index
Angel Ezquerra <angel.ezquerra@gmail.com>
parents:
17991
diff
changeset
|
235 |
</a>' |
2efc6536ea43
hgweb, paper: add (Atom) subscribe links to the repository index
Angel Ezquerra <angel.ezquerra@gmail.com>
parents:
17991
diff
changeset
|
236 |
)} |
2efc6536ea43
hgweb, paper: add (Atom) subscribe links to the repository index
Angel Ezquerra <angel.ezquerra@gmail.com>
parents:
17991
diff
changeset
|
237 |
</td> |
8372
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
238 |
</tr>\n' |
18526
9409aeaafdc1
hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents:
18523
diff
changeset
|
239 |
indexarchiveentry = '<a href="{url|urlescape}archive/{node|short}{extension|urlescape}"> ↓{type|escape}</a>' |
7411
b71ee3e00e81
coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
7407
diff
changeset
|
240 |
index = index.tmpl |
8372
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
241 |
archiveentry = ' |
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
242 |
<li> |
25606
3bb6f5f478a7
hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents:
23740
diff
changeset
|
243 |
<a href="{url|urlescape}archive/{symrev}{extension|urlescape}{ifeq(path,'/','',path|urlescape)}">{type|escape}</a> |
8372
783c8c78db86
paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents:
8369
diff
changeset
|
244 |
</li>' |
7411
b71ee3e00e81
coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
7407
diff
changeset
|
245 |
notfound = notfound.tmpl |
b71ee3e00e81
coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents:
7407
diff
changeset
|
246 |
error = error.tmpl |
6661
d1a312daa574
hgweb: add paper style derived from coal
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
247 |
urlparameter = '{separator}{name}={value|urlescape}' |
d1a312daa574
hgweb: add paper style derived from coal
Matt Mackall <mpm@selenic.com>
parents:
diff
changeset
|
248 |
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:
18523
diff
changeset
|
249 |
breadcrumb = '> <a href="{url|urlescape}">{name|escape}</a> ' |
19795
ac08ff370977
paper: define searchhint message in map file and use it in other templates
Alexander Plavin <alexander@plav.in>
parents:
19463
diff
changeset
|
250 |
|
32758
cba4461aa0a0
hgweb: consolidate search form for paper
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29990
diff
changeset
|
251 |
searchform = ' |
cba4461aa0a0
hgweb: consolidate search form for paper
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29990
diff
changeset
|
252 |
<form class="search" action="{url|urlescape}log"> |
cba4461aa0a0
hgweb: consolidate search form for paper
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29990
diff
changeset
|
253 |
{sessionvars%hiddenformentry} |
cba4461aa0a0
hgweb: consolidate search form for paper
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29990
diff
changeset
|
254 |
<p><input name="rev" id="search1" type="text" size="30" value="{query|escape}" /></p> |
cba4461aa0a0
hgweb: consolidate search form for paper
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29990
diff
changeset
|
255 |
<div id="hint">{searchhint}</div> |
cba4461aa0a0
hgweb: consolidate search form for paper
Gregory Szorc <gregory.szorc@gmail.com>
parents:
29990
diff
changeset
|
256 |
</form>' |
19796
544848ef65f2
paper: edit search hint to include new feature description
Alexander Plavin <alexander@plav.in>
parents:
19795
diff
changeset
|
257 |
searchhint = 'Find changesets by keywords (author, files, the commit message), revision |
544848ef65f2
paper: edit search hint to include new feature description
Alexander Plavin <alexander@plav.in>
parents:
19795
diff
changeset
|
258 |
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
|
259 |
|
6797f1fbc642
hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents:
33390
diff
changeset
|
260 |
diffoptsform = ' |
6797f1fbc642
hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents:
33390
diff
changeset
|
261 |
<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
|
262 |
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
|
263 |
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
|
264 |
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
|
265 |
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
|
266 |
<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
|
267 |
<span>Everywhere:</span> |
6797f1fbc642
hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents:
33390
diff
changeset
|
268 |
<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
|
269 |
<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
|
270 |
<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
|
271 |
<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
|
272 |
<input id="ignorewseol-checkbox" type="checkbox" /> |
6797f1fbc642
hgweb: add HTML elements to control whitespace settings for annotate
Gregory Szorc <gregory.szorc@gmail.com>
parents:
33390
diff
changeset
|
273 |
</form>' |