hgweb: improve shortlog formatting
authorMatt Mackall <mpm@selenic.com>
Mon, 25 Jun 2007 11:30:05 -0500
changeset 4703 bc63247c66e9
parent 4702 18e91c9def0c
child 4704 9072fd94ab4e
hgweb: improve shortlog formatting shorten author with |person don't shrink font (default font is presumed to be preferred reading size) set widths based on font ems rather than page percents.
templates/shortlogentry.tmpl
templates/static/style.css
--- a/templates/shortlogentry.tmpl	Mon Jun 25 01:26:44 2007 -0500
+++ b/templates/shortlogentry.tmpl	Mon Jun 25 11:30:05 2007 -0500
@@ -1,7 +1,7 @@
 <table class="slogEntry parity#parity#">
  <tr>
   <td class="age">#date|age#</td>
-  <td class="author">#author|obfuscate#</td>
+  <td class="author">#author|person#</td>
   <td class="node"><a href="#url#rev/#node|short#{sessionvars%urlparameter}">#desc|strip|firstline|escape#</a></td>
  </tr>
 </table>
--- a/templates/static/style.css	Mon Jun 25 01:26:44 2007 -0500
+++ b/templates/static/style.css	Mon Jun 25 11:30:05 2007 -0500
@@ -58,10 +58,10 @@
 .logEntry th.firstline { text-align: left; width: inherit; }
 
 /* Shortlog entries */
-.slogEntry { width: 100%; font-size: smaller; }
-.slogEntry .age { width: 7%; }
+.slogEntry { width: 100%; }
+.slogEntry .age { width: 8em; }
 .slogEntry td { font-weight: normal; text-align: left; vertical-align: top; }
-.slogEntry td.author { width: 35%; }
+.slogEntry td.author { width: 15em; }
 
 /* Tag entries */
 #tagEntries { list-style: none; margin: 0; padding: 0; }