Patchwork hgweb: show full date in rfc822 format in tooltips at shortlog page

login
register
mail settings
Submitter Alexander Plavin
Date June 30, 2013, 8:13 a.m.
Message ID <069c6b10ca2e8ff411b6.1372579986@debian-alexander.dolgopa>
Download mbox | patch
Permalink /patch/1766/
State Superseded
Commit 26943a6394d45c3ec8ee63eb3b08eadbe6a23170
Headers show

Comments

Alexander Plavin - June 30, 2013, 8:13 a.m.
# HG changeset patch
# User Alexander Plavin <me@aplavin.ru>
# Date 1372578501 -14400
#      Sun Jun 30 11:48:21 2013 +0400
# Node ID 069c6b10ca2e8ff411b602ef339e9e37d88099b4
# Parent  84dc9669bd7173124d307f9fcac0632380de9ba6
hgweb: show full date in rfc822 format in tooltips at shortlog page

The absolute date is not shown anywhere else in the log view,
only the relative one.
Alexander Plavin - June 30, 2013, 8:15 a.m.
Same thing at the repo graph page requires modifying all the template
sets (i.e. not only paper), otherwise they will not work correctly.
So, not sure if it is wanted.

2013/6/30 Alexander Plavin <me@aplavin.ru>:
> # HG changeset patch
> # User Alexander Plavin <me@aplavin.ru>
> # Date 1372578501 -14400
> #      Sun Jun 30 11:48:21 2013 +0400
> # Node ID 069c6b10ca2e8ff411b602ef339e9e37d88099b4
> # Parent  84dc9669bd7173124d307f9fcac0632380de9ba6
> hgweb: show full date in rfc822 format in tooltips at shortlog page
>
> The absolute date is not shown anywhere else in the log view,
> only the relative one.
>
> diff -r 84dc9669bd71 -r 069c6b10ca2e mercurial/templates/static/mercurial.js
> --- a/mercurial/templates/static/mercurial.js   Mon Jun 24 14:02:01 2013 -0400
> +++ b/mercurial/templates/static/mercurial.js   Sun Jun 30 11:48:21 2013 +0400
> @@ -258,6 +258,7 @@
>                                         // We want both: date + (age)
>                                         node.textContent += ' ('+agevalue+')';
>                                 } else {
> +                                       node.title = node.textContent;
>                                         node.textContent = agevalue;
>                                 }
>                         }

Patch

diff -r 84dc9669bd71 -r 069c6b10ca2e mercurial/templates/static/mercurial.js
--- a/mercurial/templates/static/mercurial.js	Mon Jun 24 14:02:01 2013 -0400
+++ b/mercurial/templates/static/mercurial.js	Sun Jun 30 11:48:21 2013 +0400
@@ -258,6 +258,7 @@ 
 					// We want both: date + (age)
 					node.textContent += ' ('+agevalue+')';
 				} else {
+					node.title = node.textContent;
 					node.textContent = agevalue;
 				}
 			}