# HG changeset patch # User mpm@selenic.com # Date 1120451615 28800 # Node ID 56d81b303656358e26a89e0b0447faaee5423171 # Parent 8865eb8ade995698937044fe8c0b9bd73dba5fb5 Various HTML cleanups -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Various HTML cleanups From: Edouard Gomez Cleaned up the changeset summary table differentiating title cells from data cells using th and td. Added semantic classes. Changed the big pre tag into a div that mimics pre tag style (that is monospace font and white space preformated). This is required because pre is an inline element, and thus cannot be the parent of block elements as div (diffblock). I replaced all these div blocks by a series ul lists as patches can be seen as lists of changes in versioned files. If someone has a better semantic to propose, i'd be pleased he drops me an email about this patch. - -- Cleaned up the filediff summary table differentiating title cells from data cells using th and td. Added semantic classes. - -- Keep style unchanged for changeset template As promised no changes in style. This one got through my eyes + brain checking... sorry. manifest hash: 68dd5c1ac71aa6a5932fb209d48df5fc0c78643b -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCyLwfywK+sNU5EO8RAtE9AJ0cxl80eF3zpBWLn8OkoSs7dkZOTgCgtYto j7T/iRk0Hq4Q0mjdos7FvYU= =KOP2 -----END PGP SIGNATURE----- diff -r 8865eb8ade99 -r 56d81b303656 templates/changeset.tmpl --- a/templates/changeset.tmpl Sun Jul 03 20:21:37 2005 -0800 +++ b/templates/changeset.tmpl Sun Jul 03 20:33:35 2005 -0800 @@ -12,34 +12,38 @@

changeset: #desc|escape|firstline#

- +
- - + + + #parent# #changesettag# - - + + + - - + + + - - + + - - + + - - + + +
changeset #rev#:#node|short#
changeset #rev#:#node|short#
manifest:#manifest|short#
manifest:#manifest|short#
author:#author|obfuscate#
author:#author|obfuscate#
date:#date|date# (#date|age# ago)
date:#date|date# (#date|age# ago)
files:#files#
files:#files#
description:#desc|escape|addbreaks#
description:#desc|escape|addbreaks#
-
+
#diff# -
+ - diff -r 8865eb8ade99 -r 56d81b303656 templates/filediff.tmpl --- a/templates/filediff.tmpl Sun Jul 03 20:21:37 2005 -0800 +++ b/templates/filediff.tmpl Sun Jul 03 20:33:35 2005 -0800 @@ -15,16 +15,17 @@

#file#

- +
- - + + + #parent#
revision #rev#:#node|short#
revision #rev#:#node|short#
-
+
#diff# -
+ #footer# diff -r 8865eb8ade99 -r 56d81b303656 templates/header.tmpl --- a/templates/header.tmpl Sun Jul 03 20:21:37 2005 -0800 +++ b/templates/header.tmpl Sun Jul 03 20:33:35 2005 -0800 @@ -26,6 +26,9 @@ text-align: right; } +/* Common */ +.pre { font-family: monospace; white-space: pre; } + /* Changelog entries */ .changelogEntry { width: 100%; } .changelogEntry th { font-weight: normal; text-align: right; vertical-align: top; width: 15%;} @@ -36,5 +39,16 @@ #tagEntries { list-style: none; margin: 0; padding: 0; } #tagEntries .tagEntry { list-style: none; margin: 0; padding: 0; } #tagEntries .tagEntry span.node { font-family: monospace; } + +/* Changeset entry */ +#changesetEntry { } +#changesetEntry th { font-weight: normal; background-color: #888; color: #fff; text-align: right; } +#changesetEntry th.files, #changesetEntry th.description { vertical-align: top; } +#changesetDiff ul, #changesetDiff li { list-style: none; margin: 0; padding: 0; } + +/* File diff view */ +#filediffEntry { } +#filediffEntry th { font-weight: normal; background-color: #888; color: #fff; text-align: right; } +#fileDiff ul, #fileDiff li { list-style: none; margin: 0; padding: 0; } --> diff -r 8865eb8ade99 -r 56d81b303656 templates/map --- a/templates/map Sun Jul 03 20:21:37 2005 -0800 +++ b/templates/map Sun Jul 03 20:33:35 2005 -0800 @@ -19,18 +19,18 @@ fileline = "
#linenumber# #line|escape#
" filelogentry = filelogentry.tmpl annotateline = "#author|obfuscate#@#rev#
#line|escape#
" -difflineplus = "#line|escape#" -difflineminus = "#line|escape#" -difflineat = "#line|escape#" -diffline = "#line|escape#" -changelogparent = "parent #rev#:#node|short#" -changesetparent = "parent #rev#:#node|short#" +difflineplus = "
  • #line|escape#
  • " +difflineminus = "
  • #line|escape#
  • " +difflineat = "
  • #line|escape#
  • " +diffline = "
  • #line|escape#
  • " +changelogparent = "parent #rev#:#node|short#" +changesetparent = "parent #rev#:#node|short#" filerevparent = "parent:#node|short#" fileannotateparent = "parent:#node|short#" tags = tags.tmpl tagentry = "
  • #node# #tag#
  • " -diffblock = "
    #lines#
    " -changelogtag = "tag: #tag#" -changesettag = "tag: #tag#" -filediffparent = "parent #rev#:#node|short#" +diffblock = "" +changelogtag = "tag:#tag#" +changesettag = "tag:#tag#" +filediffparent = "parent #rev#:#node|short#" filelogparent = "parent #rev#: #node|short#"