Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb.py @ 1132:92525920ad29
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 <i>email</i> entry.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Sun, 28 Aug 2005 18:13:28 +0200 |
parents | a67982e64109 |
children | 51f26e856f3d |
comparison
equal
deleted
inserted
replaced
1131:a67982e64109 | 1132:92525920ad29 |
---|---|
946 get = repo.ui.config | 946 get = repo.ui.config |
947 | 947 |
948 url = os.environ["REQUEST_URI"] + "/" + name | 948 url = os.environ["REQUEST_URI"] + "/" + name |
949 url = url.replace("//", "/") | 949 url = url.replace("//", "/") |
950 | 950 |
951 yield dict(author=get("web", "author", "unknown"), | 951 yield dict(contact=get("web", "contact") or |
952 get("web", "author", "unknown"), | |
952 name=get("web", "name", name), | 953 name=get("web", "name", name), |
953 url=url, | 954 url=url, |
954 parity=parity, | 955 parity=parity, |
955 shortdesc=get("web", "description", "unknown"), | 956 shortdesc=get("web", "description", "unknown"), |
956 lastupdate=os.stat(os.path.join(path, ".hg", | 957 lastupdate=os.stat(os.path.join(path, ".hg", |