diff --git a/mercurial/templates/monoblue/graph.tmpl b/mercurial/templates/monoblue/graph.tmpl --- a/mercurial/templates/monoblue/graph.tmpl +++ b/mercurial/templates/monoblue/graph.tmpl @@ -104,4 +104,15 @@ | {changenav%navgraph} </div> + <script type="text/javascript"> + ajaxScrollInit( + '{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' + ); + </script> + {footer} diff --git a/mercurial/templates/monoblue/shortlog.tmpl b/mercurial/templates/monoblue/shortlog.tmpl --- a/mercurial/templates/monoblue/shortlog.tmpl +++ b/mercurial/templates/monoblue/shortlog.tmpl @@ -33,7 +33,7 @@ <h2 class="no-link no-border">shortlog</h2> - <table> + <table class="shortlogtable"> {entries%shortlogentry} </table> @@ -41,4 +41,19 @@ {changenav%navshort} </div> + <script type="text/javascript"> + ajaxScrollInit( + '{url|urlescape}shortlog/%next%{sessionvars%urlparameter}', + '{nextentry%"{node}"}', <!-- NEXTHASH + function (htmlText, previousVal) \{ + var m = htmlText.match(/'(\w+)', <!-- NEXTHASH/); + return m ? m[1] : null; + }, + '.shortlogtable > tbody:nth-of-type(1)', + '<tr class="%class%">\ + <td colspan="4" style="text-align: center;">%text%</td>\ + </tr>' + ); + </script> + {footer} diff --git a/mercurial/templates/spartan/header.tmpl b/mercurial/templates/spartan/header.tmpl --- a/mercurial/templates/spartan/header.tmpl +++ b/mercurial/templates/spartan/header.tmpl @@ -1,4 +1,4 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <link rel="icon" href="{staticurl|urlescape}hgicon.png" type="image/png"> diff --git a/mercurial/templates/static/style-monoblue.css b/mercurial/templates/static/style-monoblue.css --- a/mercurial/templates/static/style-monoblue.css +++ b/mercurial/templates/static/style-monoblue.css @@ -528,3 +528,27 @@ ul#graphnodes li .info { .breadcrumb a:hover { text-decoration:underline; } + +.scroll-loading { + -webkit-animation: change_color 1s linear 0s infinite alternate; + -moz-animation: change_color 1s linear 0s infinite alternate; + -o-animation: change_color 1s linear 0s infinite alternate; + animation: change_color 1s linear 0s infinite alternate; +} + +@-webkit-keyframes change_color { + from { background-color: #A0CEFF; } to { } +} +@-moz-keyframes change_color { + from { background-color: #A0CEFF; } to { } +} +@-o-keyframes change_color { + from { background-color: #A0CEFF; } to { } +} +@keyframes change_color { + from { background-color: #A0CEFF; } to { } +} + +.scroll-loading-error { + background-color: #FFCCCC !important; +}