Mercurial > hg-stable
comparison templates/paper/map @ 7394:03b60f2f90bf
hgweb (coal/paper): make file, diff and annotate easier to render
This patch removes tables altogether for file and diff, and removes
one column from annotate, making firefox's incremental renderer much
faster for large files.
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Thu, 20 Nov 2008 18:15:50 -0800 |
parents | c21d236ca897 |
children | 7b2a77b20964 |
comparison
equal
deleted
inserted
replaced
7393:92c952c4470c | 7394:03b60f2f90bf |
---|---|
28 | 28 |
29 filerevision = ../coal/filerevision.tmpl | 29 filerevision = ../coal/filerevision.tmpl |
30 fileannotate = ../coal/fileannotate.tmpl | 30 fileannotate = ../coal/fileannotate.tmpl |
31 filediff = ../coal/filediff.tmpl | 31 filediff = ../coal/filediff.tmpl |
32 filelog = ../coal/filelog.tmpl | 32 filelog = ../coal/filelog.tmpl |
33 fileline = '<tr class="parity{parity}"><td class="lineno"><a href="#{lineid}" id="{lineid}">{linenumber}</a></td><td class="source">{line|escape}</td></tr>' | 33 fileline = '<div class="parity{parity} source"><a href="#{lineid}" id="{lineid}">{linenumber}</a> {line|escape}</div>' |
34 filelogentry = ../coal/filelogentry.tmpl | 34 filelogentry = ../coal/filelogentry.tmpl |
35 | 35 |
36 annotateline = '<tr class="parity{parity}"><td class="annotate"><a href="{url}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#{targetline}" title="{node|short}: {desc|escape|firstline}">{author|user}@{rev}</a></td><td class="lineno"><a href="#{lineid}" id="{lineid}">{linenumber}</a></td><td class="source">{line|escape}</td></tr>' | 36 annotateline = '<tr class="parity{parity}"><td class="annotate"><a href="{url}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}#{targetline}" title="{node|short}: {desc|escape|firstline}">{author|user}@{rev}</a></td><td class="source"><a href="#{lineid}" id="{lineid}">{linenumber}</a> {line|escape}</td></tr>' |
37 | 37 |
38 diffblock = '<table class="bigtable parity{parity}">{lines}</table>' | 38 diffblock = '<div class="source bottomline parity{parity}">{lines}</div>' |
39 difflineplus = '<tr><td class="lineno"><a href="#{lineid}" id="{lineid}">{linenumber}</a></td><td class="source plusline">{line|escape}</td></tr>' | 39 difflineplus = '<a href="#{lineid}" id="{lineid}">{linenumber}</a> <span class="plusline">{line|escape}</span>' |
40 difflineminus = '<tr><td class="lineno"><a href="#{lineid}" id="{lineid}">{linenumber}</a></td><td class="source minusline">{line|escape}</td></tr>' | 40 difflineminus = '<a href="#{lineid}" id="{lineid}">{linenumber}</a> <span class="minusline">{line|escape}</span>' |
41 difflineat = '<tr><td class="lineno"><a href="#{lineid}" id="{lineid}">{linenumber}</a></td><td class="source atline">{line|escape}</td></tr>' | 41 difflineat = '<a href="#{lineid}" id="{lineid}">{linenumber}</a> <span class="atline">{line|escape}</span>' |
42 diffline = '<tr><td class="lineno"><a href="#{lineid}" id="{lineid}">{linenumber}</a></td><td class="source">{line|escape}</td></tr>' | 42 diffline = '<a href="#{lineid}" id="{lineid}">{linenumber}</a> {line|escape}' |
43 | 43 |
44 changelogparent = '<tr><th class="parent">parent {rev}:</th><td class="parent"><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td></tr>' | 44 changelogparent = '<tr><th class="parent">parent {rev}:</th><td class="parent"><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td></tr>' |
45 | 45 |
46 changesetparent = '<a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a> ' | 46 changesetparent = '<a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a> ' |
47 | 47 |