Skip to content

Commit

Permalink
fix files icons greying out on public index
Browse files Browse the repository at this point in the history
  • Loading branch information
pirate committed Jan 29, 2021
1 parent 7d8fe66 commit 5c54bcc
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 19 deletions.
2 changes: 1 addition & 1 deletion archivebox/index/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def snapshot_icons(snapshot) -> str:
path = link.archive_path
canon = link.canonical_outputs()
output = ""
output_template = '<a href="/{}/{}" class="exists-{}" title="{}">{} </a>'
output_template = '<a href="/{}/{}" class="exists-{}" title="{}">{}</a> &nbsp;'
icons = {
"singlefile": "❶",
"wget": "🆆",
Expand Down
8 changes: 0 additions & 8 deletions archivebox/themes/default/main_index.html
Original file line number Diff line number Diff line change
Expand Up @@ -185,14 +185,6 @@
.title-col a {
color: black;
}
.tags {
float: right;
border-radius: 5px;
background-color: #bfdfff;
padding: 2px 5px;
margin-left: 4px;
margin-top: 1px;
}
</style>
<link rel="stylesheet" href="{% static 'bootstrap.min.css' %}">
<link rel="stylesheet" href="{% static 'jquery.dataTables.min.css' %}"/>
Expand Down
18 changes: 9 additions & 9 deletions archivebox/themes/default/main_index_row.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<tr>
<td title="{{link.timestamp}}"> {% if link.bookmarked_date %} {{ link.bookmarked_date }} {% else %} {{ link.added }} {% endif %} </td>
<td class="title-col">
<td class="title-col" style="opacity: {% if link.title %}1{% else %}0.3{% endif %}">
{% if link.is_archived %}
<a href="archive/{{link.timestamp}}/index.html"><img src="archive/{{link.timestamp}}/favicon.ico" class="link-favicon" decoding="async"></a>
{% else %}
Expand All @@ -23,15 +23,15 @@
</a>
</td>
<td>
<a href="archive/{{link.timestamp}}/index.html">📄
<span data-number-for="{{link.url}}" title="Fetching any missing files...">
{% if link.icons %}
{{link.icons}}
{% else %}
<span data-number-for="{{link.url}}" title="Fetching any missing files...">
{% if link.icons %}
{{link.icons}} <small style="float:right; opacity: 0.5">{{link.num_outputs}}</small>
{% else %}
<a href="archive/{{link.timestamp}}/index.html">📄
{{link.num_outputs}} <img src="{% static 'spinner.gif' %}" class="files-spinner" decoding="async"/>
{% endif %}
</span>
</a>
</a>
{% endif %}
</span>
</td>
<td style="text-align:left"><a href="{{link.url}}">{{link.url}}</a></td>
</tr>
7 changes: 6 additions & 1 deletion archivebox/themes/default/static/admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,16 @@ body.model-snapshot.change-list #content .object-tools {
100% { transform: rotate(360deg); }
}

.tags > a > .tag {
.tag {
float: right;
border-radius: 5px;
background-color: #bfdfff;
padding: 2px 5px;
margin-left: 4px;
margin-top: 1px;
}

.exists-False {
opacity: 0.1;
filter: grayscale(100%);
}

0 comments on commit 5c54bcc

Please sign in to comment.