fix admin title and url truncation and add edit/admin link and ID to Snapshot detail page
This commit is contained in:
parent
05e891632c
commit
118bddb41a
4 changed files with 30 additions and 5 deletions
|
@ -89,7 +89,7 @@
|
|||
<a href="{% url 'admin:Add' %}">Add ➕</a> /
|
||||
<a href="{% url 'Home' %}">Snapshots</a> /
|
||||
<a href="/admin/core/tag/">Tags</a> /
|
||||
<a href="/admin/auth/user/">Users</a> /
|
||||
<a href="/admin/">Admin</a> /
|
||||
<a href="{% url 'Docs' %}">Docs</a>
|
||||
|
||||
{% block welcome-msg %}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
{% endif %}
|
||||
|
||||
<a href="archive/{{link.timestamp}}/index.html" title="{{link.title|default:'Not yet archived...'}}">
|
||||
<span data-title-for="{{link.url}}" data-archived="{{link.is_archived}}">{{link.title|default:'Loading...'}}</span>
|
||||
<span data-title-for="{{link.url}}" data-archived="{{link.is_archived}}">{{link.title|default:'Loading...'|truncatechars:128}}</span>
|
||||
{% if link.tags_str %}
|
||||
<span class="tags" style="float: right; border-radius: 5px; background-color: #bfdfff; padding: 2px 5px; margin-left: 4px; margin-top: 1px;">
|
||||
{% if link.tags_str != None %}
|
||||
|
@ -33,5 +33,5 @@
|
|||
{% endif %}
|
||||
</span>
|
||||
</td>
|
||||
<td style="text-align:left"><a href="{{link.url}}">{{link.url}}</a></td>
|
||||
<td style="text-align:left; word-wrap: anywhere;"><a href="{{link.url}}">{{link.url|truncatechars:128}}</a></td>
|
||||
</tr>
|
||||
|
|
|
@ -335,13 +335,15 @@
|
|||
</div>
|
||||
<div class="col-lg-4">
|
||||
<div class="info-chunk">
|
||||
<h5>🗃 Files</h5>
|
||||
<h5>🗃 Snapshot: <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"><b>[{{timestamp}}]</b> <small>{{snapshot_id|truncatechars:24}}</small></code></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="/admin/core/snapshot/{{snapshot_id}}/change/" title="Edit this snapshot in the Admin UI">Admin</a> |
|
||||
<a href="media/" title="Audio, Video, and Subtitle files.">Media</a> |
|
||||
<a href="git/" title="Any git repos at the url">Git</a> |
|
||||
<a href="favicon.ico" title="Any git repos at the url">Favicon</a> |
|
||||
<a href="." title="Webserver-provided index of files directory.">See all...</a>
|
||||
<a href="." title="Webserver-provided index of files directory.">See all files...</a><br/>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -237,3 +237,26 @@ body.model-snapshot.change-list #content .object-tools {
|
|||
opacity: 0.1;
|
||||
filter: grayscale(100%);
|
||||
}
|
||||
|
||||
|
||||
#result_list tbody td.field-cmd_str pre,
|
||||
#result_list tbody td.field-output_str pre {
|
||||
max-width: 22vw;
|
||||
word-wrap: anywhere;
|
||||
white-space: break-spaces;
|
||||
max-height: 40px;
|
||||
overflow: hidden;
|
||||
margin: 2px;
|
||||
background-color: rgba(0,0,0,0.05);
|
||||
padding: 1px 4px 16px 8px;
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
#result_list tbody td.field-extractor {
|
||||
font-weight: 800;
|
||||
font-variant: small-caps;
|
||||
}
|
||||
|
||||
#result_list tbody td.field-status {
|
||||
font-variant: small-caps;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue