1
0
Fork 0

Minor changes

This commit is contained in:
Alex Kotov 2023-08-29 15:27:11 +04:00
parent 4f5e73f53e
commit 57452cf819
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
3 changed files with 47 additions and 30 deletions

View file

@ -14,64 +14,74 @@
<body>
<header>
<div class="header-top container-fluid">
<img src="favicon.ico"/>
&nbsp;&nbsp;
{{title|safe}}
&nbsp;&nbsp;
<div>
<img src="favicon.ico"/>&nbsp;&nbsp;{{title|safe}}
</div>
<div>
<small>
<a href="{{url}}" class="header-url" title="{{url}}">
<code>{{url}}</code>
</a>
</small>
</div>
</div>
<div class="header-bottom container-fluid">
<div class="row header-bottom-info">
<div class="col-lg-5">
<div title="Date bookmarked or imported" class="info-chunk" title="UTC Timezone {{timestamp}}">
<h5>Added</h5>
{{bookmarked_date}}
<div>{{bookmarked_date}}</div>
</div>
<div title="Date first archived" class="info-chunk" title="UTC Timezone">
<h5>First Archived</h5>
{{oldest_archive_date}}
<div>{{oldest_archive_date}}</div>
</div>
<div title="Date last checked" class="info-chunk" title="UTC Timezone">
<h5>Last Checked</h5>
{{updated_date}}
<div>{{updated_date}}</div>
</div>
</div>
<div class="col-sm-6 col-lg-4">
<div class="info-chunk">
<h5>Status</h5>
<div class="badge badge-{{status_color}}">{{status}}</div>
<div class="badge badge-{{status_color}}">
{{status}}
</div>
</div>
<div class="info-chunk">
<h5>Saved</h5>
&nbsp; {{num_outputs}}
<div>{{num_outputs}}</div>
</div>
<div class="info-chunk">
<h5>Errors</h5>
&nbsp; {{num_failures}}
<div>{{num_failures}}</div>
</div>
<div class="info-chunk">
<h5>Size</h5>
{{size}}
<div>{{size}}</div>
</div>
</div>
<div class="col-sm-6 col-lg-3">
<div class="info-chunk">
<h5>
🗃&nbsp;Snapshot:
<br/>
<a href="/admin/core/snapshot/{{snapshot_id}}/change/">
<code style="color: rgba(255,255,255,0.6); font-weight: 200; font-size: 12px; background-color: #1a1a1a">
<h5>Snapshot:</h5>
<div>
<code class="snapshot-timestamp">
<b>[{{timestamp}}]</b>
</code>
</div>
<div>
<a href="index.json" title="JSON summary of archived link.">
JSON
</a>
</h5>
<a href="index.json" title="JSON summary of archived link.">JSON</a> |
<a href="warc/" title="Any WARC archives for the page">WARC</a> |
<a href="." title="Webserver-provided index of files directory.">See all files...</a><br/>
|
<a href="warc/" title="Any WARC archives for the page">
WARC
</a>
|
<a href="." title="Webserver-provided index of files directory.">
All files
</a>
</div>
</div>
</div>
</div>
@ -146,12 +156,12 @@
<div class="card-body row">
<div class="col-6 col-sm-12">
<a href="{{archive_org_path}}" title="Open in new tab..." target="_blank" rel="noopener">
<p class="card-text"><code>🌐 archive.org/...</code></p>
<p class="card-text"><code>archive.org/...</code></p>
</a>
</div>
<div class="col-6 col-sm-12">
<a href="{{archive_org_path}}" target="preview">
<h4 class="card-title" style="font-size: 14px">Archive.Org</h4>
<h4 class="card-title" style="font-size: 14px">Archive.org</h4>
</a>
</div>
</div>
@ -164,7 +174,7 @@
<div class="card-body row">
<div class="col-6 col-sm-12">
<a href="{{url}}" title="Open in new tab..." target="_blank" rel="noopener" referrerpolicy="no-referrer">
<p class="card-text"><code>🌐 {{domain}}</code></p>
<p class="card-text"><code>{{domain}}</code></p>
</a>
</div>
<div class="col-6 col-sm-12">

View file

@ -9,6 +9,7 @@ services:
volumes:
- ./data:/data
- ./archivebox:/app/archivebox
- ./public:/app/public
environment:
- ALLOWED_HOSTS=*
- MEDIA_MAX_SIZE=750m

View file

@ -152,3 +152,9 @@ header small code {
background-color: #101010;
border-radius: .25rem;
}
.snapshot-timestamp {
background-color: #1a1a1a;
color: rgba(255,255,255,0.6);
font-size: 12px;
font-weight: 200;
}