mercurial/templates/coal/map
author Yuya Nishihara <yuya@tcha.org>
Mon, 16 Mar 2015 16:17:06 +0900
changeset 25765 5e1b0739611c
parent 25664 ebdfca23c1ab
child 25779 cd842821db2c
permissions -rw-r--r--
revset: use integer representation of wdir() in revset This is the simplest way to handle wdir() revision in revset. None didn't work well because revset heavily depends on integer operations such as min(), max(), sorted(), x:y, etc. One downside is that we cannot do "wctx.rev() in set" because wctx.rev() is still None. We could wrap the result set by wdirproxyset that translates None to wdirrev, but it seems overengineered at this point. result = getset(repo, subset, tree) if 'wdir' in funcsused(tree): result = wdirproxyset(result) Test cases need the '(all() + wdir()) &' hack because we have yet to fix the bootstrapping issue of null and wdir.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6436
856ae126f48c templates: add coal web theme
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
     1
default = 'shortlog'
856ae126f48c templates: add coal web theme
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
     2
856ae126f48c templates: add coal web theme
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
     3
mimetype = 'text/html; charset={encoding}'
856ae126f48c templates: add coal web theme
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 = ../paper/footer.tmpl
b71ee3e00e81 coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 7407
diff changeset
     6
search = ../paper/search.tmpl
6436
856ae126f48c templates: add coal web theme
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 = ../paper/shortlog.tmpl
b71ee3e00e81 coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 7407
diff changeset
     9
shortlog = ../paper/shortlog.tmpl
b71ee3e00e81 coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 7407
diff changeset
    10
shortlogentry = ../paper/shortlogentry.tmpl
b71ee3e00e81 coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 7407
diff changeset
    11
graph = ../paper/graph.tmpl
6436
856ae126f48c templates: add coal web theme
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    12
12666
ead4e21f49f1 web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents: 10575
diff changeset
    13
help = ../paper/help.tmpl
ead4e21f49f1 web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents: 10575
diff changeset
    14
helptopics = ../paper/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}">
3c7c25fa58e0 hgweb help: split up long lines (in generated output)
Dan Villiom Podlaski Christiansen <danchr@gmail.com>
parents: 18526
diff changeset
    19
      {topic|escape}
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>'
12666
ead4e21f49f1 web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents: 10575
diff changeset
    24
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
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: 18258
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: 18258
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: 18258
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: 18258
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: 18258
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: 6735
diff changeset
    31
filenolink = '{file|escape} '
6436
856ae126f48c templates: add coal web theme
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 = ../paper/diffstat.tmpl
81fc9678b018 paper, coal: define the diffstat templates
Steven Brown <StevenGBrown@gmail.com>
parents: 14046
diff changeset
    34
diffstatnolink = ../paper/diffstat.tmpl
7411
b71ee3e00e81 coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 7407
diff changeset
    35
changelogentry = ../paper/shortlogentry.tmpl
b71ee3e00e81 coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 7407
diff changeset
    36
searchentry = ../paper/shortlogentry.tmpl
b71ee3e00e81 coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 7407
diff changeset
    37
changeset = ../paper/changeset.tmpl
b71ee3e00e81 coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 7407
diff changeset
    38
manifest = ../paper/manifest.tmpl
6436
856ae126f48c templates: add coal web theme
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
8373
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    45
direntry = '
25664
ebdfca23c1ab hgweb: use css for stripey background in coal
Anton Shestakov <av6@dwimlabs.net>
parents: 25606
diff changeset
    46
  <tr class="fileline">
8373
890a85b67228 coal: 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: 23783
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: 18258
diff changeset
    49
        <img src="{staticurl|urlescape}coal-folder.png" alt="dir."/> {basename|escape}/
8373
890a85b67228 coal: 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: 23783
diff changeset
    51
      <a href="{url|urlescape}file/{symrev}{path|urlescape}/{emptydirs|urlescape}{sessionvars%urlparameter}">
8373
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    52
        {emptydirs|escape}
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    53
      </a>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    54
    </td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    55
    <td class="size"></td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    56
    <td class="permissions">drwxr-xr-x</td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    57
  </tr>'
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    58
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    59
fileentry = '
25664
ebdfca23c1ab hgweb: use css for stripey background in coal
Anton Shestakov <av6@dwimlabs.net>
parents: 25606
diff changeset
    60
  <tr class="fileline">
8373
890a85b67228 coal: 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: 23783
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: 18258
diff changeset
    63
        <img src="{staticurl|urlescape}coal-file.png" alt="file"/> {basename|escape}
8373
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    64
      </a>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    65
    </td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    66
    <td class="size">{size}</td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    67
    <td class="permissions">{permissions|permissions}</td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    68
  </tr>'
6436
856ae126f48c templates: add coal web theme
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 = ../paper/filerevision.tmpl
b71ee3e00e81 coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 7407
diff changeset
    71
fileannotate = ../paper/fileannotate.tmpl
b71ee3e00e81 coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 7407
diff changeset
    72
filediff = ../paper/filediff.tmpl
17202
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
    73
filecomparison = ../paper/filecomparison.tmpl
7411
b71ee3e00e81 coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 7407
diff changeset
    74
filelog = ../paper/filelog.tmpl
8486
835b1ee111f4 coal, paper: add newlines when displaying a file in hgweb
Martin Geisler <mg@lazybytes.net>
parents: 8373
diff changeset
    75
fileline = '
25664
ebdfca23c1ab hgweb: use css for stripey background in coal
Anton Shestakov <av6@dwimlabs.net>
parents: 25606
diff changeset
    76
  <div class="source"><a href="#{lineid}" id="{lineid}">{linenumber}</a> {line|escape}</div>'
7411
b71ee3e00e81 coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 7407
diff changeset
    77
filelogentry = ../paper/filelogentry.tmpl
6436
856ae126f48c templates: add coal web theme
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    78
8373
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    79
annotateline = '
25664
ebdfca23c1ab hgweb: use css for stripey background in coal
Anton Shestakov <av6@dwimlabs.net>
parents: 25606
diff changeset
    80
  <tr>
8373
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    81
    <td class="annotate">
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
    82
      <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#{targetline}"
8373
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    83
         title="{node|short}: {desc|escape|firstline}">{author|user}@{rev}</a>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    84
    </td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    85
    <td class="source"><a href="#{lineid}" id="{lineid}">{linenumber}</a> {line|escape}</td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    86
  </tr>'
6436
856ae126f48c templates: add coal web theme
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    87
25664
ebdfca23c1ab hgweb: use css for stripey background in coal
Anton Shestakov <av6@dwimlabs.net>
parents: 25606
diff changeset
    88
diffblock = '<div class="source bottomline"><pre>{lines}</pre></div>'
7394
03b60f2f90bf hgweb (coal/paper): make file, diff and annotate easier to render
Brendan Cully <brendan@kublai.com>
parents: 7305
diff changeset
    89
difflineplus = '<a href="#{lineid}" id="{lineid}">{linenumber}</a> <span class="plusline">{line|escape}</span>'
03b60f2f90bf hgweb (coal/paper): make file, diff and annotate easier to render
Brendan Cully <brendan@kublai.com>
parents: 7305
diff changeset
    90
difflineminus = '<a href="#{lineid}" id="{lineid}">{linenumber}</a> <span class="minusline">{line|escape}</span>'
03b60f2f90bf hgweb (coal/paper): make file, diff and annotate easier to render
Brendan Cully <brendan@kublai.com>
parents: 7305
diff changeset
    91
difflineat = '<a href="#{lineid}" id="{lineid}">{linenumber}</a> <span class="atline">{line|escape}</span>'
03b60f2f90bf hgweb (coal/paper): make file, diff and annotate easier to render
Brendan Cully <brendan@kublai.com>
parents: 7305
diff changeset
    92
diffline = '<a href="#{lineid}" id="{lineid}">{linenumber}</a> {line|escape}'
6436
856ae126f48c templates: add coal web theme
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    93
17202
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
    94
comparisonblock ='
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
    95
  <tbody class="block">
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
    96
  {lines}
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
    97
  </tbody>'
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
    98
comparisonline = '
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
    99
  <tr>
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
   100
    <td class="source {type}"><a href="#{lineid}" id="{lineid}">{leftlinenumber}</a> {leftline|escape}</td>
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
   101
    <td class="source {type}"><a href="#{lineid}" id="{lineid}">{rightlinenumber}</a> {rightline|escape}</td>
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
   102
  </tr>'
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
   103
8373
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   104
changelogparent = '
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   105
  <tr>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   106
    <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: 18258
diff changeset
   107
    <td class="parent"><a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td>
8373
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   108
  </tr>'
6436
856ae126f48c templates: add coal web theme
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
   109
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
   110
changesetparent = '<a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a> '
6436
856ae126f48c templates: add coal web theme
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
   111
23740
9e1f4c65f5f5 hgweb: allow viewing diffs against p1 or p2 for merge commits (issue3904)
Anton Shestakov <engored@ya.ru>
parents: 18772
diff changeset
   112
changesetparentdiff = '
9e1f4c65f5f5 hgweb: allow viewing diffs against p1 or p2 for merge commits (issue3904)
Anton Shestakov <engored@ya.ru>
parents: 18772
diff changeset
   113
  {changesetparent}
9e1f4c65f5f5 hgweb: allow viewing diffs against p1 or p2 for merge commits (issue3904)
Anton Shestakov <engored@ya.ru>
parents: 18772
diff changeset
   114
  {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: 18772
diff changeset
   115
9e1f4c65f5f5 hgweb: allow viewing diffs against p1 or p2 for merge commits (issue3904)
Anton Shestakov <engored@ya.ru>
parents: 18772
diff changeset
   116
difffrom = '<a href="{url|urlescape}rev/{node|short}:{originalnode|short}{sessionvars%urlparameter}">diff</a>'
9e1f4c65f5f5 hgweb: allow viewing diffs against p1 or p2 for merge commits (issue3904)
Anton Shestakov <engored@ya.ru>
parents: 18772
diff changeset
   117
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
   118
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: 18258
diff changeset
   119
filerevchild = '<a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a> '
6436
856ae126f48c templates: add coal web theme
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
   120
856ae126f48c templates: add coal web theme
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
   121
filerename = '{file|escape}@'
8373
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   122
filelogrename = '
13850
1209e1d52b68 hgweb: add base link to file log for paper and coal styles (issue2452)
Kevin Gessner <kevin@fogcreek.com>
parents: 12666
diff changeset
   123
  <span class="base">
1209e1d52b68 hgweb: add base link to file log for paper and coal styles (issue2452)
Kevin Gessner <kevin@fogcreek.com>
parents: 12666
diff changeset
   124
    base
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
   125
    <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: 12666
diff changeset
   126
      {file|escape}@{node|short}
1209e1d52b68 hgweb: add base link to file log for paper and coal styles (issue2452)
Kevin Gessner <kevin@fogcreek.com>
parents: 12666
diff changeset
   127
    </a>
1209e1d52b68 hgweb: add base link to file log for paper and coal styles (issue2452)
Kevin Gessner <kevin@fogcreek.com>
parents: 12666
diff changeset
   128
  </span>'
8373
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   129
fileannotateparent = '
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   130
  <tr>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   131
    <td class="metatag">parent:</td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   132
    <td>
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
   133
      <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">
8373
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   134
        {rename%filerename}{node|short}
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   135
      </a>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   136
    </td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   137
  </tr>'
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
   138
changesetchild = ' <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a>'
8373
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   139
changelogchild = '
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   140
  <tr>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   141
    <th class="child">child</th>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   142
    <td class="child">
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
   143
      <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">
8373
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   144
        {node|short}
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   145
      </a>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   146
    </td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   147
  </tr>'
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   148
fileannotatechild = '
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   149
  <tr>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   150
    <td class="metatag">child:</td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   151
    <td>
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
   152
      <a href="{url|urlescape}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">
8373
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   153
        {node|short}
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   154
      </a>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   155
    </td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   156
  </tr>'
7411
b71ee3e00e81 coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 7407
diff changeset
   157
tags = ../paper/tags.tmpl
8373
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   158
tagentry = '
25664
ebdfca23c1ab hgweb: use css for stripey background in coal
Anton Shestakov <av6@dwimlabs.net>
parents: 25606
diff changeset
   159
  <tr class="tagEntry">
8373
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   160
    <td>
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
   161
      <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">
8373
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   162
        {tag|escape}
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   163
      </a>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   164
    </td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   165
    <td class="node">
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   166
      {node|short}
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   167
    </td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   168
  </tr>'
13865
e33ebe67657a hgweb: add missing bookmarks definition to coal/map
Yuya Nishihara <yuya@tcha.org>
parents: 12666
diff changeset
   169
bookmarks = ../paper/bookmarks.tmpl
e33ebe67657a hgweb: add missing bookmarks definition to coal/map
Yuya Nishihara <yuya@tcha.org>
parents: 12666
diff changeset
   170
bookmarkentry = '
25664
ebdfca23c1ab hgweb: use css for stripey background in coal
Anton Shestakov <av6@dwimlabs.net>
parents: 25606
diff changeset
   171
  <tr class="tagEntry">
13865
e33ebe67657a hgweb: add missing bookmarks definition to coal/map
Yuya Nishihara <yuya@tcha.org>
parents: 12666
diff changeset
   172
    <td>
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
   173
      <a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">
13865
e33ebe67657a hgweb: add missing bookmarks definition to coal/map
Yuya Nishihara <yuya@tcha.org>
parents: 12666
diff changeset
   174
        {bookmark|escape}
e33ebe67657a hgweb: add missing bookmarks definition to coal/map
Yuya Nishihara <yuya@tcha.org>
parents: 12666
diff changeset
   175
      </a>
e33ebe67657a hgweb: add missing bookmarks definition to coal/map
Yuya Nishihara <yuya@tcha.org>
parents: 12666
diff changeset
   176
    </td>
e33ebe67657a hgweb: add missing bookmarks definition to coal/map
Yuya Nishihara <yuya@tcha.org>
parents: 12666
diff changeset
   177
    <td class="node">
e33ebe67657a hgweb: add missing bookmarks definition to coal/map
Yuya Nishihara <yuya@tcha.org>
parents: 12666
diff changeset
   178
      {node|short}
e33ebe67657a hgweb: add missing bookmarks definition to coal/map
Yuya Nishihara <yuya@tcha.org>
parents: 12666
diff changeset
   179
    </td>
e33ebe67657a hgweb: add missing bookmarks definition to coal/map
Yuya Nishihara <yuya@tcha.org>
parents: 12666
diff changeset
   180
  </tr>'
8353
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents: 8240
diff changeset
   181
branches = ../paper/branches.tmpl
8373
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   182
branchentry = '
25664
ebdfca23c1ab hgweb: use css for stripey background in coal
Anton Shestakov <av6@dwimlabs.net>
parents: 25606
diff changeset
   183
  <tr class="tagEntry">
8373
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   184
    <td>
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
   185
      <a href="{url|urlescape}shortlog/{node|short}{sessionvars%urlparameter}" class="{status}">
8373
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   186
        {branch|escape}
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   187
      </a>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   188
    </td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   189
    <td class="node">
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   190
      {node|short}
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   191
    </td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   192
  </tr>'
6436
856ae126f48c templates: add coal web theme
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
   193
changelogtag = '<span class="tag">{name|escape}</span> '
856ae126f48c templates: add coal web theme
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
   194
changesettag = '<span class="tag">{tag|escape}</span> '
13865
e33ebe67657a hgweb: add missing bookmarks definition to coal/map
Yuya Nishihara <yuya@tcha.org>
parents: 12666
diff changeset
   195
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
   196
changelogbranchhead = '<span class="branchhead">{name|escape}</span> '
10575
136eed1ac69c trailing spaces (and one stray tab)
Thomas Arendsen Hein <thomas@intevation.de>
parents: 10278
diff changeset
   197
changelogbranchname = '<span class="branchname">{name|escape}</span> '
8373
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   198
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   199
filediffparent = '
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   200
  <tr>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   201
    <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: 18258
diff changeset
   202
    <td class="parent"><a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td>
8373
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   203
  </tr>'
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   204
filelogparent = '
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   205
  <tr>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   206
    <th>parent {rev}:</th>
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
   207
    <td><a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td>
8373
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   208
  </tr>'
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   209
filediffchild = '
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   210
  <tr>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   211
    <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: 18258
diff changeset
   212
    <td class="child"><a href="{url|urlescape}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a>
8373
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   213
  </td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   214
  </tr>'
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   215
filelogchild = '
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   216
  <tr>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   217
    <th>child {rev}:</th>
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
   218
    <td><a href="{url|urlescape}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td>
8373
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   219
  </tr>'
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   220
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   221
indexentry = '
25664
ebdfca23c1ab hgweb: use css for stripey background in coal
Anton Shestakov <av6@dwimlabs.net>
parents: 25606
diff changeset
   222
  <tr>
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
   223
    <td><a href="{url|urlescape}{sessionvars%urlparameter}">{name|escape}</a></td>
8373
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   224
    <td>{description}</td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   225
    <td>{contact|obfuscate}</td>
15375
fe9d36a6853e hgweb: fix dynamic date calculation not working under Safari
Brodie Rao <brodie@bitheap.org>
parents: 14563
diff changeset
   226
    <td class="age">{lastchange|rfc822date}</td>
8373
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   227
    <td class="indexlinks">{archives%indexarchiveentry}</td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   228
  </tr>\n'
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
   229
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
   230
index = ../paper/index.tmpl
8373
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   231
archiveentry = '
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   232
  <li>
25606
3bb6f5f478a7 hgweb: don't dereference symbolic revision in paper & coal style (issue2296)
Anton Shestakov <av6@dwimlabs.net>
parents: 23783
diff changeset
   233
    <a href="{url|urlescape}archive/{symrev}{extension|urlescape}{ifeq(path,'/','',path|urlescape)}">{type|escape}</a>
8373
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   234
  </li>'
7411
b71ee3e00e81 coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 7407
diff changeset
   235
notfound = ../paper/notfound.tmpl
b71ee3e00e81 coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 7407
diff changeset
   236
error = ../paper/error.tmpl
6436
856ae126f48c templates: add coal web theme
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
   237
urlparameter = '{separator}{name}={value|urlescape}'
856ae126f48c templates: add coal web theme
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
   238
hiddenformentry = '<input type="hidden" name="{name}" value="{value|escape}" />'
18526
9409aeaafdc1 hgweb: urlescape all urls, HTML escape repo/tag/branch/... names
Thomas Arendsen Hein <thomas@intevation.de>
parents: 18258
diff changeset
   239
breadcrumb = '&gt; <a href="{url|urlescape}">{name|escape}</a> '
23783
ee1bf2b5a780 hgweb: add searchhint to templates/coal/map
Anton Shestakov <engored@ya.ru>
parents: 23740
diff changeset
   240
ee1bf2b5a780 hgweb: add searchhint to templates/coal/map
Anton Shestakov <engored@ya.ru>
parents: 23740
diff changeset
   241
searchhint = 'Find changesets by keywords (author, files, the commit message), revision
ee1bf2b5a780 hgweb: add searchhint to templates/coal/map
Anton Shestakov <engored@ya.ru>
parents: 23740
diff changeset
   242
  number or hash, or <a href="{url|urlescape}help/revsets">revset expression</a>.'