tweak index tooltips and details

This commit is contained in:
Nick Sweeting 2018-06-10 19:20:09 -04:00
parent 48df81b216
commit 62e33c011b
2 changed files with 10 additions and 10 deletions

View file

@ -145,6 +145,8 @@ def write_html_link_index(out_dir, link):
'tags': link['tags'] or 'untagged', 'tags': link['tags'] or 'untagged',
'bookmarked': datetime.fromtimestamp(float(link['timestamp'])).strftime('%Y-%m-%d %H:%M'), 'bookmarked': datetime.fromtimestamp(float(link['timestamp'])).strftime('%Y-%m-%d %H:%M'),
'updated': datetime.fromtimestamp(float(link['updated'])).strftime('%Y-%m-%d %H:%M'), 'updated': datetime.fromtimestamp(float(link['updated'])).strftime('%Y-%m-%d %H:%M'),
'bookmarked_ts': link['timestamp'],
'updated_ts': link['updated'],
'archive_org': link['latest'].get('archive_org') or 'https://web.archive.org/save/{}'.format(link['url']), 'archive_org': link['latest'].get('archive_org') or 'https://web.archive.org/save/{}'.format(link['url']),
'wget': link['latest'].get('wget') or wget_output_path(link), 'wget': link['latest'].get('wget') or wget_output_path(link),
})) }))

View file

@ -34,10 +34,6 @@
margin-top: 20px; margin-top: 20px;
margin-right: 0px; margin-right: 0px;
margin-left: -35px; margin-left: -35px;
text-decoration: none;
}
a.collapse-icon:hover {
text-decoration: none;
} }
.nav-icon img { .nav-icon img {
float: right; float: right;
@ -169,21 +165,21 @@
<a href="../../index.html" class="nav-icon" title="Go to Main Index..."> <a href="../../index.html" class="nav-icon" title="Go to Main Index...">
<img src="../../static/archive.png" alt="Archive Icon"> <img src="../../static/archive.png" alt="Archive Icon">
</a> </a>
<a href="#" class="collapse-icon" title="Toggle info panel..."> <a href="#" class="collapse-icon" style="text-decoration: none" title="Toggle info panel...">
</a> </a>
$title<br/> <img src="$favicon" height="20px"> $title<br/>
<a href="$url" class="title-url"> <a href="$url" class="title-url">
<small><img src="$favicon" height="20px"> $base_url</small> <small>$base_url</small>
</a> </a>
</h1> </h1>
</header> </header>
<div class="site-header container-fluid"> <div class="site-header container-fluid">
<div class="row archive-page-header"> <div class="row archive-page-header">
<div class="col-lg-4 alert well"> <div class="col-lg-4 alert well">
Added: <small>$bookmarked</small> Added: <small title="Timestamp: $bookmarked_ts">$bookmarked</small>
&nbsp; | &nbsp; &nbsp; | &nbsp;
Last updated: <small>$updated</small> Last updated: <small title="Timestamp: $updated_ts">$updated</small>
</div> </div>
<div class="col-lg-4 alert well"> <div class="col-lg-4 alert well">
Type: Type:
@ -193,7 +189,9 @@
<span class="badge badge-success">$tags</span> <span class="badge badge-success">$tags</span>
</div> </div>
<div class="col-lg-4 alert well"> <div class="col-lg-4 alert well">
Download: <a href="index.json">JSON</a> | <a href=".">Files</a> Download:
<a href="index.json" title="JSON summary of archived link.">JSON</a> |
<a href="." title="Webserver-provided index of files directory.">Files</a>
</div> </div>
<hr/> <hr/>
<div class="col-lg-2"> <div class="col-lg-2">