@@ -371,10 +371,11 @@ class hgweb(object):
"repo": self.reponame,
"encoding": encoding.encoding,
"motd": motd,
"sessionvars": sessionvars,
"pathdef": makebreadcrumb(req.url),
+ "style": style,
})
return tmpl
def archivelist(self, nodeid):
allowed = self.configlist("web", "allow_archive")
@@ -446,11 +446,13 @@ class hgwebdir(object):
"motd": motd,
"url": url,
"logourl": logourl,
"logoimg": logoimg,
"staticurl": staticurl,
- "sessionvars": sessionvars})
+ "sessionvars": sessionvars,
+ "style": style,
+ })
return tmpl
def updatereqenv(self, env):
if self._baseurl is not None:
name, port, path = geturlcgivars(self._baseurl, env['SERVER_PORT'])
@@ -122,11 +122,11 @@ graph.render(data);
| rev {rev}: {changenav%navgraph}
</div>
<script type="text/javascript">
ajaxScrollInit(
- '{url|urlescape}graph/{rev}?revcount=%next%',
+ '{url|urlescape}graph/{rev}?revcount=%next%&style={style}',
{revcount}+60,
function (htmlText, previousVal) \{ return previousVal + 60; },
'#wrapper',
'<div class="%class%" style="text-align: center;">%text%</div>',
'graph'
@@ -71,11 +71,11 @@
| rev {rev}: {changenav%navshort}
</div>
<script type="text/javascript">
ajaxScrollInit(
- '{url|urlescape}shortlog/%next%',
+ '{url|urlescape}shortlog/%next%{sessionvars%urlparameter}',
'{nextentry%"{node}"}', <!-- NEXTHASH
function (htmlText, previousVal) \{
var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/);
return m ? m[1] : null;
},
@@ -359,11 +359,11 @@ Some tests for hgweb in an empty reposit
| rev -1:
</div>
<script type="text/javascript">
ajaxScrollInit(
- '/graph/-1?revcount=%next%',
+ '/graph/-1?revcount=%next%&style=paper',
60+60,
function (htmlText, previousVal) { return previousVal + 60; },
'#wrapper',
'<div class="%class%" style="text-align: center;">%text%</div>',
'graph'