[PATCH] hgweb: support alternate logo url

Steven Stallion sstallion at gmail.com
Tue Apr 19 22:38:34 CDT 2011


# HG changeset patch
# User Steven Stallion <sstallion at gmail.com>
# Date 1303270626 14400
# Node ID 94dbe11c15c38cdf7427079035cd83417636f3db
# Parent  190e5f2043d9a7bc3c3c3d86249b3b7acb943e51
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.

diff -r 190e5f2043d9 -r 94dbe11c15c3 doc/hgrc.5.txt
--- a/doc/hgrc.5.txt	Tue Apr 19 14:56:46 2011 +0300
+++ b/doc/hgrc.5.txt	Tue Apr 19 23:37:06 2011 -0400
@@ -1082,6 +1082,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.
diff -r 190e5f2043d9 -r 94dbe11c15c3 mercurial/hgweb/hgweb_mod.py
--- a/mercurial/hgweb/hgweb_mod.py	Tue Apr 19 14:56:46 2011 +0300
+++ 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,
diff -r 190e5f2043d9 -r 94dbe11c15c3 mercurial/hgweb/hgwebdir_mod.py
--- a/mercurial/hgweb/hgwebdir_mod.py	Tue Apr 19 14:56:46 2011 +0300
+++ 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
diff -r 190e5f2043d9 -r 94dbe11c15c3 mercurial/templates/gitweb/bookmarks.tmpl
--- a/mercurial/templates/gitweb/bookmarks.tmpl	Tue Apr 19 14:56:46 2011 +0300
+++ 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">
diff -r 190e5f2043d9 -r 94dbe11c15c3 mercurial/templates/gitweb/branches.tmpl
--- a/mercurial/templates/gitweb/branches.tmpl	Tue Apr 19 14:56:46 2011 +0300
+++ 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">
diff -r 190e5f2043d9 -r 94dbe11c15c3 mercurial/templates/gitweb/changelog.tmpl
--- a/mercurial/templates/gitweb/changelog.tmpl	Tue Apr 19 14:56:46 2011 +0300
+++ 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">
diff -r 190e5f2043d9 -r 94dbe11c15c3 mercurial/templates/gitweb/changeset.tmpl
--- a/mercurial/templates/gitweb/changeset.tmpl	Tue Apr 19 14:56:46 2011 +0300
+++ 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">
diff -r 190e5f2043d9 -r 94dbe11c15c3 mercurial/templates/gitweb/error.tmpl
--- a/mercurial/templates/gitweb/error.tmpl	Tue Apr 19 14:56:46 2011 +0300
+++ 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">
diff -r 190e5f2043d9 -r 94dbe11c15c3 mercurial/templates/gitweb/fileannotate.tmpl
--- a/mercurial/templates/gitweb/fileannotate.tmpl	Tue Apr 19 14:56:46 2011 +0300
+++ 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">
diff -r 190e5f2043d9 -r 94dbe11c15c3 mercurial/templates/gitweb/filediff.tmpl
--- a/mercurial/templates/gitweb/filediff.tmpl	Tue Apr 19 14:56:46 2011 +0300
+++ 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">
diff -r 190e5f2043d9 -r 94dbe11c15c3 mercurial/templates/gitweb/filelog.tmpl
--- a/mercurial/templates/gitweb/filelog.tmpl	Tue Apr 19 14:56:46 2011 +0300
+++ 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">
diff -r 190e5f2043d9 -r 94dbe11c15c3 mercurial/templates/gitweb/filerevision.tmpl
--- a/mercurial/templates/gitweb/filerevision.tmpl	Tue Apr 19 14:56:46 2011 +0300
+++ 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">
diff -r 190e5f2043d9 -r 94dbe11c15c3 mercurial/templates/gitweb/graph.tmpl
--- a/mercurial/templates/gitweb/graph.tmpl	Tue Apr 19 14:56:46 2011 +0300
+++ 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">
diff -r 190e5f2043d9 -r 94dbe11c15c3 mercurial/templates/gitweb/help.tmpl
--- a/mercurial/templates/gitweb/help.tmpl	Tue Apr 19 14:56:46 2011 +0300
+++ 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">
diff -r 190e5f2043d9 -r 94dbe11c15c3 mercurial/templates/gitweb/helptopics.tmpl
--- a/mercurial/templates/gitweb/helptopics.tmpl	Tue Apr 19 14:56:46 2011 +0300
+++ 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">
diff -r 190e5f2043d9 -r 94dbe11c15c3 mercurial/templates/gitweb/index.tmpl
--- a/mercurial/templates/gitweb/index.tmpl	Tue Apr 19 14:56:46 2011 +0300
+++ 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>
 
diff -r 190e5f2043d9 -r 94dbe11c15c3 mercurial/templates/gitweb/manifest.tmpl
--- a/mercurial/templates/gitweb/manifest.tmpl	Tue Apr 19 14:56:46 2011 +0300
+++ 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">
diff -r 190e5f2043d9 -r 94dbe11c15c3 mercurial/templates/gitweb/notfound.tmpl
--- a/mercurial/templates/gitweb/notfound.tmpl	Tue Apr 19 14:56:46 2011 +0300
+++ 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">
diff -r 190e5f2043d9 -r 94dbe11c15c3 mercurial/templates/gitweb/search.tmpl
--- a/mercurial/templates/gitweb/search.tmpl	Tue Apr 19 14:56:46 2011 +0300
+++ 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}
diff -r 190e5f2043d9 -r 94dbe11c15c3 mercurial/templates/gitweb/shortlog.tmpl
--- a/mercurial/templates/gitweb/shortlog.tmpl	Tue Apr 19 14:56:46 2011 +0300
+++ 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">
diff -r 190e5f2043d9 -r 94dbe11c15c3 mercurial/templates/gitweb/summary.tmpl
--- a/mercurial/templates/gitweb/summary.tmpl	Tue Apr 19 14:56:46 2011 +0300
+++ 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}
diff -r 190e5f2043d9 -r 94dbe11c15c3 mercurial/templates/gitweb/tags.tmpl
--- a/mercurial/templates/gitweb/tags.tmpl	Tue Apr 19 14:56:46 2011 +0300
+++ 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">
diff -r 190e5f2043d9 -r 94dbe11c15c3 mercurial/templates/monoblue/footer.tmpl
--- a/mercurial/templates/monoblue/footer.tmpl	Tue Apr 19 14:56:46 2011 +0300
+++ 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>
diff -r 190e5f2043d9 -r 94dbe11c15c3 mercurial/templates/monoblue/index.tmpl
--- a/mercurial/templates/monoblue/index.tmpl	Tue Apr 19 14:56:46 2011 +0300
+++ 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>
diff -r 190e5f2043d9 -r 94dbe11c15c3 mercurial/templates/paper/bookmarks.tmpl
--- a/mercurial/templates/paper/bookmarks.tmpl	Tue Apr 19 14:56:46 2011 +0300
+++ 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>
diff -r 190e5f2043d9 -r 94dbe11c15c3 mercurial/templates/paper/branches.tmpl
--- a/mercurial/templates/paper/branches.tmpl	Tue Apr 19 14:56:46 2011 +0300
+++ 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>
diff -r 190e5f2043d9 -r 94dbe11c15c3 mercurial/templates/paper/changeset.tmpl
--- a/mercurial/templates/paper/changeset.tmpl	Tue Apr 19 14:56:46 2011 +0300
+++ 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>
diff -r 190e5f2043d9 -r 94dbe11c15c3 mercurial/templates/paper/error.tmpl
--- a/mercurial/templates/paper/error.tmpl	Tue Apr 19 14:56:46 2011 +0300
+++ 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>
diff -r 190e5f2043d9 -r 94dbe11c15c3 mercurial/templates/paper/fileannotate.tmpl
--- a/mercurial/templates/paper/fileannotate.tmpl	Tue Apr 19 14:56:46 2011 +0300
+++ 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>
diff -r 190e5f2043d9 -r 94dbe11c15c3 mercurial/templates/paper/filediff.tmpl
--- a/mercurial/templates/paper/filediff.tmpl	Tue Apr 19 14:56:46 2011 +0300
+++ 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>
diff -r 190e5f2043d9 -r 94dbe11c15c3 mercurial/templates/paper/filelog.tmpl
--- a/mercurial/templates/paper/filelog.tmpl	Tue Apr 19 14:56:46 2011 +0300
+++ 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>
diff -r 190e5f2043d9 -r 94dbe11c15c3 mercurial/templates/paper/filerevision.tmpl
--- a/mercurial/templates/paper/filerevision.tmpl	Tue Apr 19 14:56:46 2011 +0300
+++ 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>
diff -r 190e5f2043d9 -r 94dbe11c15c3 mercurial/templates/paper/graph.tmpl
--- a/mercurial/templates/paper/graph.tmpl	Tue Apr 19 14:56:46 2011 +0300
+++ 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>
diff -r 190e5f2043d9 -r 94dbe11c15c3 mercurial/templates/paper/help.tmpl
--- a/mercurial/templates/paper/help.tmpl	Tue Apr 19 14:56:46 2011 +0300
+++ 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>
diff -r 190e5f2043d9 -r 94dbe11c15c3 mercurial/templates/paper/helptopics.tmpl
--- a/mercurial/templates/paper/helptopics.tmpl	Tue Apr 19 14:56:46 2011 +0300
+++ 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>
diff -r 190e5f2043d9 -r 94dbe11c15c3 mercurial/templates/paper/index.tmpl
--- a/mercurial/templates/paper/index.tmpl	Tue Apr 19 14:56:46 2011 +0300
+++ 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">
diff -r 190e5f2043d9 -r 94dbe11c15c3 mercurial/templates/paper/manifest.tmpl
--- a/mercurial/templates/paper/manifest.tmpl	Tue Apr 19 14:56:46 2011 +0300
+++ 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>
diff -r 190e5f2043d9 -r 94dbe11c15c3 mercurial/templates/paper/search.tmpl
--- a/mercurial/templates/paper/search.tmpl	Tue Apr 19 14:56:46 2011 +0300
+++ 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>
diff -r 190e5f2043d9 -r 94dbe11c15c3 mercurial/templates/paper/shortlog.tmpl
--- a/mercurial/templates/paper/shortlog.tmpl	Tue Apr 19 14:56:46 2011 +0300
+++ 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>
diff -r 190e5f2043d9 -r 94dbe11c15c3 mercurial/templates/paper/tags.tmpl
--- a/mercurial/templates/paper/tags.tmpl	Tue Apr 19 14:56:46 2011 +0300
+++ 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>
diff -r 190e5f2043d9 -r 94dbe11c15c3 mercurial/templates/spartan/footer.tmpl
--- a/mercurial/templates/spartan/footer.tmpl	Tue Apr 19 14:56:46 2011 +0300
+++ 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>
 
diff -r 190e5f2043d9 -r 94dbe11c15c3 mercurial/templates/template-vars.txt
--- a/mercurial/templates/template-vars.txt	Tue Apr 19 14:56:46 2011 +0300
+++ 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
 
 


More information about the Mercurial-devel mailing list