[PATCH] paper: use monospace font for parents and children cset id's

Adrian Buehlmann adrian at cadifra.com
Mon Apr 25 16:33:24 CDT 2011


# HG changeset patch
# User Adrian Buehlmann <adrian at cadifra.com>
# Date 1303760080 -7200
# Node ID 399c59a799585be1fbbef12759c062ebe0c52193
# Parent  da65edcac72af707922917d912ae1969495206d0
paper: use monospace font for parents and children cset id's

diff --git a/mercurial/templates/paper/changeset.tmpl b/mercurial/templates/paper/changeset.tmpl
--- a/mercurial/templates/paper/changeset.tmpl
+++ b/mercurial/templates/paper/changeset.tmpl
@@ -51,12 +51,12 @@
  <th class="date">date</th>
  <td class="date">{date|date} ({date|age})</td></tr>
 <tr>
- <th class="author">parents</th>
- <td class="author">{parent%changesetparent}</td>
+ <th class="parents">parents</th>
+ <td class="parents">{parent%changesetparent}</td>
 </tr>
 <tr>
- <th class="author">children</th>
- <td class="author">{child%changesetchild}</td>
+ <th class="children">children</th>
+ <td class="children">{child%changesetchild}</td>
 </tr>
 <tr>
  <th class="files">files</th>
diff --git a/mercurial/templates/paper/filerevision.tmpl b/mercurial/templates/paper/filerevision.tmpl
--- a/mercurial/templates/paper/filerevision.tmpl
+++ b/mercurial/templates/paper/filerevision.tmpl
@@ -55,12 +55,12 @@
  <td class="date">{date|date} ({date|age})</td>
 </tr>
 <tr>
- <th class="author">parents</th>
- <td class="author">{parent%filerevparent}</td>
+ <th class="parents">parents</th>
+ <td class="parents">{parent%filerevparent}</td>
 </tr>
 <tr>
- <th class="author">children</th>
- <td class="author">{child%filerevchild}</td>
+ <th class="children">children</th>
+ <td class="children">{child%filerevchild}</td>
 </tr>
 {changesettag}
 </table>
diff --git a/mercurial/templates/static/style-paper.css b/mercurial/templates/static/style-paper.css
--- a/mercurial/templates/static/style-paper.css
+++ b/mercurial/templates/static/style-paper.css
@@ -214,6 +214,11 @@
   font-family: monospace;
 }
 
+td.parents, td.children {
+  font-family: monospace;
+  vertical-align: bottom;
+}
+
 /* Graph */
 div#wrapper {
 	position: relative;


More information about the Mercurial-devel mailing list