changeset 13964:616ad3f6fd33

hgweb: support alternate logo url Clicking on the logo image/text in the hgweb interface brings the user to the Mercurial project page. The majority of users expect that this would bring them to the top level index. I have added a new template variable named `logourl' which allows an administrator to change this behavior. To stay compatible with existing behavior, `logourl' will default to http://mercurial.selenic.com/. This change is very useful in large installations where jumping to the index is common.
author Steven Stallion <sstallion@gmail.com>
date Tue, 19 Apr 2011 23:37:06 -0400
parents 8b252e826c68
children ac1c75a7c6b5
files doc/hgrc.5.txt mercurial/hgweb/hgweb_mod.py mercurial/hgweb/hgwebdir_mod.py mercurial/templates/gitweb/bookmarks.tmpl mercurial/templates/gitweb/branches.tmpl mercurial/templates/gitweb/changelog.tmpl mercurial/templates/gitweb/changeset.tmpl mercurial/templates/gitweb/error.tmpl mercurial/templates/gitweb/fileannotate.tmpl mercurial/templates/gitweb/filediff.tmpl mercurial/templates/gitweb/filelog.tmpl mercurial/templates/gitweb/filerevision.tmpl mercurial/templates/gitweb/graph.tmpl mercurial/templates/gitweb/help.tmpl mercurial/templates/gitweb/helptopics.tmpl mercurial/templates/gitweb/index.tmpl mercurial/templates/gitweb/manifest.tmpl mercurial/templates/gitweb/notfound.tmpl mercurial/templates/gitweb/search.tmpl mercurial/templates/gitweb/shortlog.tmpl mercurial/templates/gitweb/summary.tmpl mercurial/templates/gitweb/tags.tmpl mercurial/templates/monoblue/footer.tmpl mercurial/templates/monoblue/index.tmpl mercurial/templates/paper/bookmarks.tmpl mercurial/templates/paper/branches.tmpl mercurial/templates/paper/changeset.tmpl mercurial/templates/paper/error.tmpl mercurial/templates/paper/fileannotate.tmpl mercurial/templates/paper/filediff.tmpl mercurial/templates/paper/filelog.tmpl mercurial/templates/paper/filerevision.tmpl mercurial/templates/paper/graph.tmpl mercurial/templates/paper/help.tmpl mercurial/templates/paper/helptopics.tmpl mercurial/templates/paper/index.tmpl mercurial/templates/paper/manifest.tmpl mercurial/templates/paper/search.tmpl mercurial/templates/paper/shortlog.tmpl mercurial/templates/paper/tags.tmpl mercurial/templates/spartan/footer.tmpl mercurial/templates/template-vars.txt
diffstat 42 files changed, 46 insertions(+), 38 deletions(-) [+]
line wrap: on
line diff
--- a/doc/hgrc.5.txt	Tue Apr 19 12:42:53 2011 +0200
+++ b/doc/hgrc.5.txt	Tue Apr 19 23:37:06 2011 -0400
@@ -1092,6 +1092,9 @@
     Default is False.
 ``ipv6``
     Whether to use IPv6. Default is False.
+``logourl``
+    Base URL to use for logos. If unset, ``http://mercurial.selenic.com/``
+    will be used.
 ``name``
     Repository name to use in the web interface. Default is current
     working directory.
--- a/mercurial/hgweb/hgweb_mod.py	Tue Apr 19 12:42:53 2011 +0200
+++ b/mercurial/hgweb/hgweb_mod.py	Tue Apr 19 23:37:06 2011 -0400
@@ -233,6 +233,7 @@
         port = req.env["SERVER_PORT"]
         port = port != default_port and (":" + port) or ""
         urlbase = '%s://%s%s' % (proto, req.env['SERVER_NAME'], port)
+        logourl = self.config("web", "logourl", "http://mercurial.selenic.com/")
         staticurl = self.config("web", "staticurl") or req.url + 'static/'
         if not staticurl.endswith('/'):
             staticurl += '/'
@@ -272,6 +273,7 @@
 
         tmpl = templater.templater(mapfile,
                                    defaults={"url": req.url,
+                                             "logourl": logourl,
                                              "staticurl": staticurl,
                                              "urlbase": urlbase,
                                              "repo": self.reponame,
--- a/mercurial/hgweb/hgwebdir_mod.py	Tue Apr 19 12:42:53 2011 +0200
+++ b/mercurial/hgweb/hgwebdir_mod.py	Tue Apr 19 23:37:06 2011 -0400
@@ -347,6 +347,7 @@
 
         start = url[-1] == '?' and '&' or '?'
         sessionvars = webutil.sessionvars(vars, start)
+        logourl = config('web', 'logourl', 'http://mercurial.selenic.com/')
         staticurl = config('web', 'staticurl') or url + 'static/'
         if not staticurl.endswith('/'):
             staticurl += '/'
@@ -356,6 +357,7 @@
                                              "footer": footer,
                                              "motd": motd,
                                              "url": url,
+                                             "logourl": logourl,
                                              "staticurl": staticurl,
                                              "sessionvars": sessionvars})
         return tmpl
--- a/mercurial/templates/gitweb/bookmarks.tmpl	Tue Apr 19 12:42:53 2011 +0200
+++ b/mercurial/templates/gitweb/bookmarks.tmpl	Tue Apr 19 23:37:06 2011 -0400
@@ -8,7 +8,7 @@
 <body>
 
 <div class="page_header">
-<a href="http://mercurial.selenic.com/" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / bookmarks
+<a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / bookmarks
 </div>
 
 <div class="page_nav">
--- a/mercurial/templates/gitweb/branches.tmpl	Tue Apr 19 12:42:53 2011 +0200
+++ b/mercurial/templates/gitweb/branches.tmpl	Tue Apr 19 23:37:06 2011 -0400
@@ -8,7 +8,7 @@
 <body>
 
 <div class="page_header">
-<a href="http://mercurial.selenic.com/" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / branches
+<a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / branches
 </div>
 
 <div class="page_nav">
--- a/mercurial/templates/gitweb/changelog.tmpl	Tue Apr 19 12:42:53 2011 +0200
+++ b/mercurial/templates/gitweb/changelog.tmpl	Tue Apr 19 23:37:06 2011 -0400
@@ -8,7 +8,7 @@
 <body>
 
 <div class="page_header">
-<a href="http://mercurial.selenic.com/" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / changelog
+<a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / changelog
 </div>
 
 <form action="{url}log">
--- a/mercurial/templates/gitweb/changeset.tmpl	Tue Apr 19 12:42:53 2011 +0200
+++ b/mercurial/templates/gitweb/changeset.tmpl	Tue Apr 19 23:37:06 2011 -0400
@@ -8,7 +8,7 @@
 <body>
 
 <div class="page_header">
-<a href="http://mercurial.selenic.com/" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / changeset
+<a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / changeset
 </div>
 
 <div class="page_nav">
--- a/mercurial/templates/gitweb/error.tmpl	Tue Apr 19 12:42:53 2011 +0200
+++ b/mercurial/templates/gitweb/error.tmpl	Tue Apr 19 23:37:06 2011 -0400
@@ -8,7 +8,7 @@
 <body>
 
 <div class="page_header">
-<a href="http://mercurial.selenic.com/" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / error
+<a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / error
 </div>
 
 <div class="page_nav">
--- a/mercurial/templates/gitweb/fileannotate.tmpl	Tue Apr 19 12:42:53 2011 +0200
+++ b/mercurial/templates/gitweb/fileannotate.tmpl	Tue Apr 19 23:37:06 2011 -0400
@@ -8,7 +8,7 @@
 <body>
 
 <div class="page_header">
-<a href="http://mercurial.selenic.com/" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / annotate
+<a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / annotate
 </div>
 
 <div class="page_nav">
--- a/mercurial/templates/gitweb/filediff.tmpl	Tue Apr 19 12:42:53 2011 +0200
+++ b/mercurial/templates/gitweb/filediff.tmpl	Tue Apr 19 23:37:06 2011 -0400
@@ -8,7 +8,7 @@
 <body>
 
 <div class="page_header">
-<a href="http://mercurial.selenic.com/" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / diff
+<a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / diff
 </div>
 
 <div class="page_nav">
--- a/mercurial/templates/gitweb/filelog.tmpl	Tue Apr 19 12:42:53 2011 +0200
+++ b/mercurial/templates/gitweb/filelog.tmpl	Tue Apr 19 23:37:06 2011 -0400
@@ -8,7 +8,7 @@
 <body>
 
 <div class="page_header">
-<a href="http://mercurial.selenic.com/" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / file revisions
+<a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / file revisions
 </div>
 
 <div class="page_nav">
--- a/mercurial/templates/gitweb/filerevision.tmpl	Tue Apr 19 12:42:53 2011 +0200
+++ b/mercurial/templates/gitweb/filerevision.tmpl	Tue Apr 19 23:37:06 2011 -0400
@@ -8,7 +8,7 @@
 <body>
 
 <div class="page_header">
-<a href="http://mercurial.selenic.com/" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / file revision
+<a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / file revision
 </div>
 
 <div class="page_nav">
--- a/mercurial/templates/gitweb/graph.tmpl	Tue Apr 19 12:42:53 2011 +0200
+++ b/mercurial/templates/gitweb/graph.tmpl	Tue Apr 19 23:37:06 2011 -0400
@@ -9,7 +9,7 @@
 <body>
 
 <div class="page_header">
-<a href="http://mercurial.selenic.com/" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / graph
+<a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / graph
 </div>
 
 <form action="{url}log">
--- a/mercurial/templates/gitweb/help.tmpl	Tue Apr 19 12:42:53 2011 +0200
+++ b/mercurial/templates/gitweb/help.tmpl	Tue Apr 19 23:37:06 2011 -0400
@@ -8,7 +8,7 @@
 <body>
 
 <div class="page_header">
-<a href="http://mercurial.selenic.com/" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / help
+<a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / help
 </div>
 
 <div class="page_nav">
--- a/mercurial/templates/gitweb/helptopics.tmpl	Tue Apr 19 12:42:53 2011 +0200
+++ b/mercurial/templates/gitweb/helptopics.tmpl	Tue Apr 19 23:37:06 2011 -0400
@@ -8,7 +8,7 @@
 <body>
 
 <div class="page_header">
-<a href="http://mercurial.selenic.com/" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / help
+<a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / help
 </div>
 
 <div class="page_nav">
--- a/mercurial/templates/gitweb/index.tmpl	Tue Apr 19 12:42:53 2011 +0200
+++ b/mercurial/templates/gitweb/index.tmpl	Tue Apr 19 23:37:06 2011 -0400
@@ -4,7 +4,7 @@
 <body>
 
 <div class="page_header">
-    <a href="http://mercurial.selenic.com/" title="Mercurial" style="float: right;">Mercurial</a>
+    <a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a>
     Repositories list
 </div>
 
--- a/mercurial/templates/gitweb/manifest.tmpl	Tue Apr 19 12:42:53 2011 +0200
+++ b/mercurial/templates/gitweb/manifest.tmpl	Tue Apr 19 23:37:06 2011 -0400
@@ -8,7 +8,7 @@
 <body>
 
 <div class="page_header">
-<a href="http://mercurial.selenic.com/" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / files
+<a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / files
 </div>
 
 <div class="page_nav">
--- a/mercurial/templates/gitweb/notfound.tmpl	Tue Apr 19 12:42:53 2011 +0200
+++ b/mercurial/templates/gitweb/notfound.tmpl	Tue Apr 19 23:37:06 2011 -0400
@@ -5,7 +5,7 @@
 <body>
 
 <div class="page_header">
-<a href="http://mercurial.selenic.com/" title="Mercurial" style="float: right;">Mercurial</a> Not found: {repo|escape}
+<a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a> Not found: {repo|escape}
 </div>
 
 <div class="page_body">
--- a/mercurial/templates/gitweb/search.tmpl	Tue Apr 19 12:42:53 2011 +0200
+++ b/mercurial/templates/gitweb/search.tmpl	Tue Apr 19 23:37:06 2011 -0400
@@ -8,7 +8,7 @@
 <body>
 
 <div class="page_header">
-<a href="http://mercurial.selenic.com/" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / search
+<a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / search
 
 <form action="{url}log">
 {sessionvars%hiddenformentry}
--- a/mercurial/templates/gitweb/shortlog.tmpl	Tue Apr 19 12:42:53 2011 +0200
+++ b/mercurial/templates/gitweb/shortlog.tmpl	Tue Apr 19 23:37:06 2011 -0400
@@ -8,7 +8,7 @@
 <body>
 
 <div class="page_header">
-<a href="http://mercurial.selenic.com/" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / shortlog
+<a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / shortlog
 </div>
 
 <form action="{url}log">
--- a/mercurial/templates/gitweb/summary.tmpl	Tue Apr 19 12:42:53 2011 +0200
+++ b/mercurial/templates/gitweb/summary.tmpl	Tue Apr 19 23:37:06 2011 -0400
@@ -8,7 +8,7 @@
 <body>
 
 <div class="page_header">
-<a href="http://mercurial.selenic.com/" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / summary
+<a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / summary
 
 <form action="{url}log">
 {sessionvars%hiddenformentry}
--- a/mercurial/templates/gitweb/tags.tmpl	Tue Apr 19 12:42:53 2011 +0200
+++ b/mercurial/templates/gitweb/tags.tmpl	Tue Apr 19 23:37:06 2011 -0400
@@ -8,7 +8,7 @@
 <body>
 
 <div class="page_header">
-<a href="http://mercurial.selenic.com/" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / tags
+<a href="{logourl}" title="Mercurial" style="float: right;">Mercurial</a><a href="{url}summary{sessionvars%urlparameter}">{repo|escape}</a> / tags
 </div>
 
 <div class="page_nav">
--- a/mercurial/templates/monoblue/footer.tmpl	Tue Apr 19 12:42:53 2011 +0200
+++ b/mercurial/templates/monoblue/footer.tmpl	Tue Apr 19 23:37:06 2011 -0400
@@ -8,7 +8,7 @@
     </div>
 
     <div id="powered-by">
-        <p><a href="http://mercurial.selenic.com/" title="Mercurial"><img src="{staticurl}hglogo.png" width=75 height=90 border=0 alt="mercurial"></a></p>
+        <p><a href="{logourl}" title="Mercurial"><img src="{staticurl}hglogo.png" width=75 height=90 border=0 alt="mercurial"></a></p>
     </div>
 
     <div id="corner-top-left"></div>
--- a/mercurial/templates/monoblue/index.tmpl	Tue Apr 19 12:42:53 2011 +0200
+++ b/mercurial/templates/monoblue/index.tmpl	Tue Apr 19 23:37:06 2011 -0400
@@ -26,7 +26,7 @@
     </div>
 
     <div id="powered-by">
-        <p><a href="http://mercurial.selenic.com/" title="Mercurial"><img src="{staticurl}hglogo.png" width=75 height=90 border=0 alt="mercurial"></a></p>
+        <p><a href="{logourl}" title="Mercurial"><img src="{staticurl}hglogo.png" width=75 height=90 border=0 alt="mercurial"></a></p>
     </div>
 
     <div id="corner-top-left"></div>
--- a/mercurial/templates/paper/bookmarks.tmpl	Tue Apr 19 12:42:53 2011 +0200
+++ b/mercurial/templates/paper/bookmarks.tmpl	Tue Apr 19 23:37:06 2011 -0400
@@ -10,7 +10,7 @@
 <div class="container">
 <div class="menu">
 <div class="logo">
-<a href="http://mercurial.selenic.com/">
+<a href="{logourl}">
 <img src="{staticurl}hglogo.png" alt="mercurial" /></a>
 </div>
 <ul>
--- a/mercurial/templates/paper/branches.tmpl	Tue Apr 19 12:42:53 2011 +0200
+++ b/mercurial/templates/paper/branches.tmpl	Tue Apr 19 23:37:06 2011 -0400
@@ -10,7 +10,7 @@
 <div class="container">
 <div class="menu">
 <div class="logo">
-<a href="http://mercurial.selenic.com/">
+<a href="{logourl}">
 <img src="{staticurl}hglogo.png" alt="mercurial" /></a>
 </div>
 <ul>
--- a/mercurial/templates/paper/changeset.tmpl	Tue Apr 19 12:42:53 2011 +0200
+++ b/mercurial/templates/paper/changeset.tmpl	Tue Apr 19 23:37:06 2011 -0400
@@ -5,7 +5,7 @@
 <div class="container">
 <div class="menu">
 <div class="logo">
-<a href="http://mercurial.selenic.com/">
+<a href="{logourl}">
 <img src="{staticurl}hglogo.png" alt="mercurial" /></a>
 </div>
 <ul>
--- a/mercurial/templates/paper/error.tmpl	Tue Apr 19 12:42:53 2011 +0200
+++ b/mercurial/templates/paper/error.tmpl	Tue Apr 19 23:37:06 2011 -0400
@@ -6,7 +6,7 @@
 <div class="container">
 <div class="menu">
 <div class="logo">
-<a href="http://mercurial.selenic.com/">
+<a href="{logourl}">
 <img src="{staticurl}hglogo.png" width=75 height=90 border=0 alt="mercurial" /></a>
 </div>
 <ul>
--- a/mercurial/templates/paper/fileannotate.tmpl	Tue Apr 19 12:42:53 2011 +0200
+++ b/mercurial/templates/paper/fileannotate.tmpl	Tue Apr 19 23:37:06 2011 -0400
@@ -6,7 +6,7 @@
 <div class="container">
 <div class="menu">
 <div class="logo">
-<a href="http://mercurial.selenic.com/">
+<a href="{logourl}">
 <img src="{staticurl}hglogo.png" alt="mercurial" /></a>
 </div>
 <ul>
--- a/mercurial/templates/paper/filediff.tmpl	Tue Apr 19 12:42:53 2011 +0200
+++ b/mercurial/templates/paper/filediff.tmpl	Tue Apr 19 23:37:06 2011 -0400
@@ -6,7 +6,7 @@
 <div class="container">
 <div class="menu">
 <div class="logo">
-<a href="http://mercurial.selenic.com/">
+<a href="{logourl}">
 <img src="{staticurl}hglogo.png" alt="mercurial" /></a>
 </div>
 <ul>
--- a/mercurial/templates/paper/filelog.tmpl	Tue Apr 19 12:42:53 2011 +0200
+++ b/mercurial/templates/paper/filelog.tmpl	Tue Apr 19 23:37:06 2011 -0400
@@ -10,7 +10,7 @@
 <div class="container">
 <div class="menu">
 <div class="logo">
-<a href="http://mercurial.selenic.com/">
+<a href="{logourl}">
 <img src="{staticurl}hglogo.png" alt="mercurial" /></a>
 </div>
 <ul>
--- a/mercurial/templates/paper/filerevision.tmpl	Tue Apr 19 12:42:53 2011 +0200
+++ b/mercurial/templates/paper/filerevision.tmpl	Tue Apr 19 23:37:06 2011 -0400
@@ -6,7 +6,7 @@
 <div class="container">
 <div class="menu">
 <div class="logo">
-<a href="http://mercurial.selenic.com/">
+<a href="{logourl}">
 <img src="{staticurl}hglogo.png" alt="mercurial" /></a>
 </div>
 <ul>
--- a/mercurial/templates/paper/graph.tmpl	Tue Apr 19 12:42:53 2011 +0200
+++ b/mercurial/templates/paper/graph.tmpl	Tue Apr 19 23:37:06 2011 -0400
@@ -11,7 +11,7 @@
 <div class="container">
 <div class="menu">
 <div class="logo">
-<a href="http://mercurial.selenic.com/">
+<a href="{logourl}">
 <img src="{staticurl}hglogo.png" alt="mercurial" /></a>
 </div>
 <ul>
--- a/mercurial/templates/paper/help.tmpl	Tue Apr 19 12:42:53 2011 +0200
+++ b/mercurial/templates/paper/help.tmpl	Tue Apr 19 23:37:06 2011 -0400
@@ -10,7 +10,7 @@
 <div class="container">
 <div class="menu">
 <div class="logo">
-<a href="http://mercurial.selenic.com/">
+<a href="{logourl}">
 <img src="{staticurl}hglogo.png" alt="mercurial" /></a>
 </div>
 <ul>
--- a/mercurial/templates/paper/helptopics.tmpl	Tue Apr 19 12:42:53 2011 +0200
+++ b/mercurial/templates/paper/helptopics.tmpl	Tue Apr 19 23:37:06 2011 -0400
@@ -10,7 +10,7 @@
 <div class="container">
 <div class="menu">
 <div class="logo">
-<a href="http://mercurial.selenic.com/">
+<a href="{logourl}">
 <img src="{staticurl}hglogo.png" alt="mercurial" /></a>
 </div>
 <ul>
--- a/mercurial/templates/paper/index.tmpl	Tue Apr 19 12:42:53 2011 +0200
+++ b/mercurial/templates/paper/index.tmpl	Tue Apr 19 23:37:06 2011 -0400
@@ -5,7 +5,7 @@
 
 <div class="container">
 <div class="menu">
-<a href="http://mercurial.selenic.com/">
+<a href="{logourl}">
 <img src="{staticurl}hglogo.png" width=75 height=90 border=0 alt="mercurial" /></a>
 </div>
 <div class="main">
--- a/mercurial/templates/paper/manifest.tmpl	Tue Apr 19 12:42:53 2011 +0200
+++ b/mercurial/templates/paper/manifest.tmpl	Tue Apr 19 23:37:06 2011 -0400
@@ -6,7 +6,7 @@
 <div class="container">
 <div class="menu">
 <div class="logo">
-<a href="http://mercurial.selenic.com/">
+<a href="{logourl}">
 <img src="{staticurl}hglogo.png" alt="mercurial" /></a>
 </div>
 <ul>
--- a/mercurial/templates/paper/search.tmpl	Tue Apr 19 12:42:53 2011 +0200
+++ b/mercurial/templates/paper/search.tmpl	Tue Apr 19 23:37:06 2011 -0400
@@ -6,7 +6,7 @@
 <div class="container">
 <div class="menu">
 <div class="logo">
-<a href="http://mercurial.selenic.com/">
+<a href="{logourl}">
 <img src="{staticurl}hglogo.png" width=75 height=90 border=0 alt="mercurial"></a>
 </div>
 <ul>
--- a/mercurial/templates/paper/shortlog.tmpl	Tue Apr 19 12:42:53 2011 +0200
+++ b/mercurial/templates/paper/shortlog.tmpl	Tue Apr 19 23:37:06 2011 -0400
@@ -10,7 +10,7 @@
 <div class="container">
 <div class="menu">
 <div class="logo">
-<a href="http://mercurial.selenic.com/">
+<a href="{logourl}">
 <img src="{staticurl}hglogo.png" alt="mercurial" /></a>
 </div>
 <ul>
--- a/mercurial/templates/paper/tags.tmpl	Tue Apr 19 12:42:53 2011 +0200
+++ b/mercurial/templates/paper/tags.tmpl	Tue Apr 19 23:37:06 2011 -0400
@@ -10,7 +10,7 @@
 <div class="container">
 <div class="menu">
 <div class="logo">
-<a href="http://mercurial.selenic.com/">
+<a href="{logourl}">
 <img src="{staticurl}hglogo.png" alt="mercurial" /></a>
 </div>
 <ul>
--- a/mercurial/templates/spartan/footer.tmpl	Tue Apr 19 12:42:53 2011 +0200
+++ b/mercurial/templates/spartan/footer.tmpl	Tue Apr 19 23:37:06 2011 -0400
@@ -1,6 +1,6 @@
 {motd}
 <div class="logo">
-<a href="http://mercurial.selenic.com/">
+<a href="{logourl}">
 <img src="{staticurl}hglogo.png" width=75 height=90 border=0 alt="mercurial"></a>
 </div>
 
--- a/mercurial/templates/template-vars.txt	Tue Apr 19 12:42:53 2011 +0200
+++ b/mercurial/templates/template-vars.txt	Tue Apr 19 23:37:06 2011 -0400
@@ -29,6 +29,7 @@
 entries       the entries relevant to the page
 
 url           base url of hgweb interface
+logourl       base url of logo
 staticurl     base url for static resources