# HG changeset patch # User Thomas Arendsen Hein # Date 1125245608 -7200 # Node ID 92525920ad291a2f9cc9248ac0fef8134f51926b # Parent a67982e64109087eb728b5cb7a45a37c5785639b Completed renaming author to contact in hgwebdir: Prefer [web] contact = foo instead of author, but still accept the old name. Adjusted template to show obfuscated contact. Drop bogus email entry. diff -r a67982e64109 -r 92525920ad29 mercurial/hgweb.py --- a/mercurial/hgweb.py Sun Aug 28 17:55:15 2005 +0200 +++ b/mercurial/hgweb.py Sun Aug 28 18:13:28 2005 +0200 @@ -948,7 +948,8 @@ url = os.environ["REQUEST_URI"] + "/" + name url = url.replace("//", "/") - yield dict(author=get("web", "author", "unknown"), + yield dict(contact=get("web", "contact") or + get("web", "author", "unknown"), name=get("web", "name", name), url=url, parity=parity, diff -r a67982e64109 -r 92525920ad29 templates/map --- a/templates/map Sun Aug 28 17:55:15 2005 +0200 +++ b/templates/map Sun Aug 28 18:13:28 2005 +0200 @@ -35,7 +35,7 @@ changesettag = "tag:#tag#" filediffparent = "parent #rev#:#node|short#" filelogparent = "parent #rev#: #node|short#" -indexentry = "#name##shortdesc##author##email|obfuscate##lastupdate|age# agoRSS" +indexentry = "#name##shortdesc##contact|obfuscate##lastupdate|age# agoRSS" index = index.tmpl archiveentry = "#type# " notfound = notfound.tmpl