all repos — cgit @ a360666df3cfcd1b384cd66b18803d72e3893b3d

a hyperfast web frontend for git written in c

ui-shared: show full date in tooltip if longer ago than max_relative

Commit caed6cb (ui-shared: show absolute time in tooltip for relative
dates, 2014-12-20) added a toolip when we show a relative time.

However, in some cases we show a short date (that is, the date but not
the time) if an event was sufficiently far in the past and that commit
did not update that case to add the same tooltip.

Signed-off-by: John Keeping <john@keeping.me.uk>
John Keeping john@keeping.me.uk
Thu, 13 Aug 2015 12:24:34 +0100
commit

a360666df3cfcd1b384cd66b18803d72e3893b3d

parent

b44dd95f13f039cd9bee301655150ff765d9555e

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M ui-shared.cui-shared.c

@@ -644,7 +644,11 @@ if (secs < 0)

secs = 0; if (secs > max_relative && max_relative >= 0) { + html("<span title='"); + html_attr(fmt_date(t, FMT_LONGDATE, ctx.cfg.local_time)); + html("'>"); cgit_print_date(t, format, ctx.cfg.local_time); + html("</span>"); return; }