Mercurial > public > mercurial-scm > hg
diff mercurial/hgweb/hgweb_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 | a1c31c64bcd3 |
children | 6ee6ecf1ee89 |
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py Thu Jul 21 11:05:26 2011 +0200 +++ b/mercurial/hgweb/hgweb_mod.py Thu Jul 21 15:10:16 2011 +0200 @@ -235,6 +235,7 @@ port = port != default_port and (":" + port) or "" urlbase = '%s://%s%s' % (proto, req.env['SERVER_NAME'], port) logourl = self.config("web", "logourl", "http://mercurial.selenic.com/") + logoimg = self.config("web", "logoimg", "hglogo.png") staticurl = self.config("web", "staticurl") or req.url + 'static/' if not staticurl.endswith('/'): staticurl += '/' @@ -275,6 +276,7 @@ tmpl = templater.templater(mapfile, defaults={"url": req.url, "logourl": logourl, + "logoimg": logoimg, "staticurl": staticurl, "urlbase": urlbase, "repo": self.reponame,