Mercurial > hg
changeset 585:51626d888526
[PATCH] Changelogentry template cleanup
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
[PATCH] Changelogentry template cleanup
From: Edouard Gomez <edouard.gomez@gmail.com>
Changelogentry template cleanup
Removed unuseful outside div (was probably used to carry the
parity class, it's no use, multiple css classes can be assigned
to the inner table instead)
Removed all hardwired styles in html tags. The style has been
externalized to equivalent CSS classes.
The inner table is now assigned the parity CSS class.
Changed all relevant table cells from td to th.
Added classes to all cells in order to give some semantic rationale
to these table cells.
manifest hash: 2835217df09be445961b865be166c2470173ba58
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCx1g5ywK+sNU5EO8RAhKGAKCWAHrx+lLMAXjd4/vgvG7vmfSkAACfTZ+m
/EyUsDVaYeVcGzFsp8liReI=
=vt2N
-----END PGP SIGNATURE-----
author | mpm@selenic.com |
---|---|
date | Sat, 02 Jul 2005 19:15:05 -0800 |
parents | 9bdf5ae63d1f |
children | 11578820b5d7 |
files | templates/changelogentry.tmpl templates/header.tmpl templates/map |
diffstat | 3 files changed, 31 insertions(+), 23 deletions(-) [+] |
line wrap: on
line diff
--- a/templates/changelogentry.tmpl Sat Jul 02 19:13:33 2005 -0800 +++ b/templates/changelogentry.tmpl Sat Jul 02 19:15:05 2005 -0800 @@ -1,22 +1,24 @@ -<div class="parity#parity#"> -<table width="100%" cellpadding="0" cellspacing="0"> -<tr> - <td align="right" width="15%"><b>#date|age# ago: </b></td> - <td><b>#desc|firstline|escape#</b></td></tr> -<tr> - <td align="right">changeset #rev#: </td> - <td><a href="?cmd=changeset;node=#node#">#node|short#</a></td></tr> -#parent# -#changelogtag# -<tr> - <td align="right">author: </td> - <td>#author|obfuscate#</td></tr> -<tr> - <td align="right">date: </td> - <td>#date|date#</td></tr> -<tr> - <td align="right" valign="top"><a href="?cmd=manifest;manifest=#manifest#;path=/">files</a>: </td> - <td>#files#</td></tr> -</table> -</div> - +<table class="changelogEntry parity#parity#"> + <tr> + <th class="age">#date|age# ago:</th> + <th class="firstline">#desc|firstline|escape#</th> + </tr> + <tr> + <th class="changesetRev">changeset #rev#:</th> + <td class="changesetNode"><a href="?cmd=changeset;node=#node#">#node|short#</a></td> + </tr> + #parent# + #changelogtag# + <tr> + <th class="author">author:</th> + <td class="author">#author|obfuscate#</td> + </tr> + <tr> + <th class="date">date:</th> + <td class="date">#date|date#</td> + </tr> + <tr> + <th class="files"><a href="?cmd=manifest;manifest=#manifest#;path=/">files</a>:</th> + <td class="files">#files#</td> + </tr> +</table> \ No newline at end of file
--- a/templates/header.tmpl Sat Jul 02 19:13:33 2005 -0800 +++ b/templates/header.tmpl Sat Jul 02 19:15:05 2005 -0800 @@ -25,5 +25,11 @@ color: white; text-align: right; } + +/* Changelog entries */ +.changelogEntry { width: 100%; } +.changelogEntry th { font-weight: normal; text-align: right; vertical-align: top; width: 15%;} +.changelogEntry th.age, .changelogEntry th.firstline { font-weight: bold; } +.changelogEntry th.firstline { text-align: left; width: inherit; } --> </style>
--- a/templates/map Sat Jul 02 19:13:33 2005 -0800 +++ b/templates/map Sat Jul 02 19:15:05 2005 -0800 @@ -23,7 +23,7 @@ difflineminus = "<span class="minusline">#line|escape#</span>" difflineat = "<span class="atline">#line|escape#</span>" diffline = "#line|escape#" -changelogparent = "<tr><td align="right">parent #rev#: </td><td><a href="?cmd=changeset;node=#node#">#node|short#</a></td></tr>" +changelogparent = "<tr><th class="parent">parent #rev#:</th><td><a href="?cmd=changeset;node=#node#">#node|short#</a></td></tr>" changesetparent = "<tr><td class="metatag">parent #rev#:</td><td><a href="?cmd=changeset;node=#node#">#node|short#</a></td></tr>" filerevparent = "<tr><td class="metatag">parent:</td><td><a href="?cmd=file;file=#file#;filenode=#node#">#node|short#</a></td></tr>" fileannotateparent = "<tr><td class="metatag">parent:</td><td><a href="?cmd=annotate;file=#file#;filenode=#node#">#node|short#</a></td></tr>"