[PATCH] hgweb: show full date in rfc822 format in tooltips at shortlog page

Alexander Plavin alexander at plav.in
Fri Aug 2 16:24:45 CDT 2013


# HG changeset patch
# User Alexander Plavin <alexander at 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.

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;
 				}
 			}


More information about the Mercurial-devel mailing list