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 2015-08-13 12:24:34 +01:00 提交者 Jason A. Donenfeld
父节点 b44dd95f13
当前提交 a360666df3
共有 1 个文件被更改,包括 4 次插入0 次删除

查看文件

@ -644,7 +644,11 @@ void cgit_print_age(time_t t, time_t max_relative, const char *format)
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;
}