# HG changeset patch # User Thomas Arendsen Hein # Date 1161454786 -7200 # Node ID 2896ce093ec42b480f4fedaf62f7f2db9330c2f5 # Parent 9fab252a754582f8004538f6480b9030cb8add57 Add #motd# to gitweb pages. Needs to pass self.motd to index template, too. diff --git a/mercurial/hgweb/hgwebdir_mod.py b/mercurial/hgweb/hgwebdir_mod.py --- a/mercurial/hgweb/hgwebdir_mod.py +++ b/mercurial/hgweb/hgwebdir_mod.py @@ -202,4 +202,5 @@ class hgwebdir(object): for column in sortable] req.write(tmpl("index", entries=entries, sortcolumn=sortcolumn, descending=descending, + motd=self.motd, **dict(sort))) diff --git a/templates/gitweb/footer.tmpl b/templates/gitweb/footer.tmpl --- a/templates/gitweb/footer.tmpl +++ b/templates/gitweb/footer.tmpl @@ -1,6 +1,8 @@ diff --git a/templates/gitweb/index.tmpl b/templates/gitweb/index.tmpl --- a/templates/gitweb/index.tmpl +++ b/templates/gitweb/index.tmpl @@ -18,6 +18,7 @@ #entries%indexentry# diff --git a/templates/static/style-gitweb.css b/templates/static/style-gitweb.css --- a/templates/static/style-gitweb.css +++ b/templates/static/style-gitweb.css @@ -7,7 +7,7 @@ div.page_header a:hover { color:#880000; div.page_nav { padding:8px; } div.page_nav a:visited { color:#0000cc; } div.page_path { padding:8px; border:solid #d9d8d1; border-width:0px 0px 1px} -div.page_footer { height:17px; padding:4px 8px; background-color: #d9d8d1; } +div.page_footer { padding:4px 8px; background-color: #d9d8d1; } div.page_footer_text { float:left; color:#555555; font-style:italic; } div.page_body { padding:8px; } div.title, a.title {