comparison mercurial/hgweb/webcommands.py @ 34238:a6c18628dff1

configitems: register the 'web.description' config
author Boris Feld <boris.feld@octobus.net>
date Fri, 30 Jun 2017 03:45:43 +0200
parents 08346a8fa65f
children db63872e10cc
comparison
equal deleted inserted replaced
34237:131f8cd2c2b4 34238:a6c18628dff1
717 tip = web.repo['tip'] 717 tip = web.repo['tip']
718 count = len(web.repo) 718 count = len(web.repo)
719 start = max(0, count - web.maxchanges) 719 start = max(0, count - web.maxchanges)
720 end = min(count, start + web.maxchanges) 720 end = min(count, start + web.maxchanges)
721 721
722 desc = web.config("web", "description")
723 if not desc:
724 desc = 'unknown'
722 return tmpl("summary", 725 return tmpl("summary",
723 desc=web.config("web", "description", "unknown"), 726 desc=desc,
724 owner=get_contact(web.config) or "unknown", 727 owner=get_contact(web.config) or "unknown",
725 lastchange=tip.date(), 728 lastchange=tip.date(),
726 tags=tagentries, 729 tags=tagentries,
727 bookmarks=bookmarks, 730 bookmarks=bookmarks,
728 branches=webutil.branchentries(web.repo, web.stripecount, 10), 731 branches=webutil.branchentries(web.repo, web.stripecount, 10),