# HG changeset patch # User Brendan Cully # Date 1159384113 25200 # Node ID 76ab39df0917fb88b48daaf7075e1d56a9444e63 # Parent 0d0d7317bbc8542754bd47c306829ffe8b71a3d3 gitweb: cosmetic fixes. Fix the padding around the changelog description. Alternate row colours for the changeset file list. diff --git a/mercurial/hgweb/hgweb_mod.py b/mercurial/hgweb/hgweb_mod.py --- a/mercurial/hgweb/hgweb_mod.py +++ b/mercurial/hgweb/hgweb_mod.py @@ -292,9 +292,12 @@ class hgweb(object): files = [] mf = self.repo.manifest.read(changes[0]) + parity = 0 for f in changes[3]: files.append(self.t("filenodelink", - filenode=hex(mf.get(f, nullid)), file=f)) + filenode=hex(mf.get(f, nullid)), file=f, + parity=parity)) + parity = 1 - parity def diff(**map): yield self.diff(p1, n, None) diff --git a/templates/changeset-gitweb.tmpl b/templates/changeset-gitweb.tmpl --- a/templates/changeset-gitweb.tmpl +++ b/templates/changeset-gitweb.tmpl @@ -27,10 +27,10 @@ #changesettag# -
+
#desc|strip|escape|addbreaks#
- +
#files# diff --git a/templates/map-gitweb b/templates/map-gitweb --- a/templates/map-gitweb +++ b/templates/map-gitweb @@ -8,7 +8,7 @@ error = error-gitweb.tmpl naventry = '#label|escape# ' navshortentry = '#label|escape# ' filedifflink = '#file|escape# ' -filenodelink = '' +filenodelink = '' fileellipses = '...' changelogentry = changelogentry-gitweb.tmpl searchentry = changelogentry-gitweb.tmpl
#file|escape#
#file|escape#