mercurial/templates/paper/map
author Pierre-Yves David <pierre-yves.david@fb.com>
Tue, 28 Oct 2014 15:44:23 +0100
changeset 23221 cadc9a723d60
parent 19796 544848ef65f2
child 23740 9e1f4c65f5f5
permissions -rw-r--r--
changegroup: use the 'postclose' API on transaction The post-transaction hooks run after the lock release (because hooks may want to touch the repository), but they must only run if the transaction is successfully closed. We use the new 'addpostclose' method on transaction to register a callback installing this post-lock-release call.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
12666
ead4e21f49f1 web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents: 10575
diff changeset
    12
help = help.tmpl
ead4e21f49f1 web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents: 10575
diff changeset
    13
helptopics = helptopics.tmpl
ead4e21f49f1 web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents: 10575
diff changeset
    14
18745
3c7c25fa58e0 hgweb help: split up long lines (in generated output)
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents: 18526
diff changeset
    15
helpentry = '
3c7c25fa58e0 hgweb help: split up long lines (in generated output)
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents: 18526
diff changeset
    16
  <tr><td>
3c7c25fa58e0 hgweb help: split up long lines (in generated output)
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents: 18526
diff changeset
    17
    <a href="{url|urlescape}help/{topic|escape}{sessionvars%urlparameter}">
3c7c25fa58e0 hgweb help: split up long lines (in generated output)
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents: 18526
diff changeset
    18
      {topic|escape}
3c7c25fa58e0 hgweb help: split up long lines (in generated output)
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents: 18526
diff changeset
    19
    </a>
3c7c25fa58e0 hgweb help: split up long lines (in generated output)
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents: 18526
diff changeset
    20
  </td><td>
3c7c25fa58e0 hgweb help: split up long lines (in generated output)
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents: 18526
diff changeset
    21
    {summary|escape}
3c7c25fa58e0 hgweb help: split up long lines (in generated output)
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents: 18526
diff changeset
    22
  </td></tr>'
6661
d1a312daa574 hgweb: add paper style derived from coal
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    23
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18523
diff changeset
    24
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
    25
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
    26
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
    27
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
    28
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
    29
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
    30
filenolink = '{file|escape} '
6661
d1a312daa574 hgweb: add paper style derived from coal
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    31
fileellipses = '...'
14563
81fc9678b018 paper, coal: define the diffstat templates
Steven Brown <StevenGBrown@gmail.com>
parents: 14046
diff changeset
    32
diffstatlink = diffstat.tmpl
81fc9678b018 paper, coal: define the diffstat templates
Steven Brown <StevenGBrown@gmail.com>
parents: 14046
diff changeset
    33
diffstatnolink = diffstat.tmpl
7411
b71ee3e00e81 coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 7407
diff changeset
    34
changelogentry = shortlogentry.tmpl
b71ee3e00e81 coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 7407
diff changeset
    35
searchentry = shortlogentry.tmpl
b71ee3e00e81 coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 7407
diff changeset
    36
changeset = changeset.tmpl
b71ee3e00e81 coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 7407
diff changeset
    37
manifest = manifest.tmpl
6661
d1a312daa574 hgweb: add paper style derived from coal
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    38
10254
8d5de52431f2 hgweb: changenav: separate pages before and after the current position
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 9999
diff changeset
    39
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
    40
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
    41
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
    42
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
    43
8372
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    44
direntry = '
19447
182942b38d24 hgweb: make stripes in directory view with CSS
Alexander Plavin <me@aplavin.ru>
parents: 19446
diff changeset
    45
  <tr class="fileline">
8372
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    46
    <td class="name">
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18523
diff changeset
    47
      <a href="{url|urlescape}file/{node|short}{path|urlescape}{sessionvars%urlparameter}">
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18523
diff changeset
    48
        <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
    49
      </a>
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18523
diff changeset
    50
      <a href="{url|urlescape}file/{node|short}{path|urlescape}/{emptydirs|urlescape}{sessionvars%urlparameter}">
8372
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    51
        {emptydirs|escape}
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    52
      </a>
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    53
    </td>
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    54
    <td class="size"></td>
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    55
    <td class="permissions">drwxr-xr-x</td>
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    56
  </tr>'
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    57
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    58
fileentry = '
19447
182942b38d24 hgweb: make stripes in directory view with CSS
Alexander Plavin <me@aplavin.ru>
parents: 19446
diff changeset
    59
  <tr class="fileline">
8372
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    60
    <td class="filename">
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18523
diff changeset
    61
      <a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18523
diff changeset
    62
        <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
    63
      </a>
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    64
    </td>
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    65
    <td class="size">{size}</td>
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    66
    <td class="permissions">{permissions|permissions}</td>
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    67
  </tr>'
6661
d1a312daa574 hgweb: add paper style derived from coal
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    68
7411
b71ee3e00e81 coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 7407
diff changeset
    69
filerevision = filerevision.tmpl
b71ee3e00e81 coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 7407
diff changeset
    70
fileannotate = fileannotate.tmpl
b71ee3e00e81 coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 7407
diff changeset
    71
filediff = filediff.tmpl
17202
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 16577
diff changeset
    72
filecomparison = filecomparison.tmpl
7411
b71ee3e00e81 coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 7407
diff changeset
    73
filelog = filelog.tmpl
8486
835b1ee111f4 coal, paper: add newlines when displaying a file in hgweb
Martin Geisler <mg@lazybytes.net>
parents: 8372
diff changeset
    74
fileline = '
19387
f2e4fdb3dd27 hgweb: code selection without line numbers in file source view
Alexander Plavin <me@aplavin.ru>
parents: 18772
diff changeset
    75
  <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
    76
filelogentry = filelogentry.tmpl
6661
d1a312daa574 hgweb: add paper style derived from coal
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    77
8372
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    78
annotateline = '
19463
f3393d458bf5 hgweb: highlight line which is linked to at annotate view
Alexander Plavin <me@aplavin.ru>
parents: 19459
diff changeset
    79
  <tr id="{lineid}">
8372
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    80
    <td class="annotate">
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18523
diff changeset
    81
      <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#l{targetline}"
8372
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    82
         title="{node|short}: {desc|escape|firstline}">{author|user}@{rev}</a>
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    83
    </td>
19463
f3393d458bf5 hgweb: highlight line which is linked to at annotate view
Alexander Plavin <me@aplavin.ru>
parents: 19459
diff changeset
    84
    <td class="source"><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
    85
  </tr>'
6661
d1a312daa574 hgweb: add paper style derived from coal
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    86
19432
e92d4b8530cb hgweb: file diff and changesets views behave like file source view
Alexander Plavin <me@aplavin.ru>
parents: 19387
diff changeset
    87
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
    88
difflineplus = '
e92d4b8530cb hgweb: file diff and changesets views behave like file source view
Alexander Plavin <me@aplavin.ru>
parents: 19387
diff changeset
    89
  <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
    90
difflineminus = '
e92d4b8530cb hgweb: file diff and changesets views behave like file source view
Alexander Plavin <me@aplavin.ru>
parents: 19387
diff changeset
    91
  <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
    92
difflineat = '
e92d4b8530cb hgweb: file diff and changesets views behave like file source view
Alexander Plavin <me@aplavin.ru>
parents: 19387
diff changeset
    93
  <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
    94
diffline = '
e92d4b8530cb hgweb: file diff and changesets views behave like file source view
Alexander Plavin <me@aplavin.ru>
parents: 19387
diff changeset
    95
  <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
    96
17202
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 16577
diff changeset
    97
comparisonblock ='
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 16577
diff changeset
    98
  <tbody class="block">
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 16577
diff changeset
    99
  {lines}
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 16577
diff changeset
   100
  </tbody>'
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 16577
diff changeset
   101
comparisonline = '
19459
fbfe5748ef3e hgweb: highlight line which is linked to at comparison view
Alexander Plavin <me@aplavin.ru>
parents: 19451
diff changeset
   102
  <tr id="{lineid}">
fbfe5748ef3e hgweb: highlight line which is linked to at comparison view
Alexander Plavin <me@aplavin.ru>
parents: 19451
diff changeset
   103
    <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
   104
    <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
   105
  </tr>'
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 16577
diff changeset
   106
8372
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   107
changelogparent = '
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   108
  <tr>
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   109
    <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
   110
    <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
   111
  </tr>'
6661
d1a312daa574 hgweb: add paper style derived from coal
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
   112
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18523
diff changeset
   113
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
   114
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18523
diff changeset
   115
difffrom = '<a href="{url|urlescape}rev/{node|short}:{originalnode|short}{sessionvars%urlparameter}">{node|short}</a> '
17991
d605a82cf189 hgweb: display diff for a changeset against any parents (issue2810)
Weiwen <weiwen@fb.com>
parents: 17302
diff changeset
   116
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18523
diff changeset
   117
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
   118
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
   119
d1a312daa574 hgweb: add paper style derived from coal
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
   120
filerename = '{file|escape}@'
8372
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   121
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
   122
  <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
   123
    base
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18523
diff changeset
   124
    <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
   125
      {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
   126
    </a>
1209e1d52b68 hgweb: add base link to file log for paper and coal styles (issue2452)
Kevin Gessner <kevin@fogcreek.com>
parents: 13597
diff changeset
   127
  </span>'
8372
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   128
fileannotateparent = '
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   129
  <tr>
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   130
    <td class="metatag">parent:</td>
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   131
    <td>
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18523
diff changeset
   132
      <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
   133
        {rename%filerename}{node|short}
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   134
      </a>
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   135
    </td>
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   136
  </tr>'
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18523
diff changeset
   137
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
   138
changelogchild = '
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   139
  <tr>
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   140
    <th class="child">child</th>
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   141
    <td class="child">
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18523
diff changeset
   142
      <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">
8372
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   143
        {node|short}
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   144
      </a>
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   145
    </td>
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   146
  </tr>'
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   147
fileannotatechild = '
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   148
  <tr>
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   149
    <td class="metatag">child:</td>
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   150
    <td>
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18523
diff changeset
   151
      <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
   152
        {node|short}
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   153
      </a>
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   154
    </td>
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   155
  </tr>'
7411
b71ee3e00e81 coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 7407
diff changeset
   156
tags = tags.tmpl
8372
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   157
tagentry = '
19448
fa0e1ca9fbc0 hgweb: make stripes in tag list with CSS
Alexander Plavin <me@aplavin.ru>
parents: 19447
diff changeset
   158
  <tr class="tagEntry">
8372
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   159
    <td>
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18523
diff changeset
   160
      <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">
8372
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   161
        {tag|escape}
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   162
      </a>
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   163
    </td>
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   164
    <td class="node">
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   165
      {node|short}
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   166
    </td>
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   167
  </tr>'
13597
38c9837b1f75 hgweb: add separate page with bookmarks listing
Alexander Solovyov <alexander@solovyov.net>
parents: 13596
diff changeset
   168
bookmarks = bookmarks.tmpl
38c9837b1f75 hgweb: add separate page with bookmarks listing
Alexander Solovyov <alexander@solovyov.net>
parents: 13596
diff changeset
   169
bookmarkentry = '
19446
25dae11bb044 hgweb: make stripes in bookmark list with CSS
Alexander Plavin <me@aplavin.ru>
parents: 19432
diff changeset
   170
  <tr class="tagEntry">
13597
38c9837b1f75 hgweb: add separate page with bookmarks listing
Alexander Solovyov <alexander@solovyov.net>
parents: 13596
diff changeset
   171
    <td>
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18523
diff changeset
   172
      <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">
13597
38c9837b1f75 hgweb: add separate page with bookmarks listing
Alexander Solovyov <alexander@solovyov.net>
parents: 13596
diff changeset
   173
        {bookmark|escape}
38c9837b1f75 hgweb: add separate page with bookmarks listing
Alexander Solovyov <alexander@solovyov.net>
parents: 13596
diff changeset
   174
      </a>
38c9837b1f75 hgweb: add separate page with bookmarks listing
Alexander Solovyov <alexander@solovyov.net>
parents: 13596
diff changeset
   175
    </td>
38c9837b1f75 hgweb: add separate page with bookmarks listing
Alexander Solovyov <alexander@solovyov.net>
parents: 13596
diff changeset
   176
    <td class="node">
38c9837b1f75 hgweb: add separate page with bookmarks listing
Alexander Solovyov <alexander@solovyov.net>
parents: 13596
diff changeset
   177
      {node|short}
38c9837b1f75 hgweb: add separate page with bookmarks listing
Alexander Solovyov <alexander@solovyov.net>
parents: 13596
diff changeset
   178
    </td>
38c9837b1f75 hgweb: add separate page with bookmarks listing
Alexander Solovyov <alexander@solovyov.net>
parents: 13596
diff changeset
   179
  </tr>'
8353
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents: 8240
diff changeset
   180
branches = branches.tmpl
8372
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   181
branchentry = '
19451
aad410749ff3 hgweb: make stripes in branch list with CSS
Alexander Plavin <me@aplavin.ru>
parents: 19450
diff changeset
   182
  <tr class="tagEntry">
8372
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   183
    <td>
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18523
diff changeset
   184
      <a href="{url|urlescape}shortlog/{node|short}{sessionvars%urlparameter}" class="{status}">
8372
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   185
        {branch|escape}
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   186
      </a>
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   187
    </td>
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   188
    <td class="node">
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   189
      {node|short}
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   190
    </td>
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   191
  </tr>'
6661
d1a312daa574 hgweb: add paper style derived from coal
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
   192
changelogtag = '<span class="tag">{name|escape}</span> '
d1a312daa574 hgweb: add paper style derived from coal
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
   193
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
   194
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
   195
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
   196
changelogbranchname = '<span class="branchname">{name|escape}</span> '
8372
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   197
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   198
filediffparent = '
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   199
  <tr>
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   200
    <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
   201
    <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
   202
  </tr>'
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   203
filelogparent = '
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   204
  <tr>
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   205
    <th>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
   206
    <td><a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td>
8372
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   207
  </tr>'
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   208
filediffchild = '
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   209
  <tr>
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   210
    <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
   211
    <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
   212
  </td>
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
filelogchild = '
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   215
  <tr>
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   216
    <th>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
   217
    <td><a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td>
8372
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
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   220
indexentry = '
19450
ddae9e9b7ca1 hgweb: make stripes in repo list with CSS
Alexander Plavin <me@aplavin.ru>
parents: 19449
diff changeset
   221
  <tr>
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18523
diff changeset
   222
    <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
   223
    <td>{description}</td>
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   224
    <td>{contact|obfuscate}</td>
15375
fe9d36a6853e hgweb: fix dynamic date calculation not working under Safari
Brodie Rao <brodie@bitheap.org>
parents: 14563
diff changeset
   225
    <td class="age">{lastchange|rfc822date}</td>
8372
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   226
    <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
   227
    <td>
2efc6536ea43 hgweb, paper: add (Atom) subscribe links to the repository index
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 17991
diff changeset
   228
        {if(isdirectory, '',
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18523
diff changeset
   229
            '<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
   230
                <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
   231
            </a>'
2efc6536ea43 hgweb, paper: add (Atom) subscribe links to the repository index
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 17991
diff changeset
   232
            )}
2efc6536ea43 hgweb, paper: add (Atom) subscribe links to the repository index
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 17991
diff changeset
   233
    </td>
8372
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   234
  </tr>\n'
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18523
diff changeset
   235
indexarchiveentry = '<a href="{url|urlescape}archive/{node|short}{extension|urlescape}">&nbsp;&darr;{type|escape}</a>'
7411
b71ee3e00e81 coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 7407
diff changeset
   236
index = index.tmpl
8372
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   237
archiveentry = '
783c8c78db86 paper: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   238
  <li>
18772
0bba1ff2ac7b hgweb: change manifest archive links to only archive the current directory
Angel Ezquerra <angel.ezquerra@gmail.com>
parents: 18745
diff changeset
   239
    <a href="{url|urlescape}archive/{node|short}{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
   240
  </li>'
7411
b71ee3e00e81 coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 7407
diff changeset
   241
notfound = notfound.tmpl
b71ee3e00e81 coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 7407
diff changeset
   242
error = error.tmpl
6661
d1a312daa574 hgweb: add paper style derived from coal
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
   243
urlparameter = '{separator}{name}={value|urlescape}'
d1a312daa574 hgweb: add paper style derived from coal
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
   244
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
   245
breadcrumb = '&gt; <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
   246
19796
544848ef65f2 paper: edit search hint to include new feature description
Alexander Plavin <alexander@plav.in>
parents: 19795
diff changeset
   247
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
   248
  number or hash, or <a href="{url|urlescape}help/revsets">revset expression</a>.'