coal: even more tweaks
authorMatt Mackall <mpm@selenic.com>
Wed, 02 Apr 2008 18:51:06 -0500
changeset 6454 eec89a03db08
parent 6453 cb16217ff4d8
child 6458 da7524149787
coal: even more tweaks - rearrange file browser columns - add folder and file icons - make browse table uniformly monospaced - use lowercase consistently for column heads - fix search container div
templates/coal/changeset.tmpl
templates/coal/fileannotate.tmpl
templates/coal/filediff.tmpl
templates/coal/filelog.tmpl
templates/coal/filerevision.tmpl
templates/coal/manifest.tmpl
templates/coal/map
templates/coal/search.tmpl
templates/coal/shortlog.tmpl
templates/static/coal-file.png
templates/static/coal-folder.png
templates/static/style-coal.css
--- a/templates/coal/changeset.tmpl	Wed Apr 02 18:47:19 2008 -0500
+++ b/templates/coal/changeset.tmpl	Wed Apr 02 18:51:06 2008 -0500
@@ -59,8 +59,8 @@
 <div class="overflow">
 <table class="bigtable">
 <tr>
- <th class="lineno">Line</th>
- <th class="source">Diff</th>
+ <th class="lineno">line</th>
+ <th class="source">diff</th>
 </tr>
 </table>
 {diff}
--- a/templates/coal/fileannotate.tmpl	Wed Apr 02 18:47:19 2008 -0500
+++ b/templates/coal/fileannotate.tmpl	Wed Apr 02 18:51:06 2008 -0500
@@ -63,9 +63,9 @@
 <div class="overflow">
 <table class="bigtable">
 <tr>
- <th class="annotate">Rev</th>
- <th class="lineno">Line</th>
- <th class="line">Source</th>
+ <th class="annotate">rev</th>
+ <th class="lineno">line</th>
+ <th class="line">source</th>
 </tr>
 {annotate%annotateline}
 </table>
--- a/templates/coal/filediff.tmpl	Wed Apr 02 18:47:19 2008 -0500
+++ b/templates/coal/filediff.tmpl	Wed Apr 02 18:51:06 2008 -0500
@@ -60,8 +60,8 @@
 <div class="overflow">
 <table class="bigtable">
 <tr>
- <th class="lineno">Line</th>
- <th class="source">Diff</th>
+ <th class="lineno">line</th>
+ <th class="source">diff</th>
 </tr>
 <table>
 {diff}
--- a/templates/coal/filelog.tmpl	Wed Apr 02 18:47:19 2008 -0500
+++ b/templates/coal/filelog.tmpl	Wed Apr 02 18:51:06 2008 -0500
@@ -45,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</td>
+  <th class="author">author</td>
+  <th class="description">description</td>
  </tr>
 {entries%filelogentry}
 </table>
--- a/templates/coal/filerevision.tmpl	Wed Apr 02 18:47:19 2008 -0500
+++ b/templates/coal/filerevision.tmpl	Wed Apr 02 18:51:06 2008 -0500
@@ -61,8 +61,8 @@
 <div class="overflow">
 <table class="bigtable">
 <tr>
- <th class="lineno">Line</th>
- <th class="source">Source</th>
+ <th class="lineno">line</th>
+ <th class="source">source</th>
 </tr>
 {text%fileline}
 </table>
--- a/templates/coal/manifest.tmpl	Wed Apr 02 18:47:19 2008 -0500
+++ b/templates/coal/manifest.tmpl	Wed Apr 02 18:51:06 2008 -0500
@@ -34,16 +34,14 @@
 
 <table class="bigtable">
 <tr>
+  <th class="name">name</th>
+  <th class="size">size</th>
   <th class="permissions">permissions</th>
-  <th class="date">date</th>
-  <th class="size">size</th>
-  <th class="name">name</th>
 </tr>
-<tr class="parity{upparity}">
-  <td class="permissions">drwxr-xr-x
-  <td class="date">
-  <td class="size">
-  <td class="name"><a href="{url}file/{node|short}{up|urlescape}{sessionvars%urlparameter}">[up]</a>
+<tr class="fileline parity{upparity}">
+  <td class="name"><a href="{url}file/{node|short}{up|urlescape}{sessionvars%urlparameter}">[up]</a></td>
+  <td class="size"></td>
+  <td class="permissions">drwxr-xr-x</td>
 </tr>
 {dentries%direntry}
 {fentries%fileentry}
--- a/templates/coal/map	Wed Apr 02 18:47:19 2008 -0500
+++ b/templates/coal/map	Wed Apr 02 18:51:06 2008 -0500
@@ -20,8 +20,8 @@
 changeset = changeset.tmpl
 manifest = manifest.tmpl
 
-direntry = '<tr class="parity{parity}"><td class="permissions">drwxr-xr-x</td><td class="date"></td><td class="size"></td><td class="name"><a href="{url}file/{node|short}{path|urlescape}{sessionvars%urlparameter}">{basename|escape}/</a></td></tr>'
-fileentry = '<tr class="parity{parity}"><td class="permissions">{permissions|permissions}&nbsp;</td><td class="date">{date|isodate}&nbsp;</td><td class="size">{size}&nbsp;</td><td clase="filename"><a href="{url}file/{node|short}/{file|urlescape}#l1{sessionvars%urlparameter}">{basename|escape}</a></td></tr>'
+direntry = '<tr class="fileline parity{parity}"><td class="name"><img src="{staticurl}coal-folder.png"> <a href="{url}file/{node|short}{path|urlescape}{sessionvars%urlparameter}">{basename|escape}/</a><td class="size"></td><td class="permissions">drwxr-xr-x</td></tr>'
+fileentry = '<tr class="fileline parity{parity}"><td clase="filename"><img src="{staticurl}coal-file.png"> <a href="{url}file/{node|short}/{file|urlescape}#l1{sessionvars%urlparameter}">{basename|escape}</a></td><td class="size">{size}</td><td class="permissions">{permissions|permissions}</td></tr>'
 
 filerevision = filerevision.tmpl
 fileannotate = fileannotate.tmpl
--- a/templates/coal/search.tmpl	Wed Apr 02 18:47:19 2008 -0500
+++ b/templates/coal/search.tmpl	Wed Apr 02 18:51:06 2008 -0500
@@ -3,7 +3,7 @@
 </head>
 <body>
 
-<div class="content">
+<div class="container">
 <div class="menu">
 <div class="logo">
 <a href="http://www.selenic.com/mercurial/">
@@ -27,9 +27,9 @@
 
 <table class="bigtable">
  <tr> 
-  <th class="age">Age</td>
-  <th class="author">Author</td>
-  <th class="description">Description</td>
+  <th class="age">age</td>
+  <th class="author">author</td>
+  <th class="description">description</td>
  </tr>
 {entries}
 </table>
--- a/templates/coal/shortlog.tmpl	Wed Apr 02 18:47:19 2008 -0500
+++ b/templates/coal/shortlog.tmpl	Wed Apr 02 18:51:06 2008 -0500
@@ -40,9 +40,9 @@
 
 <table class="bigtable">
  <tr> 
-  <th class="age">Age</td>
-  <th class="author">Author</td>
-  <th class="description">Description</td>
+  <th class="age">age</td>
+  <th class="author">author</td>
+  <th class="description">description</td>
  </tr>
 {entries%shortlogentry}
 </table>
Binary file templates/static/coal-file.png has changed
Binary file templates/static/coal-folder.png has changed
--- a/templates/static/style-coal.css	Wed Apr 02 18:47:19 2008 -0500
+++ b/templates/static/style-coal.css	Wed Apr 02 18:51:06 2008 -0500
@@ -85,11 +85,6 @@
   vertical-align: text-baseline;
 }
 
-.navigate a { 
-  #padding: 2pt;
-  #background-color: #f5f5f5;
-}
-
 /* Common */
 pre { margin: 0; }
 
@@ -128,13 +123,12 @@
 .bigtable .lineno a { color: #999; font-size: smaller; font-family: monospace;}
 .bigtable td.source { font-family: monospace; white-space: pre; }
 .bigtable .permissions { width: 8em; text-align: left;}
-.bigtable td.permissions { font-family: monospace; }
-.bigtable .date { width: 10em; text-align: left;}
 .bigtable .size { width: 5em; text-align: right; }
-.bigtable td.size { font-family: monospace; }
 .bigtable .annotate { text-align: right; padding-right: }
 .bigtable td.annotate { font-size: smaller; }
 
+.fileline { font-family: monospace; }
+
 /* Changeset entry */
 #changesetEntry { 
   border-collapse: collapse;