changeset 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 899b619a7eb2
files mercurial/hgweb.py templates/map
diffstat 2 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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,
--- 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 = "<tr><th class="tag">tag:</th><td class="tag">#tag#</td></tr>"
 filediffparent = "<tr><th class="parent">parent #rev#:</th><td class="parent"><a href="?cmd=changeset;node=#node#">#node|short#</a></td></tr>"
 filelogparent = "<tr><td align="right">parent #rev#:&nbsp;</td><td><a href="?cmd=file;file=#file#;filenode=#node#">#node|short#</a></td></tr>"
-indexentry = "<tr class="parity#parity#"><td><a href="#url#">#name#</a></td><td>#shortdesc#</td><td>#author#<i>#email|obfuscate#</i></td><td>#lastupdate|age# ago</td><td><a href="#url#?cmd=changelog;style=rss">RSS</a></td></tr>"
+indexentry = "<tr class="parity#parity#"><td><a href="#url#">#name#</a></td><td>#shortdesc#</td><td>#contact|obfuscate#</td><td>#lastupdate|age# ago</td><td><a href="#url#?cmd=changelog;style=rss">RSS</a></td></tr>"
 index = index.tmpl
 archiveentry = "<a href="?cmd=archive;node=#node#;type=#type#">#type#</a> "
 notfound = notfound.tmpl