mercurial/templates/coal/map
author Angel Ezquerra <angel.ezquerra at gmail.com>
Wed, 28 Nov 2012 20:21:26 +0100
changeset 18258 bebb05a7e249
parent 17302 5c64ce6168da
child 18526 9409aeaafdc1
permissions -rw-r--r--
hgweb: add a "URL breadcrumb" to the index and repository pages The purpose of this change is to make it much easier to navigate up the repository tree when the hg web server is used to serve more than one repository. A "URL breadcrumb" is a path where each of the path items can be clicked to go to the corresponding path page. This lets you go up the folder hierarchy very quickly. For example, when showing the list of repositories in http://myserver/myteams/myprojects, the following "breadcrumb" will be shown: Mercurial > myteams > myprojects Clicking on "myprojects" reloads the page. Clicking on "myteams" goes up one folder. Clicking on the leftmost "Mercurial" goes to the server root. This "breadcrumb" also appears on all repository pages. For example on the summary page of the repository at http://myserver/myteams/myprojects/myrepo the following will be shown: Mercurial > myteams > myprojects > myrepo / summary This change has been applied to all templates that already had a link to the main repository page (i.e. gitweb, monoblue, paper and coal) plus to the index page of the spartan template. In order to make the breadcumb links stand out the some of the template styles have been customized.
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
ead4e21f49f1 web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents: 10575
diff changeset
    16
helpentry = '<tr><td><a href="{url}help/{topic|escape}{sessionvars%urlparameter}">{topic|escape}</a></td><td>{summary|escape}</td></tr>'
ead4e21f49f1 web: add a help view for getting hg help output
Augie Fackler <durin42@gmail.com>
parents: 10575
diff changeset
    17
6436
856ae126f48c templates: add coal web theme
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    18
naventry = '<a href="{url}log/{node|short}{sessionvars%urlparameter}">{label|escape}</a> '
856ae126f48c templates: add coal web theme
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    19
navshortentry = '<a href="{url}shortlog/{node|short}{sessionvars%urlparameter}">{label|escape}</a> '
6701
bf72e756c98b templates: fix navigation links for graph entries
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 6691
diff changeset
    20
navgraphentry = '<a href="{url}graph/{node|short}{sessionvars%urlparameter}">{label|escape}</a> '
6436
856ae126f48c templates: add coal web theme
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    21
filenaventry = '<a href="{url}log/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{label|escape}</a> '
856ae126f48c templates: add coal web theme
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    22
filedifflink = '<a href="{url}diff/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{file|escape}</a> '
856ae126f48c templates: add coal web theme
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    23
filenodelink = '<a href="{url}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
    24
filenolink = '{file|escape} '
6436
856ae126f48c templates: add coal web theme
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    25
fileellipses = '...'
14563
81fc9678b018 paper, coal: define the diffstat templates
Steven Brown <StevenGBrown@gmail.com>
parents: 14046
diff changeset
    26
diffstatlink = ../paper/diffstat.tmpl
81fc9678b018 paper, coal: define the diffstat templates
Steven Brown <StevenGBrown@gmail.com>
parents: 14046
diff changeset
    27
diffstatnolink = ../paper/diffstat.tmpl
7411
b71ee3e00e81 coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 7407
diff changeset
    28
changelogentry = ../paper/shortlogentry.tmpl
b71ee3e00e81 coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 7407
diff changeset
    29
searchentry = ../paper/shortlogentry.tmpl
b71ee3e00e81 coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 7407
diff changeset
    30
changeset = ../paper/changeset.tmpl
b71ee3e00e81 coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 7407
diff changeset
    31
manifest = ../paper/manifest.tmpl
6436
856ae126f48c templates: add coal web theme
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    32
10254
8d5de52431f2 hgweb: changenav: separate pages before and after the current position
Nicolas Dumazet <nicdumz.commits@gmail.com>
parents: 9999
diff changeset
    33
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
    34
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
    35
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
    36
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
    37
8373
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    38
direntry = '
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    39
  <tr class="fileline parity{parity}">
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    40
    <td class="name">
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    41
      <a href="{url}file/{node|short}{path|urlescape}{sessionvars%urlparameter}">
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    42
        <img src="{staticurl}coal-folder.png" alt="dir."/> {basename|escape}/
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    43
      </a>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    44
      <a href="{url}file/{node|short}{path|urlescape}/{emptydirs|urlescape}{sessionvars%urlparameter}">
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    45
        {emptydirs|escape}
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    46
      </a>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    47
    </td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    48
    <td class="size"></td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    49
    <td class="permissions">drwxr-xr-x</td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    50
  </tr>'
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    51
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    52
fileentry = '
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    53
  <tr class="fileline parity{parity}">
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    54
    <td class="filename">
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    55
      <a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    56
        <img src="{staticurl}coal-file.png" alt="file"/> {basename|escape}
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    57
      </a>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    58
    </td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    59
    <td class="size">{size}</td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    60
    <td class="permissions">{permissions|permissions}</td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    61
  </tr>'
6436
856ae126f48c templates: add coal web theme
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    62
7411
b71ee3e00e81 coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 7407
diff changeset
    63
filerevision = ../paper/filerevision.tmpl
b71ee3e00e81 coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 7407
diff changeset
    64
fileannotate = ../paper/fileannotate.tmpl
b71ee3e00e81 coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 7407
diff changeset
    65
filediff = ../paper/filediff.tmpl
17202
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
    66
filecomparison = ../paper/filecomparison.tmpl
7411
b71ee3e00e81 coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 7407
diff changeset
    67
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
    68
fileline = '
835b1ee111f4 coal, paper: add newlines when displaying a file in hgweb
Martin Geisler <mg@lazybytes.net>
parents: 8373
diff changeset
    69
  <div class="parity{parity} 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
    70
filelogentry = ../paper/filelogentry.tmpl
6436
856ae126f48c templates: add coal web theme
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    71
8373
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    72
annotateline = '
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    73
  <tr class="parity{parity}">
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    74
    <td class="annotate">
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    75
      <a href="{url}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#{targetline}"
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    76
         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
    77
    </td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    78
    <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
    79
  </tr>'
6436
856ae126f48c templates: add coal web theme
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
    80
8369
93a811ef3ac0 coal/paper: Wrap diff in <pre/>
Rocco Rutte <pdmef@gmx.net>
parents: 8353
diff changeset
    81
diffblock = '<div class="source bottomline parity{parity}"><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
    82
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
    83
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
    84
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
    85
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
    86
17202
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
    87
comparisonblock ='
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
    88
  <tbody class="block">
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
    89
  {lines}
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
    90
  </tbody>'
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
    91
comparisonline = '
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
    92
  <tr>
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
    93
    <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
    94
    <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
    95
  </tr>'
1ae119269ddc hgweb: side-by-side comparison functionality
wujek srujek
parents: 15375
diff changeset
    96
8373
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    97
changelogparent = '
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    98
  <tr>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
    99
    <th class="parent">parent {rev}:</th>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   100
    <td class="parent"><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   101
  </tr>'
6436
856ae126f48c templates: add coal web theme
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
   102
856ae126f48c templates: add coal web theme
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
   103
changesetparent = '<a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a> '
856ae126f48c templates: add coal web theme
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
   104
856ae126f48c templates: add coal web theme
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
   105
filerevparent = '<a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{rename%filerename}{node|short}</a> '
856ae126f48c templates: add coal web theme
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
   106
filerevchild = '<a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a> '
856ae126f48c templates: add coal web theme
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
   107
856ae126f48c templates: add coal web theme
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
   108
filerename = '{file|escape}@'
8373
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   109
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
   110
  <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
   111
    base
1209e1d52b68 hgweb: add base link to file log for paper and coal styles (issue2452)
Kevin Gessner <kevin@fogcreek.com>
parents: 12666
diff changeset
   112
    <a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">
1209e1d52b68 hgweb: add base link to file log for paper and coal styles (issue2452)
Kevin Gessner <kevin@fogcreek.com>
parents: 12666
diff changeset
   113
      {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
   114
    </a>
1209e1d52b68 hgweb: add base link to file log for paper and coal styles (issue2452)
Kevin Gessner <kevin@fogcreek.com>
parents: 12666
diff changeset
   115
  </span>'
8373
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   116
fileannotateparent = '
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   117
  <tr>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   118
    <td class="metatag">parent:</td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   119
    <td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   120
      <a href="{url}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   121
        {rename%filerename}{node|short}
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   122
      </a>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   123
    </td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   124
  </tr>'
7668
876de22b70b8 coal/paper: add missing spaces in changeset child formatting
Stepan Koltsov <yozh@mx1.ru>
parents: 7411
diff changeset
   125
changesetchild = ' <a href="{url}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
   126
changelogchild = '
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   127
  <tr>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   128
    <th class="child">child</th>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   129
    <td class="child">
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   130
      <a href="{url}rev/{node|short}{sessionvars%urlparameter}">
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   131
        {node|short}
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   132
      </a>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   133
    </td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   134
  </tr>'
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   135
fileannotatechild = '
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   136
  <tr>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   137
    <td class="metatag">child:</td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   138
    <td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   139
      <a href="{url}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   140
        {node|short}
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   141
      </a>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   142
    </td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   143
  </tr>'
7411
b71ee3e00e81 coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 7407
diff changeset
   144
tags = ../paper/tags.tmpl
8373
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   145
tagentry = '
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   146
  <tr class="tagEntry parity{parity}">
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   147
    <td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   148
      <a href="{url}rev/{node|short}{sessionvars%urlparameter}">
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   149
        {tag|escape}
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   150
      </a>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   151
    </td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   152
    <td class="node">
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
    </td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   155
  </tr>'
13865
e33ebe67657a hgweb: add missing bookmarks definition to coal/map
Yuya Nishihara <yuya@tcha.org>
parents: 12666
diff changeset
   156
bookmarks = ../paper/bookmarks.tmpl
e33ebe67657a hgweb: add missing bookmarks definition to coal/map
Yuya Nishihara <yuya@tcha.org>
parents: 12666
diff changeset
   157
bookmarkentry = '
e33ebe67657a hgweb: add missing bookmarks definition to coal/map
Yuya Nishihara <yuya@tcha.org>
parents: 12666
diff changeset
   158
  <tr class="tagEntry parity{parity}">
e33ebe67657a hgweb: add missing bookmarks definition to coal/map
Yuya Nishihara <yuya@tcha.org>
parents: 12666
diff changeset
   159
    <td>
e33ebe67657a hgweb: add missing bookmarks definition to coal/map
Yuya Nishihara <yuya@tcha.org>
parents: 12666
diff changeset
   160
      <a href="{url}rev/{node|short}{sessionvars%urlparameter}">
e33ebe67657a hgweb: add missing bookmarks definition to coal/map
Yuya Nishihara <yuya@tcha.org>
parents: 12666
diff changeset
   161
        {bookmark|escape}
e33ebe67657a hgweb: add missing bookmarks definition to coal/map
Yuya Nishihara <yuya@tcha.org>
parents: 12666
diff changeset
   162
      </a>
e33ebe67657a hgweb: add missing bookmarks definition to coal/map
Yuya Nishihara <yuya@tcha.org>
parents: 12666
diff changeset
   163
    </td>
e33ebe67657a hgweb: add missing bookmarks definition to coal/map
Yuya Nishihara <yuya@tcha.org>
parents: 12666
diff changeset
   164
    <td class="node">
e33ebe67657a hgweb: add missing bookmarks definition to coal/map
Yuya Nishihara <yuya@tcha.org>
parents: 12666
diff changeset
   165
      {node|short}
e33ebe67657a hgweb: add missing bookmarks definition to coal/map
Yuya Nishihara <yuya@tcha.org>
parents: 12666
diff changeset
   166
    </td>
e33ebe67657a hgweb: add missing bookmarks definition to coal/map
Yuya Nishihara <yuya@tcha.org>
parents: 12666
diff changeset
   167
  </tr>'
8353
6058d291abdf paper/coal: add branches page
Sune Foldager <cryo@cyanite.org>
parents: 8240
diff changeset
   168
branches = ../paper/branches.tmpl
8373
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   169
branchentry = '
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   170
  <tr class="tagEntry parity{parity}">
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   171
    <td>
8713
de6bb29e208a hgweb: allow distinction between open/closed branches on branches page
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 8486
diff changeset
   172
      <a href="{url}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
   173
        {branch|escape}
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   174
      </a>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   175
    </td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   176
    <td class="node">
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   177
      {node|short}
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   178
    </td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   179
  </tr>'
6436
856ae126f48c templates: add coal web theme
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
   180
changelogtag = '<span class="tag">{name|escape}</span> '
856ae126f48c templates: add coal web theme
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
   181
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
   182
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
   183
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
   184
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
   185
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   186
filediffparent = '
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   187
  <tr>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   188
    <th class="parent">parent {rev}:</th>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   189
    <td class="parent"><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   190
  </tr>'
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   191
filelogparent = '
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   192
  <tr>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   193
    <th>parent {rev}:</th>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   194
    <td><a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   195
  </tr>'
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   196
filediffchild = '
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   197
  <tr>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   198
    <th class="child">child {rev}:</th>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   199
    <td class="child"><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   200
  </td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   201
  </tr>'
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   202
filelogchild = '
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
    <th>child {rev}:</th>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   205
    <td><a href="{url}file/{node|short}/{file|urlescape}{sessionvars%urlparameter}">{node|short}</a></td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   206
  </tr>'
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   207
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   208
indexentry = '
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   209
  <tr class="parity{parity}">
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   210
    <td><a href="{url}{sessionvars%urlparameter}">{name|escape}</a></td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   211
    <td>{description}</td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   212
    <td>{contact|obfuscate}</td>
15375
fe9d36a6853e hgweb: fix dynamic date calculation not working under Safari
Brodie Rao <brodie@bitheap.org>
parents: 14563
diff changeset
   213
    <td class="age">{lastchange|rfc822date}</td>
8373
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   214
    <td class="indexlinks">{archives%indexarchiveentry}</td>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   215
  </tr>\n'
6734
41edbc2e0b0b Improve archive links in coal/paper index
Brendan Cully <brendan@kublai.com>
parents: 6713
diff changeset
   216
indexarchiveentry = '<a href="{url}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
   217
index = ../paper/index.tmpl
8373
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   218
archiveentry = '
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   219
  <li>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   220
    <a href="{url}archive/{node|short}{extension|urlescape}">{type|escape}</a>
890a85b67228 coal: break long lines in map file
Martin Geisler <mg@lazybytes.net>
parents: 8369
diff changeset
   221
  </li>'
7411
b71ee3e00e81 coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 7407
diff changeset
   222
notfound = ../paper/notfound.tmpl
b71ee3e00e81 coal/paper: move actual templates from coal to paper
Dirkjan Ochtman <dirkjan@ochtman.nl>
parents: 7407
diff changeset
   223
error = ../paper/error.tmpl
6436
856ae126f48c templates: add coal web theme
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
   224
urlparameter = '{separator}{name}={value|urlescape}'
856ae126f48c templates: add coal web theme
Matt Mackall <mpm@selenic.com>
parents:
diff changeset
   225
hiddenformentry = '<input type="hidden" name="{name}" value="{value|escape}" />'
18258
bebb05a7e249 hgweb: add a "URL breadcrumb" to the index and repository pages
Angel Ezquerra <angel.ezquerra at gmail.com>
parents: 17302
diff changeset
   226
breadcrumb = '&gt; <a href="{url}">{name}</a> '