[PATCH] Tags template cleanup
authormpm@selenic.com
Sat, 02 Jul 2005 19:16:51 -0800
changeset 586 11578820b5d7
parent 585 51626d888526
child 587 62a7b679a9ca
[PATCH] Tags template cleanup -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [PATCH] Tags template cleanup From: Edouard Gomez <edouard.gomez@gmail.com> Tags template cleanup This page lists all tags, thus using divs doesn't structure well the information. Better use a list (ul). Each tag becomes a li element. The li element also carries the parity information. As font style tags are highly deprecated in newer HTML variants get rid of the tt element, relaced by a simple span that gets a CSS class that mimics tt default style (monospaced text) Added CSS classes required to match old style. manifest hash: f8943b8270e20966a04111e7205deefedd8b7075 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCx1ijywK+sNU5EO8RAjaAAJoCVaD37YUC6DueL6Kd5D9aoCF8bQCfSWw0 xFVkpEtnr6ST4eyJjR8K17U= =nphb -----END PGP SIGNATURE-----
templates/header.tmpl
templates/map
templates/tags.tmpl
--- a/templates/header.tmpl	Sat Jul 02 19:15:05 2005 -0800
+++ b/templates/header.tmpl	Sat Jul 02 19:16:51 2005 -0800
@@ -31,5 +31,10 @@
 .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; }
+
+/* Tag entries */
+#tagEntries { list-style: none; margin: 0; padding: 0; }
+#tagEntries .tagEntry { list-style: none; margin: 0; padding: 0; }
+#tagEntries .tagEntry span.node { font-family: monospace; }
 -->
 </style>
--- a/templates/map	Sat Jul 02 19:15:05 2005 -0800
+++ b/templates/map	Sat Jul 02 19:16:51 2005 -0800
@@ -28,7 +28,7 @@
 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>"
 tags = tags.tmpl
-tagentry = "<div class="parity#parity#"><tt>#node#</tt> <a href="?cmd=changeset;node=#node#">#tag#</a><br /></div>"
+tagentry = "<li class="tagEntry parity#parity#"><span class="node">#node#</span> <a href="?cmd=changeset;node=#node#">#tag#</a></li>"
 diffblock = "<div class="parity#parity#">#lines#</div>"
 changelogtag = "<tr><td align="right">tag:&nbsp;</td><td>#tag#</td></tr>"
 changesettag = "<tr><td class="metatag">tag:&nbsp;</td><td>#tag#</td></tr>"
--- a/templates/tags.tmpl	Sat Jul 02 19:15:05 2005 -0800
+++ b/templates/tags.tmpl	Sat Jul 02 19:16:51 2005 -0800
@@ -10,6 +10,8 @@
 
 <h2>tags:</h2>
 
+<ul id="tagEntries">
 #entries#
+</ul>
 
 #footer#