[PATCH] web: Made elapsed time calculation dynamic (javascript).
Adrian Buehlmann
adrian at cadifra.com
Tue Apr 26 11:02:57 CDT 2011
On 2011-04-26 14:52, Benoît Allard wrote:
> # HG changeset patch
> # User Benoit Allard <benoit at aeteurope.nl>
> # Date 1303821734 -7200
> # Node ID 64ca69686a618fd23f2aa4d9eff473f571c10b6f
> # Parent bcff4759d17dc7d6eec967b4ec2d7d12cde22cf7
> 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.
>
..
> diff -r bcff4759d17d -r 64ca69686a61 mercurial/templates/static/timeago.js
> --- /dev/null Thu Jan 01 00:00:00 1970 +0000
> +++ b/mercurial/templates/static/timeago.js Tue Apr 26 14:42:14 2011 +0200
> @@ -0,0 +1,81 @@
> +// timeago.js - dynamically calculating the elapsed time
> +//
> +// derived from code from mercurial/templatefilter.py
While looking at this file in the editor (I used the bundle), I noticed
that some lines have tab indents, but the majority of the lines are
space indented.
More information about the Mercurial-devel
mailing list