comparison mercurial/hgweb/hgweb_mod.py @ 34611:c879fc7bd71f

configitems: register the 'web.logoimg' config
author Boris Feld <boris.feld@octobus.net>
date Wed, 11 Oct 2017 04:16:05 +0200
parents 625202a44d88
children c2cb6be4212f
comparison
equal deleted inserted replaced
34610:f3e090d0c6d6 34611:c879fc7bd71f
167 167
168 port = req.env['SERVER_PORT'] 168 port = req.env['SERVER_PORT']
169 port = port != default_port and (':' + port) or '' 169 port = port != default_port and (':' + port) or ''
170 urlbase = '%s://%s%s' % (proto, req.env['SERVER_NAME'], port) 170 urlbase = '%s://%s%s' % (proto, req.env['SERVER_NAME'], port)
171 logourl = self.config('web', 'logourl', 'https://mercurial-scm.org/') 171 logourl = self.config('web', 'logourl', 'https://mercurial-scm.org/')
172 logoimg = self.config('web', 'logoimg', 'hglogo.png') 172 logoimg = self.config('web', 'logoimg')
173 staticurl = self.config('web', 'staticurl') or req.url + 'static/' 173 staticurl = self.config('web', 'staticurl') or req.url + 'static/'
174 if not staticurl.endswith('/'): 174 if not staticurl.endswith('/'):
175 staticurl += '/' 175 staticurl += '/'
176 176
177 # some functions for the templater 177 # some functions for the templater