diff mercurial/hgweb/hgwebdir_mod.py @ 14913:44382887d012

hgweb: add a "web/logoimg" setting to customize the web logo image This change complements the existing web/logourl setting, and lets the user customize the logo image that is shown on many of the hg server pages. If this setting is not set, hglogo.png is used.
author Angel Ezquerra <angel.ezquerra@gmail.com>
date Thu, 21 Jul 2011 15:10:16 +0200
parents 924c82157d46
children b55c1c6a793e
line wrap: on
line diff
--- a/mercurial/hgweb/hgwebdir_mod.py	Thu Jul 21 11:05:26 2011 +0200
+++ b/mercurial/hgweb/hgwebdir_mod.py	Thu Jul 21 15:10:16 2011 +0200
@@ -348,6 +348,7 @@
         start = url[-1] == '?' and '&' or '?'
         sessionvars = webutil.sessionvars(vars, start)
         logourl = config('web', 'logourl', 'http://mercurial.selenic.com/')
+        logoimg = config('web', 'logoimg', 'hglogo.png')
         staticurl = config('web', 'staticurl') or url + 'static/'
         if not staticurl.endswith('/'):
             staticurl += '/'
@@ -358,6 +359,7 @@
                                              "motd": motd,
                                              "url": url,
                                              "logourl": logourl,
+                                             "logoimg": logoimg,
                                              "staticurl": staticurl,
                                              "sessionvars": sessionvars})
         return tmpl