1
0
Fork 0
mirror of synced 2024-07-02 04:50:47 +12:00
ArchiveBox/archivebox/templates/index.html

197 lines
6.6 KiB
HTML
Raw Normal View History

2017-05-05 21:00:30 +12:00
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Archived Sites</title>
<style>
html, body {
2017-05-05 21:00:30 +12:00
width: 100%;
height: 100%;
2018-04-17 23:01:09 +12:00
font-size: 18px;
2017-05-05 21:00:30 +12:00
font-weight: 200;
text-align: center;
margin: 0px;
padding: 0px;
font-family: "Gill Sans", Helvetica, sans-serif;
}
header {
2017-05-05 21:00:30 +12:00
background-color: #aa1e55;
2019-02-05 15:45:36 +13:00
color: #1a1a1a;
2017-05-05 21:00:30 +12:00
padding: 10px;
2018-04-17 23:01:09 +12:00
padding-top: 0px;
padding-bottom: 15px;
2019-02-05 15:45:36 +13:00
/*height: 40px;*/
}
header h1 {
2019-02-05 15:45:36 +13:00
margin: 7px 0px;
font-size: 35px;
2017-05-05 21:00:30 +12:00
font-weight: 300;
2019-02-05 15:45:36 +13:00
color: #1a1a1a;
}
2019-02-05 15:45:36 +13:00
header h1 img {
height: 44px;
vertical-align: bottom;
}
2019-02-05 15:45:36 +13:00
header a {
text-decoration: none !important;
color: #1a1a1a;
}
2018-04-18 01:14:01 +12:00
.header-center {
2019-02-05 15:45:36 +13:00
margin: auto;
float: none;
2018-04-18 01:14:01 +12:00
text-align: center;
2019-02-05 15:45:36 +13:00
padding-top: 6px;
}
.header-center small {
color: #eaeaea;
opacity: 0.7;
2018-04-18 01:14:01 +12:00
}
2018-06-18 10:32:42 +12:00
.header-left {
float: left;
2019-02-05 15:45:36 +13:00
}
.header-right {
float: right;
padding-top: 17px;
padding-right: 10px;
}
header + div {
margin-top: 10px;
2018-04-17 23:01:09 +12:00
}
#table-bookmarks_length, #table-bookmarks_filter {
padding: 0px 15px;
}
table {
2017-05-05 21:00:30 +12:00
padding: 6px;
width: 100%;
}
table thead th {
2017-05-05 21:00:30 +12:00
font-weight: 400;
}
table tr {
height: 35px;
}
tbody tr:nth-child(odd) {
background-color: #ffebeb !important;
}
table tr td {
2017-05-05 21:00:30 +12:00
white-space: nowrap;
overflow: hidden;
/*padding-bottom: 0.4em;*/
/*padding-top: 0.4em;*/
2017-05-05 21:00:30 +12:00
padding-left: 2px;
text-align: center;
}
table tr td a {
text-decoration: none;
}
2018-04-17 23:01:09 +12:00
table tr td img, table tr td object {
display: inline-block;
margin: auto;
2017-05-05 21:00:30 +12:00
height: 24px;
2018-04-17 23:01:09 +12:00
width: 24px;
2017-05-05 21:00:30 +12:00
padding: 0px;
padding-right: 5px;
2018-04-17 23:01:09 +12:00
vertical-align: middle;
margin-left: 4px;
}
#table-bookmarks {
width: 100%;
overflow-y: scroll;
table-layout: fixed;
}
table tr a span[data-archived~=False] {
2019-03-20 21:30:00 +13:00
opacity: 0.4;
}
.files-spinner {
height: 15px;
width: auto;
opacity: 0.5;
vertical-align: -2px;
}
.in-progress {
display: none;
}
body[data-status~=finished] .files-spinner {
display: none;
}
/*body[data-status~=running] .in-progress {
display: inline-block;
}*/
tr td a.favicon img {
padding-left: 6px;
padding-right: 12px;
vertical-align: -4px;
}
tr td a.title {
font-size: 1.4em;
text-decoration:none;
color:black;
}
tr td a.title small {
background-color: #efefef;
border-radius: 4px;
float:right
}
2017-05-05 21:00:30 +12:00
</style>
<link rel="stylesheet" href="static/jquery.dataTables.min.css"/>
<script src="static/jquery.min.js"></script>
<script src="static/jquery.dataTables.min.js"></script>
<script>
document.addEventListener('error', function(e) {
e.target.style.opacity = 0;
}, true)
jQuery(document).ready(function() {
jQuery('#table-bookmarks').DataTable({
stateSave: true, // save state (filtered input, number of entries shown, etc) in localStorage
dom: '<lf<t>ip>', // how to show the table and its helpers (filter, etc) in the DOM
order: [[0, 'desc']],
iDisplayLength: 100,
});
});
</script>
2017-05-05 21:00:30 +12:00
</head>
<body data-status="$status">
2017-05-05 21:00:30 +12:00
<header>
2019-02-05 15:45:36 +13:00
<div class="header-right">
<a href="https://github.com/pirate/ArchiveBox/wiki">Documentation</a> &nbsp; | &nbsp;
<a href="https://github.com/pirate/ArchiveBox">Source</a> &nbsp; | &nbsp;
<a href="https://archivebox.io">Website</a>
</div>
2018-06-18 10:32:42 +12:00
<div class="header-left">
2018-04-18 01:14:01 +12:00
<a href="?" title="Reload...">
2019-02-05 15:45:36 +13:00
<h1><img src="static/archive.png"/> ArchiveBox: Index</h1>
2018-04-17 23:01:09 +12:00
</a>
</div>
2018-04-18 01:14:01 +12:00
<div class="header-center">
Archived Sites
<!--<span class="in-progress">(Currently Updating)</span>-->
<br/>
2019-02-05 15:45:36 +13:00
<small>Last updated $time_updated</small>
2018-04-17 23:01:09 +12:00
</div>
2017-05-05 21:00:30 +12:00
</header>
<table id="table-bookmarks">
2017-05-05 21:00:30 +12:00
<thead>
<tr>
<th style="width: 80px;">Bookmarked</th>
2018-06-18 10:32:42 +12:00
<th style="width: 26vw;">Saved Link ($num_links)</th>
2019-03-20 19:57:06 +13:00
<th style="width: 50px">Files</th>
2018-06-18 10:32:42 +12:00
<th style="width: 16vw;whitespace:nowrap;overflow-x:hidden;">Original URL</th>
2017-05-05 21:00:30 +12:00
</tr>
</thead>
<tbody>$rows</tbody>
2017-05-05 21:00:30 +12:00
</table>
2018-04-18 01:14:01 +12:00
<footer>
<br/>
<center>
<small>
Archive created using <a href="https://github.com/pirate/ArchiveBox" title="Github">ArchiveBox</a>
version <a href="https://github.com/pirate/ArchiveBox/commit/$git_sha" title="Git commit">$short_git_sha</a> &nbsp; | &nbsp;
2018-06-18 10:32:42 +12:00
Download index as <a href="index.json" title="JSON summary of archived links.">JSON</a>
2018-04-18 01:14:01 +12:00
<br/><br/>
$footer_info
</small>
</center>
<br/>
</footer>
2017-05-05 21:00:30 +12:00
</body>
</html>