summaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/templates
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-08-06 18:33:45 -0700
committerBryan Newbold <bnewbold@archive.org>2020-08-06 19:01:12 -0700
commit7704b8df5dd381c64356116b2c3cb1c2912e0626 (patch)
treeb296975e520027edf39ef731e8548b0f1db92c64 /fatcat_scholar/templates
parent1204b4f0804a6c1983f71de7840a78f2bbd1061c (diff)
downloadfatcat-scholar-7704b8df5dd381c64356116b2c3cb1c2912e0626.tar.gz
fatcat-scholar-7704b8df5dd381c64356116b2c3cb1c2912e0626.zip
basic placeholder thumbnail image
Diffstat (limited to 'fatcat_scholar/templates')
-rw-r--r--fatcat_scholar/templates/base.html3
-rw-r--r--fatcat_scholar/templates/search_macros.html12
2 files changed, 12 insertions, 3 deletions
diff --git a/fatcat_scholar/templates/base.html b/fatcat_scholar/templates/base.html
index 17e61ee..77bbb0f 100644
--- a/fatcat_scholar/templates/base.html
+++ b/fatcat_scholar/templates/base.html
@@ -55,6 +55,9 @@
.ui.serp.card {
max-width: 180px !important;
}
+ div.fulltext-link {
+ width: 180px !important;
+ }
}
{# for fulltext search result highlighting #}
diff --git a/fatcat_scholar/templates/search_macros.html b/fatcat_scholar/templates/search_macros.html
index d9f66dd..a0352a0 100644
--- a/fatcat_scholar/templates/search_macros.html
+++ b/fatcat_scholar/templates/search_macros.html
@@ -180,9 +180,15 @@
<img src="{{ paper.fulltext.thumbnail_url }}">
</a>
</div>
+ {% else %}
+ <div class="ui serp card" style="margin-bottom: 0.2em; box-shadow: none;">
+ <a class="image" target="_blank" href="{{ paper.fulltext.access_url}}" style="background: none;">
+ <img src="/static/document-icon.svg" style="opacity: 0.6;">
+ </a>
+ </div>
{% endif %}
<a target="_blank" href="{{ paper.fulltext.access_url}}">
- <div style="width: 100%; opacity: 0.65; text-align: center; overflow: hidden;">
+ <div class="fulltext-link" style="width: 100%; opacity: 1.0; text-align: center; overflow: hidden;">
{# TODO: could have other hover info, like mimetype icon and file size? #}
<span>
{% if paper.fulltext.access_type == "wayback" %}
@@ -191,9 +197,9 @@
archive.org
{% endif %}
{% if paper.fulltext.file_mimetype == "application/pdf" %}
- <i class="file pdf outline icon"></i>
+ <i class="file pdf outline icon" style="margin-right: 0;"></i>
{% elif paper.fulltext.access_type == "ia_sim" %}
- <i class="film icon"></i>
+ <i class="film icon" style="margin-right: 0;"></i>
{% endif %}
</span>
</div>