Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/hgweb/hgwebdir_mod.py @ 34612:c2cb6be4212f
configitems: register the 'web.logourl' config
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Wed, 11 Oct 2017 04:16:17 +0200 |
parents | c879fc7bd71f |
children | b2316265a32e |
comparison
equal
deleted
inserted
replaced
34611:c879fc7bd71f | 34612:c2cb6be4212f |
---|---|
508 if style == styles[0]: | 508 if style == styles[0]: |
509 vars['style'] = style | 509 vars['style'] = style |
510 | 510 |
511 start = url[-1] == '?' and '&' or '?' | 511 start = url[-1] == '?' and '&' or '?' |
512 sessionvars = webutil.sessionvars(vars, start) | 512 sessionvars = webutil.sessionvars(vars, start) |
513 logourl = config('web', 'logourl', 'https://mercurial-scm.org/') | 513 logourl = config('web', 'logourl') |
514 logoimg = config('web', 'logoimg') | 514 logoimg = config('web', 'logoimg') |
515 staticurl = config('web', 'staticurl') or url + 'static/' | 515 staticurl = config('web', 'staticurl') or url + 'static/' |
516 if not staticurl.endswith('/'): | 516 if not staticurl.endswith('/'): |
517 staticurl += '/' | 517 staticurl += '/' |
518 | 518 |