Mercurial > hg-stable
diff tests/test-hgweb-empty.t @ 14046:b24e5a708fad
web: Made elapsed time calculation dynamic (javascript).
This allow safe caching of the pages by the browser and still display the right
amount of elapsed time upon page refresh.
If javascript is disabled, absolute time is displayed, leaving it readable.
All the templates have been updated.
author | Benoit Allard <benoit@aeteurope.nl> |
---|---|
date | Thu, 28 Apr 2011 17:02:39 +0200 |
parents | 0a8ba9124623 |
children | ad6eb7d7dbca |
line wrap: on
line diff
--- a/tests/test-hgweb-empty.t Wed Apr 27 21:55:46 2011 -0400 +++ b/tests/test-hgweb-empty.t Thu Apr 28 17:02:39 2011 +0200 @@ -13,6 +13,7 @@ <link rel="icon" href="/static/hgicon.png" type="image/png" /> <meta name="robots" content="index, nofollow" /> <link rel="stylesheet" href="/static/style-paper.css" type="text/css" /> + <script type="text/javascript" src="/static/mercurial.js"></script> <title>test: log</title> <link rel="alternate" type="application/atom+xml" @@ -82,6 +83,7 @@ </div> </div> + <script type="text/javascript">process_dates()</script> </body> @@ -96,6 +98,7 @@ <link rel="icon" href="/static/hgicon.png" type="image/png" /> <meta name="robots" content="index, nofollow" /> <link rel="stylesheet" href="/static/style-paper.css" type="text/css" /> + <script type="text/javascript" src="/static/mercurial.js"></script> <title>test: log</title> <link rel="alternate" type="application/atom+xml" @@ -165,6 +168,7 @@ </div> </div> + <script type="text/javascript">process_dates()</script> </body> @@ -179,6 +183,7 @@ <link rel="icon" href="/static/hgicon.png" type="image/png" /> <meta name="robots" content="index, nofollow" /> <link rel="stylesheet" href="/static/style-paper.css" type="text/css" /> + <script type="text/javascript" src="/static/mercurial.js"></script> <title>test: revision graph</title> <link rel="alternate" type="application/atom+xml" @@ -236,7 +241,6 @@ <ul id="graphnodes"></ul> </div> - <script type="text/javascript" src="/static/graph.js"></script> <script type="text/javascript"> <!-- hide script content @@ -320,6 +324,7 @@ </div> </div> + <script type="text/javascript">process_dates()</script> </body> @@ -334,6 +339,7 @@ <link rel="icon" href="/static/hgicon.png" type="image/png" /> <meta name="robots" content="index, nofollow" /> <link rel="stylesheet" href="/static/style-paper.css" type="text/css" /> + <script type="text/javascript" src="/static/mercurial.js"></script> <title>test: 000000000000 /</title> </head> @@ -391,6 +397,7 @@ </table> </div> </div> + <script type="text/javascript">process_dates()</script> </body>