[PATCH] coal/paper: make output well-formed and fix css syntax error breaking rendering
Rocco Rutte
pdmef at gmx.net
Mon Aug 18 09:00:47 CDT 2008
# HG changeset patch
# User Rocco Rutte <pdmef at gmx.net>
# Date 1219067897 -7200
# Node ID 248e54a9456e8300827c960439ee19864e5302a3
# Parent 438e02b4be73ffd80d4a6cc45b7c9273d6b26604
coal/paper: make output well-formed and fix css syntax error breaking rendering
diff --git a/templates/changeset.tmpl b/templates/changeset.tmpl
--- a/templates/changeset.tmpl
+++ b/templates/changeset.tmpl
@@ -29,10 +29,12 @@
</tr>
<tr>
<th class="date">date:</th>
- <td class="date">#date|date# (#date|age# ago)</td></tr>
+ <td class="date">#date|date# (#date|age# ago)</td>
+</tr>
<tr>
<th class="files">files:</th>
- <td class="files">#files#</td></tr>
+ <td class="files">#files#</td>
+</tr>
<tr>
<th class="description">description:</th>
<td class="description">#desc|strip|escape|addbreaks#</td>
diff --git a/templates/coal/changeset.tmpl b/templates/coal/changeset.tmpl
--- a/templates/coal/changeset.tmpl
+++ b/templates/coal/changeset.tmpl
@@ -18,7 +18,7 @@
<li><a href="{url}file/{node|short}{sessionvars%urlparameter}">browse</a></li>
</ul>
<ul>
- {archives%archiveentry}</ul>
+ {archives%archiveentry}
</ul>
</div>
@@ -52,10 +52,9 @@
</tr>
<tr>
<th class="files">files</th>
- <td class="files">{files}</td></tr>
+ <td class="files">{files}</td>
</tr>
</table>
-<tr>
<div class="overflow">
<table class="bigtable">
@@ -66,7 +65,7 @@
</table>
{diff}
</div>
+
+</div>
</div>
{footer}
-
-
diff --git a/templates/coal/fileannotate.tmpl b/templates/coal/fileannotate.tmpl
--- a/templates/coal/fileannotate.tmpl
+++ b/templates/coal/fileannotate.tmpl
@@ -30,7 +30,7 @@
<div class="main">
<h2>{repo|escape}</h2>
-<h3>annotate {file|escape} @ {rev}:{node|short}</h2>
+<h3>annotate {file|escape} @ {rev}:{node|short}</h3>
<form class="search" action="{url}log">
{sessionvars%hiddenformentry}
diff --git a/templates/coal/filediff.tmpl b/templates/coal/filediff.tmpl
--- a/templates/coal/filediff.tmpl
+++ b/templates/coal/filediff.tmpl
@@ -64,12 +64,11 @@
<th class="lineno">line</th>
<th class="source">diff</th>
</tr>
-<table>
+</table>
+
{diff}
</div>
-</div>
+</div>
</div>
{footer}
-
-
diff --git a/templates/coal/filelog.tmpl b/templates/coal/filelog.tmpl
--- a/templates/coal/filelog.tmpl
+++ b/templates/coal/filelog.tmpl
@@ -4,7 +4,6 @@
href="{url}atom-log/tip/{file|urlescape}" title="Atom feed for {repo|escape}:{file}">
<link rel="alternate" type="application/rss+xml"
href="{url}rss-log/tip/{file|urlescape}" title="RSS feed for {repo|escape}:{file}">
-</head>
</head>
<body>
@@ -46,9 +45,9 @@
<table class="bigtable">
<tr>
- <th class="age">age</td>
- <th class="author">author</td>
- <th class="description">description</td>
+ <th class="age">age</th>
+ <th class="author">author</th>
+ <th class="description">description</th>
</tr>
{entries%filelogentry}
</table>
diff --git a/templates/coal/graph.tmpl b/templates/coal/graph.tmpl
--- a/templates/coal/graph.tmpl
+++ b/templates/coal/graph.tmpl
@@ -49,7 +49,7 @@
</div>
<script type="text/javascript" src="{staticurl}graph.js"></script>
-<script>
+<script type="text/javascript">
<!-- hide script content
document.getElementById('noscript').style.display = 'none';
diff --git a/templates/coal/index.tmpl b/templates/coal/index.tmpl
--- a/templates/coal/index.tmpl
+++ b/templates/coal/index.tmpl
@@ -18,7 +18,7 @@
<th><a href="?sort={sort_contact}">Contact</a></th>
<th><a href="?sort={sort_lastchange}">Last change</a></th>
<th> </th>
- <tr>
+ </tr>
{entries%indexentry}
</table>
</div>
diff --git a/templates/coal/search.tmpl b/templates/coal/search.tmpl
--- a/templates/coal/search.tmpl
+++ b/templates/coal/search.tmpl
@@ -28,9 +28,9 @@
<table class="bigtable">
<tr>
- <th class="age">age</td>
- <th class="author">author</td>
- <th class="description">description</td>
+ <th class="age">age</th>
+ <th class="author">author</th>
+ <th class="description">description</th>
</tr>
{entries}
</table>
diff --git a/templates/coal/shortlog.tmpl b/templates/coal/shortlog.tmpl
--- a/templates/coal/shortlog.tmpl
+++ b/templates/coal/shortlog.tmpl
@@ -41,9 +41,9 @@
<table class="bigtable">
<tr>
- <th class="age">age</td>
- <th class="author">author</td>
- <th class="description">description</td>
+ <th class="age">age</th>
+ <th class="author">author</th>
+ <th class="description">description</th>
</tr>
{entries%shortlogentry}
</table>
diff --git a/templates/fileannotate.tmpl b/templates/fileannotate.tmpl
--- a/templates/fileannotate.tmpl
+++ b/templates/fileannotate.tmpl
@@ -28,10 +28,12 @@
<td>#author|obfuscate#</td></tr>
<tr>
<td class="metatag">date:</td>
- <td>#date|date# (#date|age# ago)</td></tr>
+ <td>#date|date# (#date|age# ago)</td>
+</tr>
<tr>
<td class="metatag">permissions:</td>
- <td>#permissions|permissions#</td></tr>
+ <td>#permissions|permissions#</td>
+</tr>
<tr>
<td class="metatag">description:</td>
<td>{desc|strip|escape|addbreaks}</td>
diff --git a/templates/filelog.tmpl b/templates/filelog.tmpl
--- a/templates/filelog.tmpl
+++ b/templates/filelog.tmpl
@@ -4,7 +4,6 @@
href="#url#atom-log/tip/#file|urlescape#" title="Atom feed for #repo|escape#:#file#">
<link rel="alternate" type="application/rss+xml"
href="#url#rss-log/tip/#file|urlescape#" title="RSS feed for #repo|escape#:#file#">
-</head>
</head>
<body>
diff --git a/templates/graph.tmpl b/templates/graph.tmpl
--- a/templates/graph.tmpl
+++ b/templates/graph.tmpl
@@ -35,7 +35,7 @@ navigate: <small class="navigate">#chang
</div>
<script type="text/javascript" src="#staticurl#graph.js"></script>
-<script>
+<script type="text/javascript">
<!-- hide script content
document.getElementById('noscript').style.display = 'none';
diff --git a/templates/index.tmpl b/templates/index.tmpl
--- a/templates/index.tmpl
+++ b/templates/index.tmpl
@@ -12,7 +12,7 @@
<td><a href="?sort=#sort_contact#">Contact</a></td>
<td><a href="?sort=#sort_lastchange#">Last change</a></td>
<td> </td>
- <tr>
+ </tr>
#entries%indexentry#
</table>
diff --git a/templates/paper/map b/templates/paper/map
--- a/templates/paper/map
+++ b/templates/paper/map
@@ -23,7 +23,7 @@ manifest = ../coal/manifest.tmpl
manifest = ../coal/manifest.tmpl
direntry = '<tr class="fileline parity{parity}"><td class="name"><a href="{url}file/{node|short}{path|urlescape}{sessionvars%urlparameter}"><img src="{staticurl}coal-folder.png"> {basename|escape}/</a><td class="size"></td><td class="permissions">drwxr-xr-x</td></tr>'
-fileentry = '<tr class="fileline parity{parity}"><td clase="filename"><a href="{url}file/{node|short}/{file|urlescape}#l1{sessionvars%urlparameter}"><img src="{staticurl}coal-file.png"> {basename|escape}</a></td><td class="size">{size}</td><td class="permissions">{permissions|permissions}</td></tr>'
+fileentry = '<tr class="fileline parity{parity}"><td class="filename"><a href="{url}file/{node|short}/{file|urlescape}#l1{sessionvars%urlparameter}"><img src="{staticurl}coal-file.png"> {basename|escape}</a></td><td class="size">{size}</td><td class="permissions">{permissions|permissions}</td></tr>'
filerevision = ../coal/filerevision.tmpl
fileannotate = ../coal/fileannotate.tmpl
diff --git a/templates/static/style-paper.css b/templates/static/style-paper.css
--- a/templates/static/style-paper.css
+++ b/templates/static/style-paper.css
@@ -38,7 +38,6 @@ body {
#.menu {
position: absolute !important;
top:expression(eval(document.body.scrollTop + 27));
-}
}
.menu ul {
More information about the Mercurial-devel
mailing list