changeset 3478:2896ce093ec4

Add #motd# to gitweb pages. Needs to pass self.motd to index template, too.
author Thomas Arendsen Hein <thomas@intevation.de>
date Sat, 21 Oct 2006 20:19:46 +0200
parents 9fab252a7545
children bbfb392b2b1a
files mercurial/hgweb/hgwebdir_mod.py templates/gitweb/footer.tmpl templates/gitweb/index.tmpl templates/static/style-gitweb.css
diffstat 4 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hgweb/hgwebdir_mod.py	Thu Oct 19 16:15:01 2006 -0700
+++ b/mercurial/hgweb/hgwebdir_mod.py	Sat Oct 21 20:19:46 2006 +0200
@@ -202,4 +202,5 @@
                         for column in sortable]
                 req.write(tmpl("index", entries=entries,
                                sortcolumn=sortcolumn, descending=descending,
+                               motd=self.motd,
                                **dict(sort)))
--- a/templates/gitweb/footer.tmpl	Thu Oct 19 16:15:01 2006 -0700
+++ b/templates/gitweb/footer.tmpl	Sat Oct 21 20:19:46 2006 +0200
@@ -1,6 +1,8 @@
 <div class="page_footer">
 <div class="page_footer_text">#repo|escape#</div>
 <a class="rss_logo" href="#url#rss-log">RSS</a>
+<br />
+#motd#
 </div>
 </body>
 </html>
--- a/templates/gitweb/index.tmpl	Thu Oct 19 16:15:01 2006 -0700
+++ b/templates/gitweb/index.tmpl	Sat Oct 21 20:19:46 2006 +0200
@@ -18,6 +18,7 @@
     #entries%indexentry#
 </table>
 <div class="page_footer">
+#motd#
 </div>
 </body>
 </html>
--- a/templates/static/style-gitweb.css	Thu Oct 19 16:15:01 2006 -0700
+++ b/templates/static/style-gitweb.css	Sat Oct 21 20:19:46 2006 +0200
@@ -7,7 +7,7 @@
 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 {