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

login
register
mail settings
Submitter Alexander Plavin
Date Aug. 2, 2013, 9:24 p.m.
Message ID <d07c92b5a8382e8182cf.1375478685@debian-alexander.dolgopa>
Download mbox | patch
Permalink /patch/1990/
State Accepted
Commit 26943a6394d45c3ec8ee63eb3b08eadbe6a23170
Headers show

Comments

Alexander Plavin - Aug. 2, 2013, 9:24 p.m.
# HG changeset patch
# User Alexander Plavin <alexander@plav.in>
# Date 1372578501 -14400
#      Sun Jun 30 11:48:21 2013 +0400
# Node ID d07c92b5a8382e8182cf63dbf6463c32140e9d14
# Parent  29057a4b94c98256b13e0948bd79cb106f918ed7
hgweb: show full date in rfc822 format in tooltips at shortlog page

The absolute date was not shown anywhere in the log view for users with
enabled JavaScript.

Patch

diff -r 29057a4b94c9 -r d07c92b5a838 mercurial/templates/static/mercurial.js
--- a/mercurial/templates/static/mercurial.js	Sat Jun 29 14:36:51 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;
 				}
 			}