From 0d4ebe9418954cfcee67507949d77dd82639206a Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Wed, 5 Jul 2017 17:16:10 -0500 Subject: [PATCH] show full bookmarked time in tooltip --- parse.py | 16 +++++++--------- templates/index_row.html | 2 +- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/parse.py b/parse.py index 7604418a..823ed944 100644 --- a/parse.py +++ b/parse.py @@ -198,10 +198,14 @@ def derived_link_info(link): link_info = { **link, - 'files_url': 'archive/{timestamp}/'.format(**link), - 'archive_org_url': 'https://web.archive.org/web/{base_url}'.format(**link), - 'favicon_url': 'archive/{timestamp}/favicon.ico'.format(**link), + 'date': str(link['time'])[:-3], 'google_favicon_url': 'https://www.google.com/s2/favicons?domain={domain}'.format(**link), + 'favicon_url': 'archive/{timestamp}/favicon.ico'.format(**link), + 'files_url': 'archive/{timestamp}/'.format(**link), + 'archive_url': 'archive/{}/{}'.format(link['timestamp'], html_appended_url(link)), + 'pdf_link': 'archive/{timestamp}/output.pdf'.format(**link), + 'screenshot_link': 'archive/{timestamp}/screenshot.png'.format(**link), + 'archive_org_url': 'https://web.archive.org/web/{base_url}'.format(**link), } # PDF and images are handled slightly differently @@ -213,10 +217,4 @@ def derived_link_info(link): 'screenshot_link': 'archive/{timestamp}/{base_url}'.format(**link), 'title': '{title} ({type})'.format(**link), }) - else: - link_info.update({ - 'archive_url': 'archive/{}/{}'.format(link['timestamp'], html_appended_url(link)), - 'pdf_link': 'archive/{timestamp}/output.pdf'.format(**link), - 'screenshot_link': 'archive/{timestamp}/screenshot.png'.format(**link) - }) return link_info diff --git a/templates/index_row.html b/templates/index_row.html index 2708463e..b33a6dee 100644 --- a/templates/index_row.html +++ b/templates/index_row.html @@ -1,5 +1,5 @@ - $time + $date $title $tags