mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-23 04:33:11 +00:00
tweak index tooltips and details
This commit is contained in:
parent
48df81b216
commit
62e33c011b
2 changed files with 10 additions and 10 deletions
2
index.py
2
index.py
|
@ -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),
|
||||||
}))
|
}))
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
|
||||||
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">
|
||||||
|
|
Loading…
Reference in a new issue