Mercurial > hg
changeset 3179:76ab39df0917
gitweb: cosmetic fixes.
Fix the padding around the changelog description.
Alternate row colours for the changeset file list.
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Wed, 27 Sep 2006 12:08:33 -0700 |
parents | 0d0d7317bbc8 |
children | eb0906ebba81 3637d5d17cbc |
files | mercurial/hgweb/hgweb_mod.py templates/changeset-gitweb.tmpl templates/map-gitweb |
diffstat | 3 files changed, 7 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py Wed Sep 27 12:08:32 2006 -0700 +++ b/mercurial/hgweb/hgweb_mod.py Wed Sep 27 12:08:33 2006 -0700 @@ -292,9 +292,12 @@ 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)
--- a/templates/changeset-gitweb.tmpl Wed Sep 27 12:08:32 2006 -0700 +++ b/templates/changeset-gitweb.tmpl Wed Sep 27 12:08:33 2006 -0700 @@ -27,10 +27,10 @@ #changesettag# </table></div> -<div class="title_text"> +<div class="page_body"> #desc|strip|escape|addbreaks# </div> - +<div class="list_head"></div> <div class="title_text"> <table cellspacing="0"> #files#
--- a/templates/map-gitweb Wed Sep 27 12:08:32 2006 -0700 +++ b/templates/map-gitweb Wed Sep 27 12:08:33 2006 -0700 @@ -8,7 +8,7 @@ naventry = '<a href="?cmd=changelog;rev=#rev#;style=gitweb">#label|escape#</a> ' navshortentry = '<a href="?cmd=shortlog;rev=#rev#;style=gitweb">#label|escape#</a> ' filedifflink = '<a href="?cmd=filediff;node=#node#;file=#file|urlescape#;style=gitweb">#file|escape#</a> ' -filenodelink = '<tr class="light"><td><a class="list" href="">#file|escape#</a></td><td></td><td class="link"><a href="?cmd=file;filenode=#filenode#;file=#file|urlescape#;style=gitweb">file</a> | <a href="?fa=#filenode|short#;file=#file|urlescape#;style=gitweb">annotate</a> | <!-- FIXME: <a href="?fd=#filenode|short#;file=#file|urlescape#;style=gitweb">diff</a> | --> <a href="?cmd=filelog;filenode=#filenode|short#;file=#file|urlescape#;style=gitweb">revisions</a></td></tr>' +filenodelink = '<tr class="parity#parity#"><td><a class="list" href="">#file|escape#</a></td><td></td><td class="link"><a href="?cmd=file;filenode=#filenode#;file=#file|urlescape#;style=gitweb">file</a> | <a href="?fa=#filenode|short#;file=#file|urlescape#;style=gitweb">annotate</a> | <!-- FIXME: <a href="?fd=#filenode|short#;file=#file|urlescape#;style=gitweb">diff</a> | --> <a href="?cmd=filelog;filenode=#filenode|short#;file=#file|urlescape#;style=gitweb">revisions</a></td></tr>' fileellipses = '...' changelogentry = changelogentry-gitweb.tmpl searchentry = changelogentry-gitweb.tmpl