changeset 4458:e19d9b1223ee

hgweb: manifest: pass parity for the '[up]' link
author Josef "Jeff" Sipek <jeffpc@josefsipek.net>
date Tue, 29 May 2007 05:08:01 -0400
parents 7b2e808984e0
children 2ee0e935f86d
files mercurial/hgweb/hgweb_mod.py templates/gitweb/manifest.tmpl templates/manifest.tmpl
diffstat 3 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py	Tue May 29 04:57:12 2007 -0400
+++ b/mercurial/hgweb/hgweb_mod.py	Tue May 29 05:08:01 2007 -0400
@@ -484,6 +484,7 @@
                      node=hex(node),
                      path=abspath,
                      up=_up(abspath),
+                     upparity=self.stripes(0),
                      fentries=filelist,
                      dentries=dirlist,
                      archives=self.archivelist(hex(node)))
--- a/templates/gitweb/manifest.tmpl	Tue May 29 04:57:12 2007 -0400
+++ b/templates/gitweb/manifest.tmpl	Tue May 29 05:08:01 2007 -0400
@@ -20,7 +20,7 @@
 
 <div class="title" >#path|escape#</div>
 <table cellspacing="0">
-<tr class="light">
+<tr class="parity#upparity#">
 <td style="font-family:monospace">drwxr-xr-x</td>
 <td style="font-family:monospace"></td>
 <td><a href="{url}file/#node|short##up|urlescape#{sessionvars%urlparameter}">[up]</a></td>
--- a/templates/manifest.tmpl	Tue May 29 04:57:12 2007 -0400
+++ b/templates/manifest.tmpl	Tue May 29 05:08:01 2007 -0400
@@ -14,7 +14,7 @@
 <h2>manifest for changeset #node|short#: #path|escape#</h2>
 
 <table cellpadding="0" cellspacing="0">
-<tr class="parity1">
+<tr class="parity#upparity#">
   <td><tt>drwxr-xr-x</tt>&nbsp;
   <td>&nbsp;
   <td><a href="#url#file/#node|short##up|urlescape#{sessionvars%urlparameter}">[up]</a>